Skip to content

Commit

Permalink
feat(android): use Android 13 API to set the language in the app sett…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
vareversat committed Mar 17, 2023
1 parent 277a80c commit af5c496
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<application
android:label="Chabo"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
android:icon="@mipmap/ic_launcher"
android:localeConfig="@xml/locales_config">


<!-- Google Ads -->
Expand Down
10 changes: 10 additions & 0 deletions android/app/src/main/res/xml/locales_config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<locale android:name="en"/>
<locale android:name="en-GB"/>
<locale android:name="en-US"/>
<locale android:name="es"/>
<locale android:name="es-ES"/>
<locale android:name="fr"/>
<locale android:name="fr-FR"/>
</locale-config>

0 comments on commit af5c496

Please sign in to comment.