File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/stringray/Commands Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ protocol Command {
1818
1919extension Command {
2020 func write( to url: Foundation . URL , table: StringsTable ) throws {
21- for (languageId, languageEntries) in table. entries {
21+ for (languageId, languageEntries) in table. entries where !languageEntries . isEmpty {
2222 let fileURL = try url. stringsURL ( tableName: table. name, locale: languageId)
2323 guard let outputStream = OutputStream ( url: fileURL, append: false ) else { continue }
2424 outputStream. open ( )
@@ -33,7 +33,7 @@ extension Command {
3333 outputStream. close ( )
3434 }
3535
36- for (languageId, languageEntries) in table. dictEntries {
36+ for (languageId, languageEntries) in table. dictEntries where !languageEntries . isEmpty {
3737 let fileURL = try url. stringsDictURL ( tableName: table. name, locale: languageId)
3838 let encoder = PropertyListEncoder ( )
3939 encoder. outputFormat = . xml
You can’t perform that action at this time.
0 commit comments