create string file if this not exist

This commit is contained in:
Bogdan Terehov 2025-10-23 17:17:20 +03:00
parent 60b1e4a3e9
commit d4d0d1b75d
1 changed files with 5 additions and 0 deletions

View File

@ -32,6 +32,11 @@ private def generate(Map<String, String> sources, Project project) {
}
def stringsFile = getFile(key, key == defaultLang, project)
if (!stringsFile.exists()) {
stringsFile.parentFile.mkdirs()
stringsFile.createNewFile()
}
stringsFile.write(sw.toString(), "UTF-8")
}
}