-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add pluralization to the qualification labels
BREAKING CHANGE: getBoundT: With the arrival of pluralization, the return of this function has been updated The second parameter, to indicate the country, is no longer of String type. Before, we use this implementation: ``` const t = getBoundT(lang) t("translation.key", "fr" ) ``` Now please follow the following example: ``` const t = getBoundT(lang) t("translation.key", { country: "fr" }) ``` For pluralization, just add the `smart_count` option ``` t("translation.key", { country: "fr", smart_count: 2 }) ``` The `Items.invoices` translation key has been removed, its value has been added to the `Items.invoice` key in its plural version. Please use this new implementation: ``` t("Items.invoice", { smart_count: 2 }) ``` The following translation keys are no longer plural by default. `Items.other_revenue`, `Items.unemployment_benefit`, `Items.personal_sporting_licence`, `Items.tax_timetable`. Please use this new implementation: ``` t("translation.key", { smart_count: 2 })
- Loading branch information
Showing
6 changed files
with
205 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.