mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
Enable per-app language preferences
This commit enables the automatic generation of per-app language preferences by configuring the Android Gradle Plugin. A `resources.properties` file is added to specify `en` as the `unqualifiedResLocale`, which serves as the default/fallback locale. Additionally, `.kotlin` is added to `.gitignore` to exclude Kotlin build-related files.
This commit is contained in:
@@ -24,6 +24,11 @@ android {
|
||||
testInstrumentationRunner = "eu.darken.capod.HiltTestRunner"
|
||||
}
|
||||
|
||||
// Enable automatic per-app language preferences generation
|
||||
androidResources {
|
||||
generateLocaleConfig = true
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
val basePath = File(System.getProperty("user.home"), ".appconfig/${ProjectConfig.packageName}")
|
||||
create("releaseFoss") {
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# This file configures automatic per-app language preference support
|
||||
# It tells AGP to generate LocaleConfig automatically from available translations
|
||||
# The unqualifiedResLocale is the default/fallback locale (from res/values/strings.xml)
|
||||
unqualifiedResLocale=en
|
||||
Reference in New Issue
Block a user