Skip to content

Commit b119ef1

Browse files
Address Domain Set and SetN bug. Fixes #99
1 parent c7c2135 commit b119ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

domain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func (do *Domain) Set(id, str string) {
242242
trans = NewTranslation()
243243
trans.ID = id
244244
trans.Set(str)
245-
do.translations[str] = trans
245+
do.translations[id] = trans
246246
}
247247
}
248248

@@ -278,7 +278,7 @@ func (do *Domain) SetN(id, plural string, n int, str string) {
278278
trans.ID = id
279279
trans.PluralID = plural
280280
trans.SetN(pluralForm, str)
281-
do.translations[str] = trans
281+
do.translations[id] = trans
282282
}
283283
}
284284

0 commit comments

Comments
 (0)