Add per-app language selection (Android 13+)
Declare supported locales (en, nb, nn) via localeConfig so users can pick the app language from system settings without changing their device locale. Accessed via long-press → App Info → Language. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
92531ee971
commit
46365b713b
2 changed files with 8 additions and 1 deletions
|
|
@ -17,7 +17,8 @@
|
|||
android:label="@string/app_name"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.Tilfluktsrom"
|
||||
android:networkSecurityConfig="@xml/network_security_config">
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
android:localeConfig="@xml/locales_config">
|
||||
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
|
|
|
|||
6
app/src/main/res/xml/locales_config.xml
Normal file
6
app/src/main/res/xml/locales_config.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?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="nb" />
|
||||
<locale android:name="nn" />
|
||||
</locale-config>
|
||||
Loading…
Add table
Add a link
Reference in a new issue