Skip to content

Commit

Permalink
docs: include French (#11361)
Browse files Browse the repository at this point in the history
  • Loading branch information
forresst committed Apr 30, 2021
1 parent 7c6cea2 commit 26cb29a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -121,6 +121,7 @@
- `[website]` Replace 'Github' with 'GitHub' ([#11279](https://github.com/facebook/jest/pull/11279))
- `[website]` Remove a language code from the link to the Node.js website ([#11282](https://github.com/facebook/jest/pull/11282))
- `[website]` Remove a duplicated word ([#11281](https://github.com/facebook/jest/pull/11281))
- `[website]` Add french to website ([#11361](https://github.com/facebook/jest/pull/11361))

### Performance

Expand Down
1 change: 1 addition & 0 deletions crowdin.yaml
Expand Up @@ -12,6 +12,7 @@ preserve_hierarchy: true
languages_mapping: &languages_mapping
locale:
'es-ES': 'es-ES'
'fr': 'fr'
'ja': 'ja'
'pt-BR': 'pt-BR'
'ro': 'ro'
Expand Down
15 changes: 14 additions & 1 deletion website/i18n.js
Expand Up @@ -7,7 +7,17 @@

// The top-30 locales on Crowdin are enabled
// but we enable only a subset of those
const locales = ['en', 'ja', 'es-ES', 'pt-BR', 'ro', 'ru', 'uk', 'zh-Hans'];
const locales = [
'en',
'ja',
'es-ES',
'fr',
'pt-BR',
'ro',
'ru',
'uk',
'zh-Hans',
];

const localeConfigs = {
en: {
Expand All @@ -19,6 +29,9 @@ const localeConfigs = {
'es-ES': {
label: 'Español',
},
fr: {
label: 'Français',
},
'pt-BR': {
label: 'Português (Brasil)',
},
Expand Down
2 changes: 2 additions & 0 deletions website/static/_redirects
Expand Up @@ -10,6 +10,7 @@
/docs/en/* /docs/:splat
/docs/ja/* /ja/docs/:splat
/docs/es-ES/* /es-ES/docs/:splat
/docs/fr/* /fr/docs/:splat
/docs/pt-BR/* /pt-BR/docs/:splat
/docs/ro/* /ro/docs/:splat
/docs/ru/* /ru/docs/:splat
Expand All @@ -22,6 +23,7 @@

/ja/* /ja/404.html 404
/es-ES/* /es-ES/404.html 404
/fr/* /fr/404.html 404
/pt-BR/* /pt-BR/404.html 404
/ro/* /ro/404.html 404
/ru/* /ru/404.html 404
Expand Down

0 comments on commit 26cb29a

Please sign in to comment.