Skip to content

fix(android.localization): Use older language tag scheme#1645

Merged
KaylaBrady merged 2 commits intomainfrom
kb-lang-tags
Apr 7, 2026
Merged

fix(android.localization): Use older language tag scheme#1645
KaylaBrady merged 2 commits intomainfrom
kb-lang-tags

Conversation

@KaylaBrady
Copy link
Copy Markdown
Collaborator

@KaylaBrady KaylaBrady commented Apr 7, 2026

Summary

Ticket: Notifications QA | Notifications sent in lower-tier language

What is this PR for?
This PR doesn't actually address the named issue; it seems like that is an OS-level bug (ex: this pixel support thread, which claims the issue was fixed March 2025). This does address the named issue, thanks to Emma's fix!

This addresses the issue @EmmaSimon raised in slack about languages with region codes not localizing at all.

iOS

  • If you added any user-facing strings on iOS, are they included in Localizable.xcstrings?
    • Add temporary machine translations, marked "Needs Review"

android

  • All user-facing strings added to strings resource in alphabetical order
  • Expensive calculations are run in withContext(Dispatchers.Default) where possible (ideally in shared code)

Testing

What testing have you done?

  • Ran locally on Galaxy S22 in Portuguese & Chinese

@KaylaBrady KaylaBrady marked this pull request as ready for review April 7, 2026 17:59
@KaylaBrady KaylaBrady requested a review from a team as a code owner April 7, 2026 17:59
@KaylaBrady KaylaBrady requested a review from EmmaSimon April 7, 2026 17:59
)

val content = NotificationContent.build(applicationContext.resources, payload)
// The applicationContext is not always guaranteed to be set to use the current system
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

TY @EmmaSimon for this diff!

Tested it out with english & french as my primary language and confirmed the notification was in the correct language.

@KaylaBrady KaylaBrady enabled auto-merge April 7, 2026 19:36
@KaylaBrady KaylaBrady added this pull request to the merge queue Apr 7, 2026
Merged via the queue into main with commit 640ae83 Apr 7, 2026
11 checks passed
@KaylaBrady KaylaBrady deleted the kb-lang-tags branch April 7, 2026 20:08
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