Repository navigation
chore: add translations - #1461
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
|
Thank you for following the naming conventions for pull request titles! 💚🚀 |
WalkthroughThe pull request includes updates to multiple translation files for the Documenso application, specifically for German, Spanish, and French languages. Key changes involve updating the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
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? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
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 quotesConsider 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
📒 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:
-
The
{0}placeholder is correctly preserved in translations:"Add More Users for {0}"→"Agregar más usuarios por {0}"
-
HTML tags are properly maintained in translations:
<0>Issues</0>→<0>Problemas</0><1>Discord Community</1>→<1>Comunidad de Discord</1><0>[email protected]</0>→<0>[email protected]</0>
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:
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:
-1738Likely 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
Summary by CodeRabbit
New Features
Bug Fixes
Documentation