Skip to content

Commit 4db34e8

Browse files
committed
fix: localizations update does not add all languages, fixes #499
1 parent fd94d6b commit 4db34e8

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

cmd/account/account_producer_extension_info_push.go

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,8 @@ func updateStoreInfo(ext *accountApi.Extension, zipExt extension.Extension, cfg
161161
if cfg.Store.Localizations != nil {
162162
newLocales := make([]accountApi.Locale, 0)
163163

164-
for _, locale := range info.Locales {
165-
for _, configLocale := range *cfg.Store.Localizations {
166-
if locale.Name == configLocale {
167-
newLocales = append(newLocales, locale)
168-
}
169-
}
164+
for _, configLocale := range *cfg.Store.Localizations {
165+
newLocales = append(newLocales, accountApi.Locale{Name: configLocale})
170166
}
171167

172168
ext.Localizations = newLocales

0 commit comments

Comments
 (0)