chore: autogenerate locale files

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2024-11-13 03:46:07 +01:00
parent 9ea8e0277d
commit 991f47b5f4
4 changed files with 4 additions and 91 deletions

View File

@ -84,51 +84,6 @@ android {
useSupportLibrary = true
}
// Please keep this list sorted alphabetically.
resourceConfigurations += listOf(
"ar",
"ast",
"b+es+419",
"be",
"bg",
"bn",
"ca",
"ckb",
"cs",
"de",
"el",
"eo",
"en",
"es",
"fa",
"fi",
"fil",
"fr",
"gl",
"hi",
"hr",
"hu",
"id",
"in",
"it",
"ja",
"lt",
"mwl",
"nb-rNO",
"nl",
"pl",
"pt",
"pt-rBR",
"ro",
"ru",
"si",
"th",
"tr",
"uk",
"zh-rCN",
"zh-rTW"
)
externalNativeBuild {
cmake {
cppFlags("")
@ -197,6 +152,9 @@ android {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
androidResources {
generateLocaleConfig = true
}
namespace = "chat.revolt"
externalNativeBuild {
cmake {

View File

@ -33,7 +33,6 @@
android:supportsRtl="true"
android:name=".RevoltApplication"
android:theme="@style/Theme.Revolt"
android:localeConfig="@xml/locale_config"
android:enableOnBackInvokedCallback="true"
tools:targetApi="tiramisu">
<provider

View File

@ -0,0 +1 @@
unqualifiedResLocale=en-US

View File

@ -1,45 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Please keep this list sorted alphabetically. -->
<locale android:name="ar" />
<locale android:name="ast" />
<locale android:name="b+es+419" />
<locale android:name="be" />
<locale android:name="bg" />
<locale android:name="bn" />
<locale android:name="ca" />
<locale android:name="ckb" />
<locale android:name="cs" />
<locale android:name="de" />
<locale android:name="el" />
<locale android:name="eo" />
<locale android:name="en" />
<locale android:name="es" />
<locale android:name="fa" />
<locale android:name="fi" />
<locale android:name="fil" />
<locale android:name="fr" />
<locale android:name="gl" />
<locale android:name="hi" />
<locale android:name="hr" />
<locale android:name="hu" />
<locale android:name="id" />
<locale android:name="in" />
<locale android:name="it" />
<locale android:name="ja" />
<locale android:name="lt" />
<locale android:name="mwl" />
<locale android:name="nb-rNO" />
<locale android:name="nl" />
<locale android:name="pl" />
<locale android:name="pt" />
<locale android:name="pt-rBR" />
<locale android:name="ro" />
<locale android:name="ru" />
<locale android:name="si" />
<locale android:name="th" />
<locale android:name="tr" />
<locale android:name="uk" />
<locale android:name="zh-rCN" />
<locale android:name="zh-rTW" />
</locale-config>