Skip to content

Commit 90094fe

Browse files
authored
Merge pull request #691 from ZeusWPI/feature/per-app
Support per-app language settings
2 parents 6861b6d + e646eba commit 90094fe

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ android {
4141
versionName "3.4.0"
4242
vectorDrawables.useSupportLibrary = true
4343
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
44+
resConfigs "nl", "en"
4445

4546
// For a description of what these do, see the config.properties file.
4647
buildConfigField "boolean", "DEBUG_HOME_STREAM_PRIORITY", props.getProperty('hydra.debug.home.stream.priority')

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
android:roundIcon="@mipmap/ic_launcher_round"
5656
android:supportsRtl="false"
5757
android:theme="@style/Hydra.Material"
58-
tools:ignore="AllowBackup,GoogleAppIndexingWarning"
58+
android:localeConfig="@xml/locales_config"
59+
tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute"
5960
tools:replace="android:supportsRtl">
6061

6162
<!-- Main activity -->
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
3+
<locale android:name="nl"/>
4+
<locale android:name="en"/>
5+
</locale-config>

0 commit comments

Comments
 (0)