Sam Zhou
5e73c72f26
chore(v2): Fix linter warnings ( #4442 )
...
* chore(v2): Fix linter warnings
223 warnings to 145 warnings
* Remove explicit type annotations
* Do not prefetch when targetLink == null
2021-03-17 17:28:42 +01:00
Reece Dunham
76c0b11632
refactor(v2): TS config update: reduce the size of npm modules ( #4375 )
...
* feat(v2): Reduce the size of the npm modules
Signed-off-by: Reece Dunham <me@rdil.rocks>
* Fix conflicts
* Update search.js
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-17 16:25:42 +01:00
Alexey Pyltsyn
f8fda885fc
chore(v2): prepare v2.0.0.alpha-72 release ( #4440 )
...
* chore(v2): prepare v2.0.0.alpha-72 release
* v2.0.0-alpha.72
2021-03-16 14:30:54 +03:00
Armano
abae86f283
refactor(v2): use correct plugin types ( #4418 )
2021-03-15 19:08:44 +01:00
Alexey Pyltsyn
c3968e2d8f
chore(v2): upgrade Infima to v0.2.0-alpha.21 ( #4429 )
2021-03-15 17:50:46 +01:00
Alexey Pyltsyn
ae1547c5c8
fix(v2): allow using pre tag in Markdown directly ( #4428 )
2021-03-15 16:42:24 +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
Leandro Oriente
05e3515ad1
chore(v2): upgrade react-toggle to v4.1.2 ( #4436 )
2021-03-14 21:44:59 +03:00
Rhodanthe1116
b8b1e1ad85
refactor(v2): new theme label translations for Traditional Chinese ( #4427 )
2021-03-14 00:23:28 +03:00
Armano
a39c62f644
refactor(v2): add missing theme-classic types ( #4385 )
2021-03-12 12:19:19 +01: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
c32d8bd116
fix(v2): specify proper TS path in classic theme ( #4381 )
2021-03-10 20:15:50 +01:00
Alexey Pyltsyn
6afa83c419
fix(v2): set theme color mode for SSR ( #4383 )
2021-03-10 20:10:07 +01:00
Sébastien Lorber
986de6b214
chore(v2): prepare v2.0.0.alpha-71 release ( #4376 )
...
* prepare release
* v2.0.0-alpha.71
2021-03-09 18:45:05 +01:00
Sébastien Lorber
f8884044fb
chore(v2): update infima ( #4370 )
...
* update infima
* update yarn lock
* Updates
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2021-03-09 14:58:05 +01:00
Alexey Pyltsyn
a369527910
refactor(v2): update Russian translation in classic theme ( #4371 )
2021-03-09 14:41:15 +01:00
Armano
e6261af642
refactor(v2): remove duplicated lodash dependencies and import only what needed ( #4361 )
...
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-09 12:15:52 +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
Alexey Pyltsyn
6be0bd41b0
refactor(v2): format last updated date using Intl ( #4352 )
2021-03-05 15:30:09 +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
Alexey Pyltsyn
a4b409c93b
fix(v2): make code blocks more standalone ( #4315 )
...
* refactor(v2): make code blocks styles standalone
* Rework
* Revert font size in playground headers
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 18:22:34 +01:00
Alexey Pyltsyn
788b4a76d8
feat(v2): auto focus to tab if it is outside viewport ( #4209 )
...
* Simplify solution
* fix typo
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 17:46:36 +01:00
Alexey Pyltsyn
da5175a591
fix(v2): fit footer in viewport when content area is too small ( #4311 )
...
* fix(v2): fit footer in viewport when content area is too small
* Fix
* Better solution
2021-03-04 15:39:15 +01:00
Sébastien Lorber
879dcb0701
fix(v2): prevent useless blog pages to be in search results ( #4340 )
2021-03-03 18:23:47 +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
3d00613e5d
fix(v2): Code blocks should be LTR by default ( #4277 )
...
* use LTR code code blocks
* code blocks should be LTR
2021-02-23 18:47:07 +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
0e1d1ce310
fix(v2): theme classic should have lib-next prettified ( #4274 )
2021-02-23 15:55:05 +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
Ben
333545aa97
fix(v2): Allow null as valid for title of item in footer links ( #4267 )
2021-02-22 18:56:58 +01:00
Alexey Pyltsyn
be871b2d60
feat(v2): add icon to generic sidebar link ( #4261 )
2021-02-22 16:14:47 +01:00
Sébastien Lorber
a58baacdc8
fix(v2): fix LTR PostCSS bug on Netlify/monorepo symlinks ( #4254 )
2021-02-19 17:55:03 +01:00
Alexey Pyltsyn
1ec2f04108
feat(v2): introduce Seo component for internal usage ( #4243 )
2021-02-18 15:38:55 +01:00
Alexey Pyltsyn
f13448d5e1
chore(v2): upgrade dependencies + require Node 12 ( #4223 )
...
* chore(v2): upgrade dependencies
* Set minimum Node.js version to 12.13
* Fix test
* Upgrade copy-text-to-clipboard
* Bump Node versions
* Update .nvmrc
* mark cacheTime as forbidded field
* Downgrade jest to v25.2.7
* Increase Node version for Windows CI
* Test fix
* Attempt to fix Windows CI
* Downgrade execa
* fix async test errors
* Upgrade execa
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-18 15:12:42 +01:00
Alexey Pyltsyn
02f7722f2e
fix(v2): make doc container full width when hidden sidebar ( #4247 )
2021-02-18 15:06:04 +01:00
Alexey Pyltsyn
9bd65ddea3
refactor(v2): add Russian translation for classic theme ( #4246 )
2021-02-18 15:03:02 +03:00
Alexey Pyltsyn
2df5a3bd5d
refactor(v2): use Link component for external links ( #4242 )
2021-02-18 12:35:29 +01:00