Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

astone123
Copy link
Collaborator

@astone123 astone123 commented Dec 23, 2023

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

@astone123 astone123 self-assigned this Dec 23, 2023
Copy link

cypress bot commented Dec 23, 2023

top90-frontend    Run #110

Run Properties:  status check passed Passed #110  •  git commit f09ddd30d5: format
Project top90-frontend
Branch Review spanish-translations
Run status status check passed Passed #110
Run duration 00m 31s
Commit git commit f09ddd30d5: format
Committer astone123
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  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>
Copy link
Owner

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?

Copy link
Owner

@wweitzel wweitzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left one comment and also Im seeing the following warning:

Screenshot 2024-01-01 at 10 14 35 PM -

Any ideas what thats about?

@astone123 astone123 closed this Jun 19, 2024
@astone123 astone123 reopened this Aug 9, 2024
david-c-smith
david-c-smith previously approved these changes Aug 9, 2024
Copy link
Collaborator

@david-c-smith david-c-smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 🚢 🚢 🚢 🚢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants