Skip to content

Commit

Permalink
feat: add french (documenso#1355)
Browse files Browse the repository at this point in the history
## Description

Add initial French translations

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Added support for the French language, enhancing accessibility for
French-speaking users.
- Introduced localized French messages for various application
functionalities, improving user experience.
  
- **Bug Fixes**
- Minor formatting updates in French translation files to remove
extraneous newline characters.

- **Chores**
- Updated line references in French translation files to maintain
alignment with code changes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Lucas Smith <[email protected]>
Co-authored-by: Crowdin Bot <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
4 people authored Sep 19, 2024
1 parent 97ee69e commit efb2bc9
Show file tree
Hide file tree
Showing 6 changed files with 179 additions and 176 deletions.
6 changes: 5 additions & 1 deletion packages/lib/constants/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { z } from 'zod';

export const SUPPORTED_LANGUAGE_CODES = ['de', 'en'] as const;
export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr'] as const;

export const ZSupportedLanguageCodeSchema = z.enum(SUPPORTED_LANGUAGE_CODES).catch('en');

Expand Down Expand Up @@ -38,4 +38,8 @@ export const SUPPORTED_LANGUAGES: Record<string, SupportedLanguage> = {
full: 'English',
short: 'en',
},
fr: {
full: 'French',
short: 'fr',
},
} satisfies Record<SupportedLanguageCodes, SupportedLanguage>;
3 changes: 1 addition & 2 deletions packages/lib/translations/fr/common.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Language: fr\n"
"Project-Id-Version: documenso-app\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-09-19 06:13\n"
"PO-Revision-Date: 2024-09-19 09:18\n"
"Last-Translator: \n"
"Language-Team: French\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
Expand Down Expand Up @@ -778,4 +778,3 @@ msgstr "Vous ne pouvez pas télécharger de documents pour le moment."
#: packages/ui/primitives/document-dropzone.tsx:69
msgid "You have reached your document limit."
msgstr "Vous avez atteint votre limite de documents."

1 change: 1 addition & 0 deletions packages/lib/translations/fr/marketing.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit efb2bc9

Please sign in to comment.