Skip to content

feat(i18n): add Hindi language option - #12

Merged
ggfto merged 1 commit into
ggfto:mainfrom
Aaqibhafeezkhan:feat/hindi-localization
Oct 23, 2026
Merged

ggfto merged 1 commit into
ggfto:mainfrom
Aaqibhafeezkhan:feat/hindi-localization

Conversation

@Aaqibhafeezkhan

Copy link
Copy Markdown
Contributor

Summary

  • Add Hindi as a selectable app language and detect Hindi device locales automatically.
  • Send hi-IN in the PC-side Accept-Language header.
  • Translate common app controls and deck messages, falling back to English for untranslated strings.
  • Add tests for Hindi selection, translation, fallback, and the language header.

Testing

  • Updated app/test/i18n_test.dart.

Closes #8

@ggfto ggfto left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks a lot for the Hindi translation! I'm merging it and, right after, moving all translations to one JSON file per language (auto-discovered by the app and the PC), so your strings will move to hi.json and anything still untranslated will fall back to English.

@ggfto
ggfto merged commit 41ad6c7 into ggfto:main Oct 23, 2026
3 checks passed
ggfto added a commit that referenced this pull request Oct 23, 2026
…o PC, e ingles como idioma padrao

- app/assets/i18n/<codigo>.json com os textos do app e do PC (o hindi do PR #12 vira hi.json)
- o app lista os idiomas pelos arquivos (Aparencia > Idioma vira uma lista) e o PC os embute
- texto sem traducao sai em ingles; aparelho ou navegador em idioma sem arquivo tambem
- Accept-Language escolhe a primeira preferencia que tem arquivo
- separador decimal, abreviacoes e ordem da data vem do arquivo do idioma
- testes: todo tr() do app tem ingles e espanhol; traducao orfa conta o codigo Dart tambem
- bandeja: Sair vira Encerrar e o formato do botao de informacao vira Formato (mesma chave tinha dois sentidos)
- CONTRIBUTING explica como acrescentar um idioma
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.

Translate the app into another language (French, German, Italian…)

2 participants