docusaurus/packages/docusaurus-theme-classic/codeTranslations/README.md
Sébastien Lorber 364d4dbf01
fix(v2): fix bad theme pluralization rules for some labels (#4304)
* Pluralization test!

* Simplify usePluralForm usage with | plural message separator

* fix interpolate bug with falsy values like 0

* fix interpolate bug with falsy values like 0

* Order plural forms + allow to not provide the last plural forms if they are not used

* fix typo

* revert test!

* plurals and typo of the SearchPage

* update some labels

* improve the update-code-translations cli + update translations

* pluralize blog reading time label

* ensure base.json contains message descriptions: helps the user to provide the translations

* remove russian production locale
2021-03-03 17:05:21 +01:00

20 lines
727 B
Markdown

# Default theme translations
The Docusaurus theme includes default translations for labels used by the theme itself (like the pagination "Next" / "Previous").
## For Docusaurus users:
Please help us provide exhaustive translations:
- add your `language.json` file if it is missing (copy `base.json` and remove the attributes `___DESCRIPTION`)
- double-check your `language.json` file for bad or missing translations
## For maintainers:
After updating the theme code, you can "synchronize" the translations by running:
```
yarn workspace @docusaurus/theme-classic update-code-translations
```
Then, ask contributors to translate the newly added labels on this [issue](https://github.com/facebook/docusaurus/issues/3526)