feat(i18n): add English and Brazilian Portuguese translations - #25
Open
Deehlusa wants to merge 1 commit into
Open
feat(i18n): add English and Brazilian Portuguese translations#25Deehlusa wants to merge 1 commit into
Deehlusa wants to merge 1 commit into
Conversation
- Install react-i18next, i18next, i18next-browser-languagedetector - Add src/i18n.ts with language detection and fallback to English - Create src/locales/en/translation.json and src/locales/pt-BR/translation.json - Extract all UI strings from src/main.tsx to translation keys - Update components to use useTranslation() and t() - Add LanguageSelector component integrated into header/topbar - Persist selected language in localStorage (autoshorts_language)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @JayWebtech,
This PR adds internationalization support to AutoShorts, starting with English and Brazilian Portuguese.
What changed
react-i18next,i18nextandi18next-browser-languagedetector.src/i18n.tswith language detection, fallback to English and persistence in localStorage.src/locales/en/translation.jsonandsrc/locales/pt-BR/translation.json.src/main.tsxinto translation keys.useTranslation().LanguageSelectorcomponent in the header/topbar so users can switch language at runtime.How to test
npm installandnpm run dev.Português (Brasil)and verify all labels, settings, onboarding and modals are translated.Notes
Let me know if you'd like any adjustments. Happy to help!