-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: include French #11361
docs: include French #11361
Changes from 5 commits
cd70922
863b0c6
9f29c5a
309ae5f
7c1aa89
18150b8
793ce36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
// 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: { | ||
|
@@ -19,6 +19,9 @@ const localeConfigs = { | |
'es-ES': { | ||
label: 'Español', | ||
}, | ||
'fr': { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You also need to add it to the locales array above BTW it's now not-required to provide a local config, as Docusaurus provide default localized labels for each locale automatically There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops ! i fix it ! |
||
label: 'Français', | ||
}, | ||
'pt-BR': { | ||
label: 'Português (Brasil)', | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand the error for Typescript. Why is only 'fr' affected, should it be the case for the others too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not typescript, it's eslint since the line is too long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just run prettier on the file and it should be happy 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yarn prettier website/i18n.js --write
should do the trick, not sure how you got double quotes 🙈