From ed75ad63c5a592bac2245358a76f970c90f40224 Mon Sep 17 00:00:00 2001 From: sg3des Date: Thu, 5 Jul 2018 23:26:09 +0300 Subject: [PATCH] fix search return localized values --- i18n.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/i18n.go b/i18n.go index be054e5..e804ce1 100644 --- a/i18n.go +++ b/i18n.go @@ -335,6 +335,12 @@ func (i18n *I18n) ConfigureQorResource(res resource.Resourcer) { t.PrimaryValue = v.Value } } + + if localeTranslations, ok := translationsMap[editingLocale]; ok { + if v, ok := localeTranslations[key]; ok { + t.EditingValue = v.Value + } + } matchedTranslations[key] = t keys = append(keys, key)