diff options
Diffstat (limited to 'locales_test.go')
-rw-r--r-- | locales_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/locales_test.go b/locales_test.go index 44a029f..5f20082 100644 --- a/locales_test.go +++ b/locales_test.go @@ -52,6 +52,12 @@ func TestGetTranslator(t *testing.T) { c.Assert(tnn.MonthWide(d.Month()), qt.Equals, "januar") }) + c.Run("BasicWithHyphenatedKey", func(c *qt.C) { + tnn := GetTranslator("nn-NO") + c.Assert(tnn, qt.Not(qt.IsNil)) + c.Assert(tnn.MonthWide(d.Month()), qt.Equals, "januar") + }) + // Sample tests; verify that the compression script works correctly. c.Run("Sample", func(c *qt.C) { assertSame(c, GetTranslator("en"), en.New()) |