Skip to content

Commit 49cc3c3

Browse files
committed
feat: add per-app language support
Signed-off-by: Lennoard <lennoardrai@gmail.com>
1 parent 848b297 commit 49cc3c3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
<application
1616
android:name=".SysctlGuiApp"
1717
android:allowBackup="false"
18+
android:enableOnBackInvokedCallback="true"
1819
android:icon="@mipmap/ic_launcher"
1920
android:label="@string/app_name"
21+
android:localeConfig="@xml/locales_config"
2022
android:roundIcon="@mipmap/ic_launcher_round"
2123
android:supportsRtl="true"
2224
android:theme="@style/AppTheme"
23-
android:enableOnBackInvokedCallback="true"
2425
tools:ignore="GoogleAppIndexingWarning">
2526
<activity android:name=".ui.main.MainActivity" />
2627
<activity
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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="de" />
5+
<locale android:name="pt-rBR" />
6+
<locale android:name="tr" />
7+
</locale-config>

0 commit comments

Comments
 (0)