Gestion des commentaires

This commit is contained in:
2024-04-12 17:15:15 +02:00
parent ba07005b13
commit 209ba49e3f
3 changed files with 288 additions and 8 deletions

View File

@ -166,7 +166,8 @@ class StringsFileGenerator {
}
if !skipDefinition {
for (lang, value) in definition.translations {
for (lang, value) in definition.translations where !value.isEmpty {
let localization = XCStringLocalization(
lang: lang,
content: XCStringLocalizationLangContent(
@ -180,6 +181,7 @@ class StringsFileGenerator {
let xcStringDefinition = XCStringDefinition(
title: definition.name,
content: XCStringDefinitionContent(
comment: definition.comment,
extractionState: "manual",
localizations: XCStringLocalizationContainer(
localizations: localizationTab