Skip to content

Comments

Use ConfigurationCompat for locale access in I18nManagerModule#55663

Open
alanleedev wants to merge 1 commit intofacebook:mainfrom
alanleedev:export-D93943818
Open

Use ConfigurationCompat for locale access in I18nManagerModule#55663
alanleedev wants to merge 1 commit intofacebook:mainfrom
alanleedev:export-D93943818

Conversation

@alanleedev
Copy link
Contributor

Summary:
Replace the direct configuration.locales[0] call with ConfigurationCompat.getLocales() from AndroidX, which handles the API level check internally. Falls back to Locale.getDefault() if the locale list is empty.

Changelog: [Internal]


Differential Revision: D93943818

Summary:
Replace the direct `configuration.locales[0]` call with `ConfigurationCompat.getLocales()` from AndroidX, which handles the API level check internally. Falls back to `Locale.getDefault()` if the locale list is empty.

Changelog: [Internal]

----

Differential Revision: D93943818
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 21, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 21, 2026

@alanleedev has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93943818.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants