github.com/isyscore/isc-gobase@v1.5.3-0.20231218061332-cbc7451899e9/i18n/test/i18n_test.go (about) 1 package test 2 3 import ( 4 "testing" 5 6 . "github.com/isyscore/isc-gobase/i18n" 7 ) 8 9 func TestI18N(t *testing.T) { 10 _ = InitI18N("zh-CN") 11 _ = LoadI18NLanguage("en-US") 12 13 t.Logf(T("msgid")) 14 t.Logf(T("msgstr")) 15 t.Logf(T("msgfmt")) 16 t.Logf(T("msgcn")) 17 t.Logf(Tf("msgf2", "rarnu", 2333)) 18 19 }