android: Auto-generate locale config

This commit is contained in:
Charles Lombardo 2023-10-31 20:29:16 -04:00
parent 1d7ff850d6
commit 97b4ca1d01
4 changed files with 5 additions and 18 deletions

View file

@ -47,6 +47,10 @@ android {
jniLibs.useLegacyPackaging = true
}
androidResources {
generateLocaleConfig = true
}
defaultConfig {
// TODO If this is ever modified, change application_id in strings.xml
applicationId = "org.yuzu.yuzu_emu"

View file

@ -26,7 +26,6 @@ SPDX-License-Identifier: GPL-3.0-or-later
android:supportsRtl="true"
android:isGame="true"
android:appCategory="game"
android:localeConfig="@xml/locales_config"
android:banner="@drawable/tv_banner"
android:fullBackupContent="@xml/data_extraction_rules"
android:dataExtractionRules="@xml/data_extraction_rules_api_31"

View file

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

View file

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<locale-config xmlns:android="http://schemas.android.com/apk/res/android">
<locale android:name="en" /> <!-- English (default) -->
<locale android:name="de" /> <!-- German -->
<locale android:name="es" /> <!-- Spanish -->
<locale android:name="fr" /> <!-- French -->
<locale android:name="it" /> <!-- Italian -->
<locale android:name="ja" /> <!-- Japanese -->
<locale android:name="nb" /> <!-- Norwegian Bokmal -->
<locale android:name="pl" /> <!-- Polish -->
<locale android:name="pt-rBR" /> <!-- Portuguese (Brazil) -->
<locale android:name="pt-RPT" /> <!-- Portuguese (Portugal) -->
<locale android:name="ru" /> <!-- Russian -->
<locale android:name="uk" /> <!-- Ukranian -->
<locale android:name="zh-rCN" /> <!-- Chinese (China) -->
<locale android:name="zh-rTW" /> <!-- Chinese (Taiwan) -->
</locale-config>