feat: support per app language settings

Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
Infi 2023-06-04 02:54:56 +02:00
parent 3a71b33f47
commit 1b7d4e8cd2
3 changed files with 11 additions and 1 deletions

View File

@ -57,6 +57,8 @@ android {
vectorDrawables {
useSupportLibrary true
}
resourceConfigurations += ["en", "de", "fr", "id"]
}
buildTypes {

View File

@ -15,7 +15,8 @@
android:supportsRtl="true"
android:name=".RevoltApplication"
android:theme="@style/Theme.Revolt"
tools:targetApi="31">
android:localeConfig="@xml/locale_config"
tools:targetApi="tiramisu">
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"

View File

@ -0,0 +1,7 @@
<?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="de" />
<locale android:name="fr" />
<locale android:name="id" />
</locale-config>