Skip to content

feat(i18n): add Brazilian Portuguese (pt-BR) translation (closes #648) - #650

Merged
ProdigyV21 merged 4 commits into
ProdigyV21:mainfrom
procopio1000:feat/pt-br-translation
Sep 5, 2026
Merged

feat(i18n): add Brazilian Portuguese (pt-BR) translation (closes #648)#650
ProdigyV21 merged 4 commits into
ProdigyV21:mainfrom
procopio1000:feat/pt-br-translation

Conversation

@procopio1000

Copy link
Copy Markdown

Description

This PR adds full Brazilian Portuguese (pt-BR) localization and system language auto-detection as requested in #648.

Changes Included:

  • XML Translations:
    • app/src/main/res/values-pt-rBR/strings.xml: Fully translated all 1,417 user-facing strings (100% key and placeholder parity with base values/strings.xml).
    • app/src/main/res/values-pt/strings.xml: Added general Portuguese fallback with all 1,417 strings.
  • Language Detection & UX:
    • app/src/main/kotlin/com/arflix/tv/util/AppLanguage.kt: Added defaultAppLanguage() to detect system locale (pt_BR / pt) on initial launch, preventing fallback to English on Portuguese devices. Added extras dictionary to AppTranslations.
    • app/src/main/kotlin/com/arflix/tv/ui/screens/settings/SettingsScreen.kt: Updated display label to "Português (Brasil)".
    • Updated initial fallback language in MainActivity.kt, HomeViewModel.kt, HomeProfilePreferences.kt, and SettingsViewModel.kt to use defaultAppLanguage().

Closes #648

@github-actions github-actions Bot added the area: android Changes to the Android app or Gradle build label Sep 5, 2026
@ProdigyV21
ProdigyV21 merged commit 2e0e165 into ProdigyV21:main Sep 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: android Changes to the Android app or Gradle build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add Brazilian Portuguese (pt-BR) interface translation

2 participants