We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21cd858 commit 74c373fCopy full SHA for 74c373f
1 file changed
translator.go
@@ -293,15 +293,13 @@ func (t *Translator) addToPotFileIfNotExists(key translationKey) error {
293
return t.addToPotFile(key.ctx, uniqueKey{singular: key.value})
294
}
295
296
- for potKey, _ := range ctr[key.ctx] {
297
- if key.value == potKey {
+ for _, potKey := range ctr[key.ctx] {
+ if key.value == potKey.ID {
298
return nil
299
300
-
301
- return t.addToPotFile(key.ctx, uniqueKey{singular: key.value})
302
303
304
- return nil
+ return t.addToPotFile(key.ctx, uniqueKey{singular: key.value})
305
306
307
func (t *Translator) FuncMap() template.FuncMap {
0 commit comments