Do not fail if builder not initialized

This commit is contained in:
2022-12-08 00:12:03 +03:00
parent 68d90a0496
commit 273ce8c7a1

View File

@@ -77,6 +77,10 @@ func GetPrinter(lang language.Tag) *message.Printer {
func GetLanguages() []language.Tag {
if supportedLanguages == nil {
if builder == nil {
return nil
}
supportedLanguages = builder.Languages()
for idx := range supportedLanguages {