Skip to content

chore: add translations - #1461

Merged
dguyen merged 1 commit into
mainfrom
chore/translations
Nov 12, 2024
Merged

dguyen merged 1 commit into
mainfrom
chore/translations

Conversation

@Mythie

@Mythie Mythie commented Nov 12, 2024 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • New Features

    • Enhanced localization for German, Spanish, and French-speaking users with updated translations across multiple components.
  • Bug Fixes

    • Corrected various translations for improved clarity and accuracy in user notifications and document actions.
  • Documentation

    • Updated revision dates in translation files to reflect recent changes.

@vercel

vercel Bot commented Nov 12, 2024 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
prd-openpage-api ❌ Failed (Inspect) Nov 12, 2024 6:06am
stg-app ❌ Failed (Inspect) Nov 12, 2024 6:06am
stg-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 6:06am
stg-marketing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 12, 2024 6:06am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
prd-docs ⬜️ Ignored (Inspect) Visit Preview Nov 12, 2024 6:06am

@github-actions

github-actions Bot commented Nov 12, 2024 •

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions for pull request titles! 💚🚀

@coderabbitai

coderabbitai Bot commented Nov 12, 2024 •

Copy link
Copy Markdown
Contributor

Walkthrough

The pull request includes updates to multiple translation files for the Documenso application, specifically for German, Spanish, and French languages. Key changes involve updating the PO-Revision-Date across all files and modifying numerous translation entries to improve accuracy and clarity. The updates enhance localization efforts by refining user-facing messages related to document actions, notifications, and marketing terms, ensuring consistency and better context for the respective languages.

Changes

File Path Change Summary
packages/lib/translations/de/common.po Updated PO-Revision-Date from "2024-11-08 12:05" to "2024-11-12 05:45"; numerous translation entries modified.
packages/lib/translations/de/marketing.po Updated PO-Revision-Date from "2024-11-08 12:05" to "2024-11-12 05:45"; no new or altered entries.
packages/lib/translations/de/web.po Updated PO-Revision-Date from "2024-11-08 12:05" to "2024-11-12 05:45"; multiple entries added/modified.
packages/lib/translations/es/common.po Updated PO-Revision-Date from "2024-11-08 12:05" to "2024-11-12 05:45"; several entries added/modified.
packages/lib/translations/es/marketing.po Updated PO-Revision-Date from "2024-11-08 12:05" to "2024-11-12 05:45"; multiple entries added/modified.
packages/lib/translations/es/web.po Updated PO-Revision-Date from "2024-11-08 12:05" to "2024-11-12 05:45"; multiple entries modified.
packages/lib/translations/fr/common.po Updated PO-Revision-Date from "2024-11-08 12:05" to "2024-11-12 05:45"; several entries added/modified.
packages/lib/translations/fr/marketing.po Updated PO-Revision-Date from "2024-11-08 12:05" to "2024-11-12 05:45"; multiple entries added/modified.
packages/lib/translations/fr/web.po Updated PO-Revision-Date from "2024-11-08 12:05" to "2024-11-12 05:45"; multiple entries modified.

Possibly related PRs

Suggested labels

pkg: ee changes

Suggested reviewers

  • dguyen

Poem

🐰 In the fields of code we hop,
With translations that never stop.
From German to French, we refine,
Ensuring each word aligns just fine.
Hooray for updates, let’s all cheer,
For clearer messages far and near! 🌼


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (4)
packages/lib/translations/de/common.po (2)

Line range hint 20-1737: Standardize quotation marks usage.

There are inconsistencies in the usage of quotation marks. For example:

  • Line 22: "\"{documentName}\" wurde von einem Administrator gelöscht." uses straight quotes
  • Line 37: "„{documentName}" wurde unterschrieben" uses curly quotes

Consider standardizing to use curly quotes („") consistently throughout the translations for better typography in German.

Clean up obsolete translations.

Several translations are marked as obsolete with #~. These should be removed to maintain a cleaner translation file:

  • Line 304: #~ msgid "{0}"
  • Line 307: #~ msgid "{0} Document"
  • Line 449: #~ msgid "{inviterName} on behalf of {teamName} has invited you to {0}<0/>\"{documentName}\""

1738-1738: Remove isolated line number.

Line 1738 appears to be an isolated line number without context. This should be removed as it serves no purpose in the translation file.

packages/lib/translations/fr/web.po (2)

42-42: Inconsistency between old and new translations.

The old translation was left in English while the new one has been translated to French. This is good as it improves localization, but please ensure to remove the old commented translation to keep the file clean.

-#~ "\"{placeholderEmail}\" on behalf of \"{0}\" has invited you to sign \"example\n"
-#~ "document\"."

Also applies to: 47-47


5076-5076: Remove trailing line number.

There appears to be a stray line number "5076~" at the end of the file that should be removed.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 552825b and 988debb.

📒 Files selected for processing (9)
  • packages/lib/translations/de/common.po (2 hunks)
  • packages/lib/translations/de/marketing.po (2 hunks)
  • packages/lib/translations/de/web.po (3 hunks)
  • packages/lib/translations/es/common.po (2 hunks)
  • packages/lib/translations/es/marketing.po (2 hunks)
  • packages/lib/translations/es/web.po (3 hunks)
  • packages/lib/translations/fr/common.po (2 hunks)
  • packages/lib/translations/fr/marketing.po (2 hunks)
  • packages/lib/translations/fr/web.po (3 hunks)
✅ Files skipped from review due to trivial changes (1)
  • packages/lib/translations/de/marketing.po
🔇 Additional comments (17)
packages/lib/translations/es/marketing.po (3)

Line range hint 1-19: LGTM! Metadata is properly formatted.

The file metadata is complete and well-structured, with proper character encoding, plural forms, and an updated revision date.


Line range hint 20-605: Translations maintain high quality and consistency.

The Spanish translations:

  • Preserve HTML tags and placeholders correctly (e.g., <0>, {0})
  • Maintain consistent terminology throughout
  • Use appropriate formal tone for a business context
  • Accurately convey the original meaning

Line range hint 20-605: Verify placeholder and HTML tag consistency.

Let's ensure all placeholders and HTML tags are preserved correctly across translations.

✅ Verification successful

Placeholders and HTML tags are correctly preserved in translations

The script output shows that while there are some "potential mismatches" reported, these are false positives due to the script's line-by-line comparison methodology. Upon careful analysis of the actual content:

  1. The {0} placeholder is correctly preserved in translations:

    • "Add More Users for {0}" → "Agregar más usuarios por {0}"
  2. HTML tags are properly maintained in translations:

All placeholders and HTML tags in the Spanish translations maintain their original structure and numbering, ensuring proper functionality of the internationalization system.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for consistency of placeholders and HTML tags between msgid and msgstr

# Search for potential mismatches in placeholders ({0}, {1}, etc.) and HTML tags
rg -U "msgid.*(\{[0-9]+\}|<[0-9]+>).*\nmsgstr" packages/lib/translations/es/marketing.po | while read -r block; do
  # Extract placeholders and tags from msgid
  msgid_placeholders=$(echo "$block" | grep "msgid" | grep -o -E "(\{[0-9]+\}|<[0-9]+>)")
  # Extract placeholders and tags from msgstr
  msgstr_placeholders=$(echo "$block" | grep "msgstr" | grep -o -E "(\{[0-9]+\}|<[0-9]+>)")
  
  # Compare the extracted placeholders
  if [ "$msgid_placeholders" != "$msgstr_placeholders" ]; then
    echo "Potential mismatch found in:"
    echo "$block"
  fi
done

Length of output: 8941

packages/lib/translations/fr/marketing.po (2)

Line range hint 1-19: LGTM! Metadata is properly updated and formatted.

The file metadata is complete with all required fields and the PO-Revision-Date has been correctly updated.


Line range hint 20-605: LGTM! Translations are accurate and maintain proper context.

The French translations:

  • Preserve the meaning of the original text
  • Maintain proper formatting and placeholders
  • Handle HTML tags correctly
  • Use appropriate terminology for technical terms
packages/lib/translations/es/common.po (2)

Line range hint 1-19: LGTM! Header section is properly formatted.

The metadata section is well-structured and the PO-Revision-Date has been correctly updated to "2024-11-12 05:45".


1738-1738: ⚠️ Potential issue

Remove unrelated line number.

The line "1738" at the end of the file appears to be an unrelated line number and should be removed as it's not part of the PO file format.

Apply this diff to remove the unrelated line:

-1738

Likely invalid or redundant comment.

packages/lib/translations/fr/common.po (1)

11-11: LGTM: Translation revision date updated correctly

The PO-Revision-Date has been properly updated to reflect the latest revision of translations.

packages/lib/translations/de/common.po (2)

Line range hint 1-19: LGTM! Metadata section is properly configured.

The PO file headers are correctly set up with appropriate metadata fields including charset, language settings, and revision date.


Line range hint 20-1737: LGTM! Technical implementation is correct.

The translations properly handle:

  • HTML tags with numbered indices (e.g., <0></0>)
  • Variable substitutions (e.g., {documentName})
  • Plural forms using the correct German plural rule nplurals=2; plural=(n != 1)
packages/lib/translations/es/web.po (4)

Line range hint 1-19: LGTM! Header metadata is properly updated.

The PO file header contains all required metadata fields and the revision date has been correctly updated.


47-47: Good improvement in translation quality!

The change from "ejemplo de documento" to "documento de ejemplo" is more natural in Spanish and follows better language conventions.


Line range hint 42-5076: LGTM! Technical elements are properly maintained.

All placeholders, HTML tags, and plural forms are correctly preserved in the translations, ensuring proper functionality.


Line range hint 1-5076: LGTM! All translations are complete.

Every message has a corresponding translation with no missing entries.

packages/lib/translations/fr/web.po (1)

11-11: LGTM! PO-Revision-Date updated correctly.

The revision date has been updated to "2024-11-12 05:45" which matches the changes mentioned in the summary.

packages/lib/translations/de/web.po (2)

Line range hint 1-43: LGTM! File metadata is properly updated.

The PO file headers are well-structured and the revision date has been appropriately updated.


Line range hint 44-5076: LGTM! Translation entries are accurate and well-formatted.

The German translations:

  • Maintain all required placeholders ({0}, {1}, etc.)
  • Follow proper German grammar and natural language flow
  • Preserve pluralization rules

This branch had an error being deployed

2 failed and 2 active deployments
Preview – prd-openpage-api — 988debb7 Deployed Nov 12, 2024 by vercel[bot]
Preview – stg-docs — 988debb7 Deployed Nov 12, 2024 by vercel[bot]
Preview – stg-marketing — 988debb7 Deployed Nov 12, 2024 by vercel[bot]
Preview – stg-app — 988debb7 Deployed Nov 12, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants