-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add Spanish translations #102
base: master
Are you sure you want to change the base?
Conversation
top90-frontend Run #110
Run Properties:
|
Project |
top90-frontend
|
Branch Review |
spanish-translations
|
Run status |
Passed #110
|
Run duration | 00m 31s |
Commit |
f09ddd30d5: format
|
Committer | astone123 |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
10
|
View all changes introduced in this branch ↗︎ |
Accessibility
80.68%
|
|
---|---|
Failed rules |
4 critical
1 serious
3 moderate
1 minor
|
Failed elements |
650
|
<div>{date.toDateString()}</div> | ||
<div>{formattedTime(date)}</div> | ||
{/* Sat Dec 23 2023 */} | ||
<div>{format(date, 'EEE MMM d yyyy', {locale: localesMap[navigator.language]})}</div> |
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.
@astone123 Can we encapsulate this logic to "get the user's current locale.Locale" somewhere so that we don't have to define localsMap
and do localesMap[navigator.language]}
every time we want it?
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.
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.
🚢 🚢 🚢 🚢 🚢
This PR adds Spanish translations with
react-i18next
. It also adds a Prettier extension for sorting keys in JSON files to keep our translation files organized.You can test this by changing the language in your browser to Spanish