Commit graph

23 commits

Author SHA1 Message Date
Joon-Ha Lee
31264b1245
feat(v2): Add korean default translations (#4390)
add japanese translations
2021-03-11 17:07:53 +01:00
Alexey Pyltsyn
a369527910
refactor(v2): update Russian translation in classic theme (#4371) 2021-03-09 14:41:15 +01:00
MisterFISHUP
9a6d6a9adc
polish(v2): [theme-classic] slightly improve Japanese translation (#4359)
* Update ja.json

* Update ja.json
2021-03-08 19:22:42 +01:00
MisterFISHUP
620b8f8fd7
polish(v2): [theme-classic] add Chinese translations (zh-Hant & zh-Hans) (#4356) 2021-03-08 15:46:39 +01:00
MisterFISHUP
33968b199b
polish(v2): [theme-classic] update French translation and base.json (#4358)
* Update fr.json

* Update base.json
2021-03-08 15:41:17 +01:00
Sébastien Lorber
4f419801da
fix(v2): update code translations script + update some translations (#4349) 2021-03-05 14:52:59 +01:00
Çağlar Turalı
8bc23197a9
polish(v2): Updated theme label translations for Turkish (#4350) 2021-03-05 14:52:05 +01:00
Yamagishi Kazutoshi
f772c17bfc
polish(v2): add japanese translation for #4304 (#4351) 2021-03-05 14:45:21 +01:00
Alexey Pyltsyn
1dd400db7e
refactor(v2): format post date using Intl (#4344)
* refactor(v2): format post date using Intl

* Fix test

* Blog: add localized blog post date test

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 19:11:31 +01:00
Sébastien Lorber
070b3fc1e8
fix(v2): search page results localization (#4339)
* Fix search page localization

* Fix search page localization
2021-03-03 18:10:20 +01:00
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
Ali Saki
4162e6dcd7
feat(v2): add arabic translation (#4329) 2021-03-03 12:13:26 +01:00
Bartosz Kaszubowski
273e778c10
feat(v2): [theme-classic] add Polish translation (#4325)
* [theme-classic] add Polish translation

* typo fix

* ellipsis instead of three dots
2021-03-02 19:21:16 +01:00
Massoud Maboudi
224aedf7ed
polish(v2): improved Farsi translation (#4309)
* improved translation for Farsi

* Update packages/docusaurus-theme-classic/codeTranslations/fa.json

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-02 18:09:51 +01:00
Çağlar Turalı
9413ba920e
feat(v2): Add Turkish translations for theme labels (#4312)
* Add Turkish translations for theme labels

* Fix: better handle last update switches
2021-03-02 12:21:35 +01:00
Yamagishi Kazutoshi
99d83995a5
feat(v2): add japanese translations (#4303) 2021-03-01 18:35:07 +01:00
Sébastien Lorber
1734975f2f
feat(v2): Add Interpolate / interpolate APIs + complete theme translations (#4295)
* WIP: refactor team profile cards

* Add Interpolate / interpolate APIs

* Add interpolate snapshot test

* comments

* fix Interpolate TS types

* Interpolate should handle numbers and other JS types

* translate BlogPostItem

* interpolate translate() fn + add translations for blog post tag header

* localize the LastUpdated component

* translate DocVersionSuggestions

* fix test

* add some new translations

* Add node script to easily update the theme default translations

* fix translation extractor bug due to translate() dynamic values

* use ICU placeholder syntax

* refactor month key

* order

* team  page translation improvements

* Add interpolation doc + improve i18n doc
2021-02-26 13:19:51 +01:00
philipp985
9e758308bb
polish(v2): theme default translations for language de / german (#4279) 2021-02-24 10:33:15 +01:00
Sébastien Lorber
2788efc799
polish(v2): Add more tags translations (#4275)
* Add blog tags translations

* Improve Ru translation

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2021-02-23 16:44:14 +01:00
Sébastien Lorber
f750660317
feat(v2): add Farsi default translations (#4271)
Co-authored-by: @massoudmaboudi <massoud.maboudi@gmail.com>
2021-02-22 20:22:05 +01:00
Alexey Pyltsyn
9bd65ddea3
refactor(v2): add Russian translation for classic theme (#4246) 2021-02-18 15:03:02 +03:00
Alexey Pyltsyn
08fa318599
refactor(v2): add more translatable strings (#4219)
* refactor(v2): add more translatable strings

* Apply suggestions from code review

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>

* Fixes

* Updates

* Localize direct link to heading

* typo + add french translations

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-18 11:29:51 +01:00
Sébastien Lorber
6a94ad989c
feat(v2): Add i18n default code translation bundles (#4215)
* Add default code translation bundles

* fix tests
2021-02-12 11:35:09 +01:00