Commit graph

59 commits

Author SHA1 Message Date
Ali Saki
74f060dde0
refactor: update Arabic and Persian translations (#5434)
* Update Arabic Translation

* Update Persian Translation

* fix spacing problem for ar.json

* fix spacing problem for fa.json

* Update fa.json

Update Persian translation to match with @farshidinanloo translation

* fix ar.json

* Update fa.json to match with @farshidinanloo
2021-08-30 12:59:55 +02:00
farshid
f1ae06f470
refactor: add missing translations in fa.json (#5410)
* Update fa.json

fix Persian translation

* Update fa.json

* Update fa.json

* add missing translations in fa.json

* Update fa.json
2021-08-30 11:24:16 +02:00
Joshua Chen
8e1cde135c
feat: make blog config options and navbar versions dropdown label translatable (#5371)
* Translate versions dropdown label

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Make blog options tranlatable

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Fix names

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Rename functions

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Rename translations path

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Update docs

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Update Chinese translations

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Remove space

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Update docs

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Add jest test

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Fix copyright typing

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Update test

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Update options

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>

* Fix test

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-08-20 17:11:59 +02:00
Isaac Philip
f9c79cbd58
feat: doc tags (same as blog tags) (#3646)
* [v2] tags to doc, same as tags to blog - [IN PROGRESS]

- Addition of plugin-content-docs

- Addition of DocTagsListPage in `docusaurus-theme-classic`

! Error exists for this commit towards the theme aspect and help required.

Commit towards #3434

* docs: make tags list page work

* temp: disable onBrokenLinks

* theme bootstrap: create DocTagsListPage

* DocTagsPage added and functionality too

- individual doc tag page added to show docs for that specific tag

* Added all Docs Tags Link

* add some shared tag utils

* move tag tests to _dogfooding

* fix type

* fix some tests

* fix blog test

* refactor blog post tags handling

* better yaml tag examples

* better dogfood md files

* refactor and factorize theme tag components

* finish DocTagDocListPage

* Extract DocItemFooter + add inline tag list

* minor fix

* better typings

* fix versions.test.ts tests

* add tests for doc tags

* fix tests

* test toTagDocListProp

* move shared theme code to tagUtils

* Add new theme translation keys

* move common theme code to tagUtils + add tests

* update-code-translations should handle theme-common

* update french translation

* revert add translation

* fix pluralization problem in theme.docs.tagDocListPageTitle

* add theme component configuration options

* add more tags tests

* add documentation for docs tagging

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-08-19 10:31:15 +02:00
Massoud Maboudi
7b807fd85c
refactor: improved Farsi default translations (#5365)
* changed the arrow icon direction for the nabvar in mobile size

* refactor(v2): improved Farsi default translations
2021-08-15 22:38:36 +03:00
Michal Sänger
18151879d2
feat: add Czech translation for docusaurus-theme-classic (#5314) 2021-08-08 00:07:32 +03:00
Massoud Maboudi
8e9b829d98
refactor: improve Farsi default translations (#5280) 2021-08-04 10:09:11 +03:00
Federico Aloi
22d3299b47
fix: improve Spanish translation (#5275) 2021-08-03 21:30:37 +03:00
antonvasilev52
a7618c7758
refactor(v2): fix small typo in Russian translation (#5228) 2021-07-28 02:33:45 +03:00
Alexey Pyltsyn
938e5a906f
refactor(v2): update Russian translation (#5224)
* refactor(v2): update Russian translation

* Wording
2021-07-27 16:00:11 +02:00
Massoud Maboudi
6f366f4b45
refactor(v2): improved Farsi default translations (#5217)
* improved the Farsi translation

* removed the __description lines

* removed the __description lines

* improved the translation
2021-07-27 10:50:31 +02:00
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