Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(per-app-language): add Android config plugin #247

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jetaix
Copy link

@jetaix jetaix commented Aug 14, 2024

Why

This plugin simplifies the process of implementing per-app language preferences in your React Native Android app.

It allows users to set a specific language for your app, independent of their system-wide language settings.

How

This plugin automates the manual setup process described in the Android documentation for implementing per-app language preferences

Test Plan

To ensure that the @config-plugins/react-native-android-per-app-language plugin is working correctly, follow these steps:

  • After running expo prebuild, check that the AndroidManifest.xml file in your Android project contains the android:localeConfig="@xml/locales_config" attribute in the <application> tag.
  • Verify that a locales_config.xml file has been created in the android/app/src/main/res/xml/ directory.
  • Ensure that the locales_config.xml file contains all the languages specified in your supportedLanguages configuration.

@jetaix jetaix marked this pull request as ready for review August 14, 2024 10:00
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.

1 participant