initial ui changes

This commit is contained in:
Zane Schepke
2024-10-21 23:52:20 -04:00
parent 89f6dec357
commit 553279ea76
46 changed files with 2131 additions and 678 deletions
+12
View File
@@ -72,6 +72,18 @@ fun Project.getSigningProperty(property: String): String {
)
}
fun Project.languageList(): List<String> {
return fileTree("../app/src/main/res") { include("**/strings.xml") }
.asSequence()
.map { stringFile -> stringFile.parentFile.name }
.map { valuesFolderName -> valuesFolderName.replace("values-", "") }
.filter { valuesFolderName -> valuesFolderName != "values" }
.map { languageCode -> languageCode.replace("-r", "_") }
.distinct()
.sorted()
.toList() + "en"
}