Add English language support alongside Vietnamese #18
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/i18n-english"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds English to the TV app, the phone remote and the release notes. Vietnamese stays the default everywhere.
TV app
KaraRootprovides a localizedContext,ConfigurationandResources;stringResourcereadsLocalResourcesin Compose 1.13.values-en/strings.xmltranslates every UI string. Brand names and author info are markedtranslatable="false".NoticeCode,FailReason) instead of hardcoded Vietnamese text."karaoke".Protocol (backward compatible)
code(already_queued,wrong_room_code,rate_limited,unauthorized,search_failed,suggest_failed).message/errorkeep the Vietnamese text, so older remotes still work. Documented indocs/protocol.md.Remote web
localStorage(kara.lang). It defaults to Vietnamese.code, falling back to the server text.Release notes
release-prepare.shwrites a bilingual body with<!-- lang:vi -->/<!-- lang:en -->markers.Vi:commit trailer and fall back to the English subject. Renovate commits collapse into "Cập nhật thư viện" in the Vietnamese section.Testing
testDebugUnitTestpasses: 54 tests, including newreleaseNotesForand settings-migration tests.lintDebugis clean.pnpm typecheckandpnpm buildpass for the remote.code: already_queued.