-
-
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
Conversation
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.
Add fr to locales array
website/i18n.js
Outdated
@@ -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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Oops ! i fix it !
docs: Add fr to locale array to display in dropdown correctly
@SimenB For me it's normal, only the original doc works because it's a build for a preview. See dococusaurus docs:
|
website/i18n.js
Outdated
@@ -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']; |
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 🙈
thanks @forresst! |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Add French To website (Hello @slorber)
Test plan
Nope