docusaurus/packages/docusaurus-theme-common/src/utils
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
..
__tests__ feat(v2): @docusaurus/theme-common (#3775) 2020-11-18 16:00:51 +01:00
docsPreferredVersion feat(v2): @docusaurus/theme-common (#3775) 2020-11-18 16:00:51 +01:00
docsUtils.ts feat(v2): @docusaurus/theme-common (#3775) 2020-11-18 16:00:51 +01:00
generalUtils.ts feat(v2): extract site title formatter to theme-common util (#3838) 2020-11-30 15:41:09 +01:00
pathUtils.ts chore(v2): fix several lint warnings, add missing types, cleanup (#3844) 2020-11-30 16:42:58 +01:00
searchUtils.ts chore(v2): fix several lint warnings, add missing types, cleanup (#3844) 2020-11-30 16:42:58 +01:00
useAlternatePageUtils.ts fix(v2): fix/enhance minor i18n issues reported (#4092) 2021-01-22 21:26:42 +01:00
usePluralForm.ts fix(v2): fix bad theme pluralization rules for some labels (#4304) 2021-03-03 17:05:21 +01:00
useThemeConfig.ts feat(v2): allow to change location of search bar (#4199) 2021-02-09 16:31:52 +01:00