feat: localisation with lyricist

This commit is contained in:
2026-06-05 23:52:30 +02:00
parent 039f1c430a
commit ed3371aa6f
12 changed files with 453 additions and 243 deletions
+29 -3
View File
@@ -55,6 +55,12 @@ android {
srcDir("src/main/proto")
}
}
getByName("debug") {
java.srcDirs("build/generated/ksp/debug/kotlin")
}
getByName("release") {
java.srcDirs("build/generated/ksp/release/kotlin")
}
}
}
@@ -124,9 +130,13 @@ dependencies {
implementation(libs.androidx.compose.animation)
// secp256k1
dependencies {
implementation(libs.secp256k1.kmp.android)
}
implementation(libs.secp256k1.kmp.android)
implementation(libs.lyricist)
// Required for @LyricistStrings code generation
ksp(libs.lyricist.processor)
}
protobuf {
@@ -146,3 +156,19 @@ protobuf {
}
}
}
ksp {
// Make generated code internal instead of public
arg("lyricist.internalVisibility", "true")
// Generate a `strings` shorthand instead of LocalStrings.current
arg("lyricist.generateStringsProperty", "true")
// For multi-module projects (generates LocalDashboardStrings, etc.)
arg("lyricist.packageName", "com.bitcointxoko.gudariwallet")
arg("lyricist.moduleName", project.name)
// Only for strings.xml migration:
// arg("lyricist.xml.resourcesPath", android.sourceSets["main"].res.srcDirs.first().absolutePath)
// arg("lyricist.xml.defaultLanguageTag", "en")
}