Skip to content

chore: add translations - #1444

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

dguyen merged 1 commit into
mainfrom
chore/translations

Conversation

@Mythie

@Mythie Mythie commented Nov 5, 2024 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

Release Notes

  • New Features

    • Enhanced German, Spanish, and French translations for various document actions and user notifications.
    • Added missing translations for terms related to account authentication and document management in Spanish and French.
  • Bug Fixes

    • Corrected and refined existing translations for clarity and accuracy across all supported languages.
  • Documentation

    • Updated revision dates in localization files to reflect the latest changes.

@vercel

vercel Bot commented Nov 5, 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 5, 2024 9:45am
stg-marketing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 9:45am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
prd-docs ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:45am
stg-app ⬜️ Ignored (Inspect) Nov 5, 2024 9:45am
stg-docs ⬜️ Ignored (Inspect) Visit Preview Nov 5, 2024 9:45am

@github-actions

github-actions Bot commented Nov 5, 2024 •

Copy link
Copy Markdown
Contributor

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

@vercel
vercel Bot temporarily deployed to Preview – stg-app November 5, 2024 09:34 Inactive
@coderabbitai

coderabbitai Bot commented Nov 5, 2024 •

Copy link
Copy Markdown
Contributor

Walkthrough

The pull request introduces updates to various localization files for the Documenso application, specifically enhancing the German, Spanish, and French translations. Key modifications include filling previously empty translation entries, updating existing phrases for clarity, and revising the "PO-Revision-Date" across multiple files. These changes aim to improve the overall localization quality, ensuring that users receive accurate and contextually appropriate messages related to document management and user actions.

Changes

File Path Change Summary
packages/lib/translations/de/common.po Updated translations for document actions; filled empty entries; updated "PO-Revision-Date".
packages/lib/translations/de/marketing.po Updated "PO-Revision-Date" only; no changes to translation content.
packages/lib/translations/de/web.po Added and modified translations for user interface elements; updated "PO-Revision-Date".
packages/lib/translations/es/common.po Added translations for document actions; updated "PO-Revision-Date".
packages/lib/translations/es/marketing.po Updated "PO-Revision-Date"; numerous translation entries added or modified.
packages/lib/translations/es/web.po Added and modified translations for various phrases; updated "PO-Revision-Date".
packages/lib/translations/fr/common.po Added translations for document actions; updated "PO-Revision-Date".
packages/lib/translations/fr/marketing.po Updated "PO-Revision-Date"; numerous translation entries added or modified.
packages/lib/translations/fr/web.po Added and modified translations for various terms; updated "PO-Revision-Date".

Possibly related PRs

Suggested labels

apps: marketing, apps: web

Suggested reviewers

  • dguyen
  • ElTimuro

🐇 In the fields where translations bloom,
A rabbit hops, dispelling gloom.
With phrases bright, both clear and true,
Our messages now speak to you!
From German to French, and Spanish too,
Localization's magic shines anew! 🌟


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 (7)
packages/lib/translations/fr/common.po (1)

1460-1460: Add a period for consistency.

The translation "Vous" should include a period to maintain consistency with other similar translations in the file.

-msgstr "Vous"
+msgstr "Vous."
packages/lib/translations/de/common.po (1)

101-181: Consider improving readability of audit log translations.

While the translations are functionally correct, some could be made more concise by removing redundant words. For example:

  • "{prefix} hat ein Feld hinzugefügt" could be shortened to "{prefix} fügte ein Feld hinzu"
  • Similar pattern could be applied to other audit log messages

This would make the messages more concise while maintaining their meaning.

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

225-225: Fix typo in German translation.

The translation "Kontowauthentifizierung" contains a typo - the extra 'w' should be removed.

-msgstr "Kontowauthentifizierung"
+msgstr "Kontoauthentifizierung"

234-234: Use consistent terminology for authentication.

For consistency with other translations, use "Kontoauthentifizierung" instead of "Kontowiederauthentifizierung".

-msgstr "Kontowiederauthentifizierung"
+msgstr "Kontoauthentifizierung"

586-586: Improve translation naturalness.

"Jede Quelle" is grammatically correct but "Alle Quellen" would sound more natural in this context.

-msgstr "Jede Quelle"
+msgstr "Alle Quellen"

590-590: Improve translation naturalness.

"Jeder Status" is grammatically correct but "Alle Status" would sound more natural in this context.

-msgstr "Jeder Status"
+msgstr "Alle Status"

653-653: Consider using more common terminology.

While "Authentifizierungsstufe" is technically correct, "Sicherheitsstufe" is more commonly used in German UIs for this context.

-msgstr "Authentifizierungsstufe"
+msgstr "Sicherheitsstufe"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between a50c758 and a24c91d.

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

11-11: LGTM! Header metadata is properly updated.

The PO-Revision-Date update is correctly formatted and follows the expected pattern.


Line range hint 1-605: Excellent translation quality and consistency!

The Spanish translations demonstrate high quality with:

  • Proper preservation of placeholders and HTML tags
  • Consistent terminology
  • Natural and fluent Spanish language
  • Accurate conveyance of marketing messaging
packages/lib/translations/fr/marketing.po (3)

11-11: LGTM: PO-Revision-Date update

The revision date has been properly updated to reflect the latest changes.


Line range hint 1-605: Translations look accurate and well-maintained

The French translations maintain proper formatting, preserve placeholders (e.g., {0}, <0>, etc.), and accurately convey the meaning of the original text. The translations are culturally appropriate and natural-sounding in French.

Some notable examples of good translations:

  • "Document signing, finally open source" → "Signature de documents, enfin open source"
  • "Because signing should be celebrated" → "Parce que la signature doit être célébrée"
  • Technical terms are appropriately preserved (e.g., "API Access" → "Accès API")

Line range hint 1-605: Verify placeholder consistency

The translations contain various placeholders (e.g., {0}, <0>, HTML tags). Let's verify their consistency across the codebase.

✅ Verification successful

Based on the comprehensive output showing the placeholders in both the original English strings and French translations, I can verify that all placeholders are consistently maintained in the French translations. Specifically:

  1. Numeric placeholders like {0}, {1} are preserved in the same order
  2. HTML tag placeholders like <0>, <1> are maintained with proper nesting
  3. Named placeholders like {userName}, {teamName} are correctly preserved
  4. Complex plural forms like {0, plural, one {...} other {...}} maintain their structure
  5. All placeholder combinations in strings like "{0} <0>({1})</0>" keep their ordering

All placeholders in the French translations match their English counterparts exactly, ensuring proper string interpolation at runtime.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any mismatched placeholders in translation files

# Look for placeholder patterns in the original English strings
echo "Checking English placeholders..."
rg -A 1 'msgid.*(\{[0-9]+\}|<[0-9]+>)' packages/lib/translations/

# Look for placeholder patterns in the French translations
echo "Checking French translations..."
rg 'msgstr.*(\{[0-9]+\}|<[0-9]+>)' packages/lib/translations/fr/

Length of output: 121729

packages/lib/translations/es/common.po (8)

11-11: LGTM: Metadata update is correct.

The PO-Revision-Date has been properly updated to reflect the latest translation changes.


101-101: LGTM: Document action translations are accurate and consistent.

The translations for document actions (added, created, deleted) maintain consistency in verb tense and terminology.

Also applies to: 105-105, 109-109, 113-113


117-181: LGTM: Document audit log translations are well-structured.

The translations for audit log messages follow a consistent pattern and maintain proper Spanish grammar while accurately conveying the technical actions.


193-209: LGTM: User action translations are clear and accurate.

The translations for user actions (approved, CC'd, completed, signed, viewed) maintain proper Spanish verb forms and technical terminology.


259-267: LGTM: Field action translations are properly localized.

The translations for field actions use appropriate Spanish passive voice constructions with "Se" prefix, maintaining consistency across similar actions.


275-283: LGTM: Recipient action translations follow established patterns.

The translations for recipient actions maintain the same passive voice pattern established in field actions, ensuring consistency throughout the interface.


Line range hint 584-647: LGTM: Document status translations are accurate.

The translations for document statuses use appropriate Spanish terms that clearly convey the state of the document.


692-696: LGTM: Email status translations are consistent.

The translations for email statuses maintain consistency with other similar status messages in the application.

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

11-11: LGTM! Revision date properly updated.

The PO-Revision-Date has been correctly updated to reflect the latest translation changes.


Line range hint 656-1523: LGTM! Translations are accurate and well-formatted.

The translations:

  • Correctly preserve all placeholders and HTML tags
  • Follow proper German grammar and formatting rules
  • Maintain the context and meaning of the original text
packages/lib/translations/es/web.po (4)

Line range hint 225-234: LGTM! Security term translations are accurate

The translations for "Account Authentication" and "Account Re-Authentication" maintain both technical accuracy and natural Spanish phrasing.


653-654: LGTM! Consistent with authentication terminology

The translation "Nivel de Autenticación" is accurate and maintains consistency with other authentication-related terms in the interface.


2385-2386: LGTM! Appropriate handling of technical term

The translation correctly keeps "Passkey" untranslated while properly translating the "Re-Authentication" portion, maintaining technical accuracy.


4104-4105: LGTM! Standard translation used

The translation "Historial de Versiones" uses the standard Spanish terminology for version history.

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

Line range hint 1-19: LGTM! Metadata changes look good.

The metadata follows the standard PO file format and the revision date has been properly updated.


Line range hint 20-4819: LGTM! Translation changes are high quality.

The French translations:

  • Maintain proper grammar and cultural appropriateness
  • Preserve placeholders and HTML tags correctly
  • Keep consistent terminology throughout
  • Handle special characters and accents properly

This branch had an error being deployed

1 failed, 1 active, and 1 inactive deployments
Preview – prd-openpage-api — a24c91dd Deployed Nov 5, 2024 by vercel[bot]
Preview – stg-marketing — a24c91dd Deployed Nov 5, 2024 by vercel[bot]
Preview – stg-app — a24c91dd Deployed Nov 5, 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