forked from organicmaps/organicmaps
[android] Enable per-app language for Android 13+ (#3584)
* [Android]Update appcompat to 1.6.0-rc01 Signed-off-by: Jean-Baptiste CHARRON <jeanbaptiste.charron@outlook.fr> * [android] Add Per-app language preferences Add properties in AndroidManifest Create locales config with all languages Signed-off-by: Jean-Baptiste CHARRON <jeanbaptiste.charron@outlook.fr> * Added newline Signed-off-by: Jean-Baptiste CHARRON <jeanbaptiste.charron@outlook.fr> Co-authored-by: Alexander Borsuk <170263+biodranik@users.noreply.github.com>
This commit is contained in:
parent
c8f85b1754
commit
73049543b6
3 changed files with 47 additions and 1 deletions
|
@ -58,6 +58,7 @@
|
|||
android:dataExtractionRules="@xml/backup_content_v31"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:localeConfig="@xml/locales_config"
|
||||
android:theme="@style/MwmTheme"
|
||||
android:supportsRtl="true"
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
|
|
|
@ -83,7 +83,7 @@ dependencies {
|
|||
}
|
||||
|
||||
implementation 'androidx.annotation:annotation:1.5.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.5.1'
|
||||
implementation 'androidx.appcompat:appcompat:1.6.0-rc01'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
||||
implementation 'androidx.fragment:fragment:1.5.3'
|
||||
// Lifecycle is added as a workaround for duplicate classes error caused by some outdated dependency:
|
||||
|
|
45
android/res/xml/locales_config.xml
Normal file
45
android/res/xml/locales_config.xml
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?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="ar" />
|
||||
<locale android:name="be" />
|
||||
<locale android:name="bg" />
|
||||
<locale android:name="ca" />
|
||||
<locale android:name="cs" />
|
||||
<locale android:name="da" />
|
||||
<locale android:name="de" />
|
||||
<locale android:name="el" />
|
||||
<locale android:name="en-GB" />
|
||||
<locale android:name="es" />
|
||||
<locale android:name="es-MX" />
|
||||
<locale android:name="eu" />
|
||||
<locale android:name="fa" />
|
||||
<locale android:name="fi" />
|
||||
<locale android:name="fr" />
|
||||
<locale android:name="fr-CA" />
|
||||
<locale android:name="hu" />
|
||||
<locale android:name="in" />
|
||||
<locale android:name="it" />
|
||||
<locale android:name="iw" />
|
||||
<locale android:name="ja" />
|
||||
<locale android:name="ko" />
|
||||
<locale android:name="mr" />
|
||||
<locale android:name="nb" />
|
||||
<locale android:name="nl" />
|
||||
<locale android:name="pl" />
|
||||
<locale android:name="pt" />
|
||||
<locale android:name="pt-BR" />
|
||||
<locale android:name="ro" />
|
||||
<locale android:name="ru" />
|
||||
<locale android:name="sk" />
|
||||
<locale android:name="sv" />
|
||||
<locale android:name="sw" />
|
||||
<locale android:name="th" />
|
||||
<locale android:name="tr" />
|
||||
<locale android:name="uk" />
|
||||
<locale android:name="vi" />
|
||||
<locale android:name="zh" />
|
||||
<locale android:name="zh-HK" />
|
||||
<locale android:name="zh-MO" />
|
||||
<locale android:name="zh-TW" />
|
||||
</locale-config>
|
Loading…
Add table
Reference in a new issue