Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 1ac6a04

Browse files
authored
Merge pull request #309 from julroy67/perapp-language
Add Android 13 per-app language preferences
2 parents c8abf26 + 21927d2 commit 1ac6a04

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

mastodon/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ android {
1212
versionCode 43
1313
versionName "1.1.4"
1414
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15+
resConfigs "en", "ar-rSA", "bs-rBA", "ca-rES", "cs-rCZ", "de-rDE", "el-rGR", "es-rES",
16+
"eu-rES", "fi-rFI", "fr-rFR", "gl-rES", "hr-rHR", "hy-rAM", "it-rIT", "iw-rIL",
17+
"ja-rJP", "kab", "ko-rKR", "oc-rFR", "pl-rPL", "pt-rBR", "pt-rPT", "ru-rRU",
18+
"sv-rSE", "th-rTH", "tr-rTR", "uk-rUA", "vi-rVN", "zh-rCN", "zh-rTW"
1519
}
1620

1721
buildTypes {

mastodon/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
android:allowBackup="true"
1717
android:label="@string/app_name"
1818
android:supportsRtl="true"
19+
android:localeConfig="@xml/locales_config"
1920
android:icon="@mipmap/ic_launcher"
2021
android:roundIcon="@mipmap/ic_launcher_round"
2122
android:theme="@style/Theme.Mastodon.AutoLightDark"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
3+
<locale android:name="en" />
4+
<locale android:name="ar" />
5+
<locale android:name="bs" />
6+
<locale android:name="ca" />
7+
<locale android:name="cs" />
8+
<locale android:name="de" />
9+
<locale android:name="el" />
10+
<locale android:name="es" />
11+
<locale android:name="eu" />
12+
<locale android:name="fi" />
13+
<locale android:name="fr" />
14+
<locale android:name="gl" />
15+
<locale android:name="hr" />
16+
<locale android:name="hy" />
17+
<locale android:name="it" />
18+
<locale android:name="iw" />
19+
<locale android:name="ja" />
20+
<locale android:name="kab" />
21+
<locale android:name="ko" />
22+
<locale android:name="oc" />
23+
<locale android:name="pl" />
24+
<locale android:name="pt-BR" />
25+
<locale android:name="pt-PT" />
26+
<locale android:name="ru" />
27+
<locale android:name="sv" />
28+
<locale android:name="th" />
29+
<locale android:name="tr" />
30+
<locale android:name="uk" />
31+
<locale android:name="vi" />
32+
<locale android:name="zh-Hans" />
33+
<locale android:name="zh-Hant" />
34+
</locale-config>

0 commit comments

Comments
 (0)