Skip to content

Commit 26cb29a

Browse files
authored
docs: include French (#11361)
1 parent 7c6cea2 commit 26cb29a

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
- `[website]` Replace 'Github' with 'GitHub' ([#11279](https://github.com/facebook/jest/pull/11279))
122122
- `[website]` Remove a language code from the link to the Node.js website ([#11282](https://github.com/facebook/jest/pull/11282))
123123
- `[website]` Remove a duplicated word ([#11281](https://github.com/facebook/jest/pull/11281))
124+
- `[website]` Add french to website ([#11361](https://github.com/facebook/jest/pull/11361))
124125

125126
### Performance
126127

crowdin.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ preserve_hierarchy: true
1212
languages_mapping: &languages_mapping
1313
locale:
1414
'es-ES': 'es-ES'
15+
'fr': 'fr'
1516
'ja': 'ja'
1617
'pt-BR': 'pt-BR'
1718
'ro': 'ro'

website/i18n.js

+14-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@
77

88
// The top-30 locales on Crowdin are enabled
99
// but we enable only a subset of those
10-
const locales = ['en', 'ja', 'es-ES', 'pt-BR', 'ro', 'ru', 'uk', 'zh-Hans'];
10+
const locales = [
11+
'en',
12+
'ja',
13+
'es-ES',
14+
'fr',
15+
'pt-BR',
16+
'ro',
17+
'ru',
18+
'uk',
19+
'zh-Hans',
20+
];
1121

1222
const localeConfigs = {
1323
en: {
@@ -19,6 +29,9 @@ const localeConfigs = {
1929
'es-ES': {
2030
label: 'Español',
2131
},
32+
fr: {
33+
label: 'Français',
34+
},
2235
'pt-BR': {
2336
label: 'Português (Brasil)',
2437
},

website/static/_redirects

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/docs/en/* /docs/:splat
1111
/docs/ja/* /ja/docs/:splat
1212
/docs/es-ES/* /es-ES/docs/:splat
13+
/docs/fr/* /fr/docs/:splat
1314
/docs/pt-BR/* /pt-BR/docs/:splat
1415
/docs/ro/* /ro/docs/:splat
1516
/docs/ru/* /ru/docs/:splat
@@ -22,6 +23,7 @@
2223

2324
/ja/* /ja/404.html 404
2425
/es-ES/* /es-ES/404.html 404
26+
/fr/* /fr/404.html 404
2527
/pt-BR/* /pt-BR/404.html 404
2628
/ro/* /ro/404.html 404
2729
/ru/* /ru/404.html 404

0 commit comments

Comments
 (0)