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: internationalization #13

Merged
merged 5 commits into from
Jul 3, 2024
Merged

Conversation

barrenechea
Copy link
Contributor

This is a feature I have wanted to add since I started playing with bmc-ui!

I'm leveraging react-i18next to handle the logic and add a new src/locale folder containing all languages.

The en language is the fallback language if the user's preferred languages are not available. Its keys are based on the existing texts across the app and the foundation for newly added languages.

I also added Spanish, German, Dutch, Polish, and Simplified Chinese, which have been generated by GPT4o. I manually validated the Spanish translation (it is my native language), but it would be good to validate the other languages over time, adjusting wherever needed.

For a more unified experience, I replaced the ThemeToggle component with a new UserNav component:

Screen Recording 2024-06-17 at 9 48 49 PM

The Logout button was just a nice addition, considering there was no Logout button before 😜

Bumping minor, now it is at v3.2.0. The last commit's build size, as reported by my computer:

1.396.772 bytes (1,5 MB on disk) for 63 items

@svenrademakers
Copy link
Collaborator

Once again a quality commit. flashed it, did not see any regression

@svenrademakers svenrademakers merged commit 7618c82 into turing-machines:main Jul 3, 2024
3 checks passed
@barrenechea barrenechea deleted the i18n branch October 28, 2024 12:32
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.

2 participants