Skip to content

Commit

Permalink
Merge pull request #895 from openSUSE/fix_product_po_merge
Browse files Browse the repository at this point in the history
Fixed merging product translations
  • Loading branch information
lslezak authored Nov 30, 2023
2 parents 5e7a449 + 6fe2c14 commit 21a450c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/product_translations/merge_po
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class YamlProduct {
const newTranslations = {};

translations.forEach(t => {
if (t.msgid === description) {
if (t.msgid === description && t.msgstr?.length > 0) {
newTranslations[t.locale] = t.msgstr;
}
});
Expand Down

0 comments on commit 21a450c

Please sign in to comment.