-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
refactor: capitalize locales when creating i18n config #6048
Conversation
✔️ [V2] 🔨 Explore the source changes: 774a495 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61b0a24fcf73b200089fd3a5 😎 Browse the preview: https://deploy-preview-6048--docusaurus-2.netlify.app |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-6048--docusaurus-2.netlify.app/ |
Size Change: +478 B (0%) Total Size: 657 kB
ℹ️ View Unchanged
|
Why not just add |
Yes, we can do that, but then we will have two |
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.
LGTM thanks
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Motivation
Locale labels must be initially uppercased, because it is currently renders as lower-cased for active item in dropdown.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)