this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

✨ Only warn of missing translations when everything is rendered

+4 -4
+4 -4
main.go
··· 113 113 color.Red("[%s] Couln't render %s: %s", translations.language, path, err) 114 114 os.Exit(1) 115 115 } 116 - if len(translations.missingMessages) > 0 { 117 - color.Red("[%s] Some content is not translated. See errors above.", translations.language) 118 - os.Exit(1) 119 - } 120 116 } 121 117 unusedTranslationsCount, _ := translations.WriteUnusedMessages() 122 118 if unusedTranslationsCount > 0 { 123 119 color.Yellow("[%s] %s contains %d unused messages, see %s", translations.language, translations.PoFilePath(), unusedTranslationsCount, translations.UnusedMessagesFilePath()) 120 + } 121 + if len(translations.missingMessages) > 0 { 122 + color.Red("[%s] Some content is not translated. See errors above.", translations.language) 123 + os.Exit(1) 124 124 } 125 125 } 126 126 }