Commit graph

48 commits

Author SHA1 Message Date
Pranab Das
0fdb6836ad
refactor(v2): Hindi translation for semantic doc sidebar (#5154) 2021-07-13 10:10:29 +02:00
nirtamir2
bb4ce1a54b
refactor(v2): Update Hebrew translations (#5138) 2021-07-12 20:04:59 +02:00
Pranab Das
1a3557b917
refactor(v2): bn translation improvements for semantic doc sidebar (#5140) 2021-07-12 19:58:19 +02:00
Joshua Chen
be695aa0e9
feat(v2): complete Chinese code translations (#5139)
* feat(v2): complete Chinese code translations

* Complete zh-Hant translation

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-07-12 19:42:03 +02:00
Forresst
3e5a832590
fix(v2): add missing french translations for mobile (#5151) 2021-07-12 19:40:07 +02:00
Alexey Pyltsyn
9536ef900d
feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu (#4273)
* feat(v2): mobile TOC

* Bug fixes and various improvements

* Redesign

* extract TOCCollapsible component

* TS improvements

* Assign sidebar name directly to the doc route => no need for either permalinkToSidebar or GlobalData

* revert changes to useWindowSize, fix FOUC issues

* extract DocSidebarDesktop component

* remove now useless menu infima classes

* TOCHeadings => rename + remove unused onClick prop

* Extract DocSidebarItem

* minor renaming

* replace GlobalData usage by a React teleport system to render in the navbar mobile sidebar menu directly from the DocPage component

* useWindowSize => simulate SSR size in dev to make FOUC issues more obvious

* fix remaining sidebar layout shift

* update docs snapshots

* remove unused code translations

* remove unused code translations

* fix minor update-code-translations bug

* Add more build-size paths to watch

* Restyle back button

* Add  missing`menu` class

* extract useShallowMemoizedObject

* fix routes tests + better routes formatting

* use Translate api for labels

* use Translate api for labels

* Update translations

* Improve dark mode support for back button

* Merge branch 'master' into lex111/inline-color-code

# Conflicts:
#	packages/core/dist/css/default-dark/default-dark-rtl.min.css
#	packages/core/dist/css/default-dark/default-dark.min.css
#	packages/core/dist/css/default/default-rtl.min.css
#	packages/core/dist/css/default/default.min.css

* replace useCollapse by new useCollapsible

* Cleanup and use clean-btn for TOCCollapsible button

* Make TOC links clickable over full width

* Cleanup

* fix uncollapsible sidebar that can be collapsed + create <Collapsible> component

* dependency array typo

* rollback sidebars community commit typo

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-07-09 16:50:38 +02:00
Marçal Junior
f316ff5cd1
refactor(v2): pt-BR: improve semantic doc sidebar and tags (#5118) 2021-07-07 19:48:38 +02:00
Alexey Pyltsyn
c8b9061f6c
refactor(v2): improve semantic doc sidebar markup (#4940)
* refactor(v2): improve semantic doc sidebar markup

* Fixes
2021-06-15 12:45:29 +02:00
Alexey Pyltsyn
8629fbdc77
refactor(v2): improve semantic blog sidebar markup (#4961) 2021-06-14 19:04:58 +02:00
Pratyay Banerjee
4eb1b58fb0
feat(v2): theme default translations Bengali (#4939)
* init cleaning v1

• clean copy of base.json

Signed-off : <@Neilblaze>

* update 0.0.1

* update 0.0.2

* update 0.0.3 ~ final review

Added support for BN translations for package
signed off : @Neilblaze <putubanerjee23@gmail.com>
2021-06-10 15:32:29 +02:00
Lior Heber
db6f5ce729
fix(v2): Amend Hebrew translations (#4819)
Co-authored-by: liorheber <heber.lior@google.com>
2021-05-20 11:03:41 +02:00
nirtamir2
2cd9fd6e27
fix(v2): Fix Hebrew translations (#4815)
* Update he.json

Change "2" form of plural type to not include 2 number in hebrew

* change Hebrew translation
2021-05-19 10:08:06 +02:00
Sébastien Lorber
ab19070ab5
feat(v2): Add hebrew theme translations (#4811) 2021-05-18 15:22:38 +02:00
PsychTech
73c24ecdcb
feat(v2): add theme Danish translation (#4798) 2021-05-17 19:34:57 +02:00
Rodrigo Moreno
b995b0742a
feat(v2): add es translations for docusaurus-theme-classic (#4762) 2021-05-11 11:03:29 +02:00
Forresst
35e17ef129
fix(v2): improve french translation for theme-classic (#4750) 2021-05-07 11:02:43 +02:00
Marco Enrico
70574618e9
feat(v2): Add Filipino default translations to theme (#4624)
* Create fil.json

Add default Filipino translations.

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

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-04-16 10:07:43 +02:00
Lisa Chandra
154ba62627
feat(v2): theme default translations hindi (#4596)
* docs: theme default translations for hindi

* docs: fix lastUpdatedAtBy for hindi

Co-authored-by: Javid <singularity.javid@gmail.com>
2021-04-12 18:02:56 +02:00
Tiago Ribeiro
fb07bd871c
feat(v2): add pt-PT translations for docusaurus-theme-classic (#4536)
* Added a JSON file with the portuguese (Portugal) translations

* Changed the file according to linting

* Add a new line at the end of the file

* Changes because of prettier, there was a whitespace at the end of a line
2021-03-30 10:47:21 +02:00
Thiago Sciotta
61414f9a11
feat(v2): add Brazilian Portuguese translation (#4525) 2021-03-29 17:06:50 +02:00
Sébastien Lorber
9117a5b7df
chore: fb json header commit typo (#4463) 2021-03-18 20:01:11 +01:00
Sébastien Lorber
892d832a3e
fix(v2): Fix i18n staging deployment due to json typo (#4461) 2021-03-18 19:28:14 +01:00
miku86
93dab24bec
polish(v2): Add german translations (#4448)
* Add german translations

Hey folks,

I updated some missing translations.

Greetings
Michael

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

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-03-18 11:46:23 +01:00
Quan
07ec381426
feat(v2): add Vietnamese translation for classic theme (#4422)
* add Vietnamese translation

* remove original word from translation string
2021-03-15 17:02:55 +03:00
Rhodanthe1116
b8b1e1ad85
refactor(v2): new theme label translations for Traditional Chinese (#4427) 2021-03-14 00:23:28 +03:00
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