diff options
Diffstat (limited to 'zh_Hant/zh_Hant.go')
-rw-r--r-- | zh_Hant/zh_Hant.go | 212 |
1 files changed, 93 insertions, 119 deletions
diff --git a/zh_Hant/zh_Hant.go b/zh_Hant/zh_Hant.go index de6a8544..0312e91a 100644 --- a/zh_Hant/zh_Hant.go +++ b/zh_Hant/zh_Hant.go @@ -14,31 +14,31 @@ type zh_Hant struct { pluralsCardinal []locales.PluralRule pluralsOrdinal []locales.PluralRule pluralsRange []locales.PluralRule - decimal []byte - group []byte - minus []byte - percent []byte - perMille []byte - timeSeparator []byte - inifinity []byte - currencies [][]byte // idx = enum of currency code - currencyNegativePrefix []byte - currencyNegativeSuffix []byte - monthsAbbreviated [][]byte - monthsNarrow [][]byte - monthsWide [][]byte - daysAbbreviated [][]byte - daysNarrow [][]byte - daysShort [][]byte - daysWide [][]byte - periodsAbbreviated [][]byte - periodsNarrow [][]byte - periodsShort [][]byte - periodsWide [][]byte - erasAbbreviated [][]byte - erasNarrow [][]byte - erasWide [][]byte - timezones map[string][]byte + decimal string + group string + minus string + percent string + perMille string + timeSeparator string + inifinity string + currencies []string // idx = enum of currency code + currencyNegativePrefix string + currencyNegativeSuffix string + monthsAbbreviated []string + monthsNarrow []string + monthsWide []string + daysAbbreviated []string + daysNarrow []string + daysShort []string + daysWide []string + periodsAbbreviated []string + periodsNarrow []string + periodsShort []string + periodsWide []string + erasAbbreviated []string + erasNarrow []string + erasWide []string + timezones map[string]string } // New returns a new instance of translator for the 'zh_Hant' locale @@ -48,30 +48,30 @@ func New() locales.Translator { pluralsCardinal: []locales.PluralRule{6}, pluralsOrdinal: []locales.PluralRule{6}, pluralsRange: []locales.PluralRule{6}, - decimal: []byte{0x2e}, - group: []byte{0x2c}, - minus: []byte{0x2d}, - percent: []byte{0x25}, - perMille: []byte{0xe2, 0x80, 0xb0}, - timeSeparator: []byte{0x3a}, - inifinity: []byte{0xe2, 0x88, 0x9e}, - currencies: [][]uint8{{0x41, 0x44, 0x50}, {0x41, 0x45, 0x44}, {0x41, 0x46, 0x41}, {0x41, 0x46, 0x4e}, {0x41, 0x4c, 0x4b}, {0x41, 0x4c, 0x4c}, {0x41, 0x4d, 0x44}, {0x41, 0x4e, 0x47}, {0x41, 0x4f, 0x41}, {0x41, 0x4f, 0x4b}, {0x41, 0x4f, 0x4e}, {0x41, 0x4f, 0x52}, {0x41, 0x52, 0x41}, {0x41, 0x52, 0x4c}, {0x41, 0x52, 0x4d}, {0x41, 0x52, 0x50}, {0x41, 0x52, 0x53}, {0x41, 0x54, 0x53}, {0x41, 0x55, 0x24}, {0x41, 0x57, 0x47}, {0x41, 0x5a, 0x4d}, {0x41, 0x5a, 0x4e}, {0x42, 0x41, 0x44}, {0x42, 0x41, 0x4d}, {0x42, 0x41, 0x4e}, {0x42, 0x42, 0x44}, {0x42, 0x44, 0x54}, {0x42, 0x45, 0x43}, {0x42, 0x45, 0x46}, {0x42, 0x45, 0x4c}, {0x42, 0x47, 0x4c}, {0x42, 0x47, 0x4d}, {0x42, 0x47, 0x4e}, {0x42, 0x47, 0x4f}, {0x42, 0x48, 0x44}, {0x42, 0x49, 0x46}, {0x42, 0x4d, 0x44}, {0x42, 0x4e, 0x44}, {0x42, 0x4f, 0x42}, {0x42, 0x4f, 0x4c}, {0x42, 0x4f, 0x50}, {0x42, 0x4f, 0x56}, {0x42, 0x52, 0x42}, {0x42, 0x52, 0x43}, {0x42, 0x52, 0x45}, {0x52, 0x24}, {0x42, 0x52, 0x4e}, {0x42, 0x52, 0x52}, {0x42, 0x52, 0x5a}, {0x42, 0x53, 0x44}, {0x42, 0x54, 0x4e}, {0x42, 0x55, 0x4b}, {0x42, 0x57, 0x50}, {0x42, 0x59, 0x42}, {0x42, 0x59, 0x52}, {0x42, 0x5a, 0x44}, {0x43, 0x41, 0x24}, {0x43, 0x44, 0x46}, {0x43, 0x48, 0x45}, {0x43, 0x48, 0x46}, {0x43, 0x48, 0x57}, {0x43, 0x4c, 0x45}, {0x43, 0x4c, 0x46}, {0x43, 0x4c, 0x50}, {0x43, 0x4e, 0x58}, {0x43, 0x4e, 0xc2, 0xa5}, {0x43, 0x4f, 0x50}, {0x43, 0x4f, 0x55}, {0x43, 0x52, 0x43}, {0x43, 0x53, 0x44}, {0x43, 0x53, 0x4b}, {0x43, 0x55, 0x43}, {0x43, 0x55, 0x50}, {0x43, 0x56, 0x45}, {0x43, 0x59, 0x50}, {0x43, 0x5a, 0x4b}, {0x44, 0x44, 0x4d}, {0x44, 0x45, 0x4d}, {0x44, 0x4a, 0x46}, {0x44, 0x4b, 0x4b}, {0x44, 0x4f, 0x50}, {0x44, 0x5a, 0x44}, {0x45, 0x43, 0x53}, {0x45, 0x43, 0x56}, {0x45, 0x45, 0x4b}, {0x45, 0x47, 0x50}, {0x45, 0x52, 0x4e}, {0x45, 0x53, 0x41}, {0x45, 0x53, 0x42}, {0x45, 0x53, 0x50}, {0x45, 0x54, 0x42}, {0xe2, 0x82, 0xac}, {0x46, 0x49, 0x4d}, {0x46, 0x4a, 0x44}, {0x46, 0x4b, 0x50}, {0x46, 0x52, 0x46}, {0xc2, 0xa3}, {0x47, 0x45, 0x4b}, {0x47, 0x45, 0x4c}, {0x47, 0x48, 0x43}, {0x47, 0x48, 0x53}, {0x47, 0x49, 0x50}, {0x47, 0x4d, 0x44}, {0x47, 0x4e, 0x46}, {0x47, 0x4e, 0x53}, {0x47, 0x51, 0x45}, {0x47, 0x52, 0x44}, {0x47, 0x54, 0x51}, {0x47, 0x57, 0x45}, {0x47, 0x57, 0x50}, {0x47, 0x59, 0x44}, {0x48, 0x4b, 0x24}, {0x48, 0x4e, 0x4c}, {0x48, 0x52, 0x44}, {0x48, 0x52, 0x4b}, {0x48, 0x54, 0x47}, {0x48, 0x55, 0x46}, {0x49, 0x44, 0x52}, {0x49, 0x45, 0x50}, {0x49, 0x4c, 0x50}, {0x49, 0x4c, 0x52}, {0xe2, 0x82, 0xaa}, {0xe2, 0x82, 0xb9}, {0x49, 0x51, 0x44}, {0x49, 0x52, 0x52}, {0x49, 0x53, 0x4a}, {0x49, 0x53, 0x4b}, {0x49, 0x54, 0x4c}, {0x4a, 0x4d, 0x44}, {0x4a, 0x4f, 0x44}, {0xc2, 0xa5}, {0x4b, 0x45, 0x53}, {0x4b, 0x47, 0x53}, {0x4b, 0x48, 0x52}, {0x4b, 0x4d, 0x46}, {0x4b, 0x50, 0x57}, {0x4b, 0x52, 0x48}, {0x4b, 0x52, 0x4f}, {0xef, 0xbf, 0xa6}, {0x4b, 0x57, 0x44}, {0x4b, 0x59, 0x44}, {0x4b, 0x5a, 0x54}, {0x4c, 0x41, 0x4b}, {0x4c, 0x42, 0x50}, {0x4c, 0x4b, 0x52}, {0x4c, 0x52, 0x44}, {0x4c, 0x53, 0x4c}, {0x4c, 0x54, 0x4c}, {0x4c, 0x54, 0x54}, {0x4c, 0x55, 0x43}, {0x4c, 0x55, 0x46}, {0x4c, 0x55, 0x4c}, {0x4c, 0x56, 0x4c}, {0x4c, 0x56, 0x52}, {0x4c, 0x59, 0x44}, {0x4d, 0x41, 0x44}, {0x4d, 0x41, 0x46}, {0x4d, 0x43, 0x46}, {0x4d, 0x44, 0x43}, {0x4d, 0x44, 0x4c}, {0x4d, 0x47, 0x41}, {0x4d, 0x47, 0x46}, {0x4d, 0x4b, 0x44}, {0x4d, 0x4b, 0x4e}, {0x4d, 0x4c, 0x46}, {0x4d, 0x4d, 0x4b}, {0x4d, 0x4e, 0x54}, {0x4d, 0x4f, 0x50}, {0x4d, 0x52, 0x4f}, {0x4d, 0x54, 0x4c}, {0x4d, 0x54, 0x50}, {0x4d, 0x55, 0x52}, {0x4d, 0x56, 0x50}, {0x4d, 0x56, 0x52}, {0x4d, 0x57, 0x4b}, {0x4d, 0x58, 0x24}, {0x4d, 0x58, 0x50}, {0x4d, 0x58, 0x56}, {0x4d, 0x59, 0x52}, {0x4d, 0x5a, 0x45}, {0x4d, 0x5a, 0x4d}, {0x4d, 0x5a, 0x4e}, {0x4e, 0x41, 0x44}, {0x4e, 0x47, 0x4e}, {0x4e, 0x49, 0x43}, {0x4e, 0x49, 0x4f}, {0x4e, 0x4c, 0x47}, {0x4e, 0x4f, 0x4b}, {0x4e, 0x50, 0x52}, {0x4e, 0x5a, 0x24}, {0x4f, 0x4d, 0x52}, {0x50, 0x41, 0x42}, {0x50, 0x45, 0x49}, {0x50, 0x45, 0x4e}, {0x50, 0x45, 0x53}, {0x50, 0x47, 0x4b}, {0x50, 0x48, 0x50}, {0x50, 0x4b, 0x52}, {0x50, 0x4c, 0x4e}, {0x50, 0x4c, 0x5a}, {0x50, 0x54, 0x45}, {0x50, 0x59, 0x47}, {0x51, 0x41, 0x52}, {0x52, 0x48, 0x44}, {0x52, 0x4f, 0x4c}, {0x52, 0x4f, 0x4e}, {0x52, 0x53, 0x44}, {0x52, 0x55, 0x42}, {0x52, 0x55, 0x52}, {0x52, 0x57, 0x46}, {0x53, 0x41, 0x52}, {0x53, 0x42, 0x44}, {0x53, 0x43, 0x52}, {0x53, 0x44, 0x44}, {0x53, 0x44, 0x47}, {0x53, 0x44, 0x50}, {0x53, 0x45, 0x4b}, {0x53, 0x47, 0x44}, {0x53, 0x48, 0x50}, {0x53, 0x49, 0x54}, {0x53, 0x4b, 0x4b}, {0x53, 0x4c, 0x4c}, {0x53, 0x4f, 0x53}, {0x53, 0x52, 0x44}, {0x53, 0x52, 0x47}, {0x53, 0x53, 0x50}, {0x53, 0x54, 0x44}, {0x53, 0x55, 0x52}, {0x53, 0x56, 0x43}, {0x53, 0x59, 0x50}, {0x53, 0x5a, 0x4c}, {0x54, 0x48, 0x42}, {0x54, 0x4a, 0x52}, {0x54, 0x4a, 0x53}, {0x54, 0x4d, 0x4d}, {0x54, 0x4d, 0x54}, {0x54, 0x4e, 0x44}, {0x54, 0x4f, 0x50}, {0x54, 0x50, 0x45}, {0x54, 0x52, 0x4c}, {0x54, 0x52, 0x59}, {0x54, 0x54, 0x44}, {0x24}, {0x54, 0x5a, 0x53}, {0x55, 0x41, 0x48}, {0x55, 0x41, 0x4b}, {0x55, 0x47, 0x53}, {0x55, 0x47, 0x58}, {0x55, 0x53, 0x24}, {0x55, 0x53, 0x4e}, {0x55, 0x53, 0x53}, {0x55, 0x59, 0x49}, {0x55, 0x59, 0x50}, {0x55, 0x59, 0x55}, {0x55, 0x5a, 0x53}, {0x56, 0x45, 0x42}, {0x56, 0x45, 0x46}, {0xe2, 0x82, 0xab}, {0x56, 0x4e, 0x4e}, {0x56, 0x55, 0x56}, {0x57, 0x53, 0x54}, {0x46, 0x43, 0x46, 0x41}, {0x58, 0x41, 0x47}, {0x58, 0x41, 0x55}, {0x58, 0x42, 0x41}, {0x58, 0x42, 0x42}, {0x58, 0x42, 0x43}, {0x58, 0x42, 0x44}, {0x45, 0x43, 0x24}, {0x58, 0x44, 0x52}, {0x58, 0x45, 0x55}, {0x58, 0x46, 0x4f}, {0x58, 0x46, 0x55}, {0x43, 0x46, 0x41}, {0x58, 0x50, 0x44}, {0x43, 0x46, 0x50, 0x46}, {0x58, 0x50, 0x54}, {0x58, 0x52, 0x45}, {0x58, 0x53, 0x55}, {0x58, 0x54, 0x53}, {0x58, 0x55, 0x41}, {0x58, 0x58, 0x58}, {0x59, 0x44, 0x44}, {0x59, 0x45, 0x52}, {0x59, 0x55, 0x44}, {0x59, 0x55, 0x4d}, {0x59, 0x55, 0x4e}, {0x59, 0x55, 0x52}, {0x5a, 0x41, 0x4c}, {0x5a, 0x41, 0x52}, {0x5a, 0x4d, 0x4b}, {0x5a, 0x4d, 0x57}, {0x5a, 0x52, 0x4e}, {0x5a, 0x52, 0x5a}, {0x5a, 0x57, 0x44}, {0x5a, 0x57, 0x4c}, {0x5a, 0x57, 0x52}}, - currencyNegativePrefix: []byte{0x28}, - currencyNegativeSuffix: []byte{0x29}, - monthsAbbreviated: [][]uint8{[]uint8(nil), {0x31, 0xe6, 0x9c, 0x88}, {0x32, 0xe6, 0x9c, 0x88}, {0x33, 0xe6, 0x9c, 0x88}, {0x34, 0xe6, 0x9c, 0x88}, {0x35, 0xe6, 0x9c, 0x88}, {0x36, 0xe6, 0x9c, 0x88}, {0x37, 0xe6, 0x9c, 0x88}, {0x38, 0xe6, 0x9c, 0x88}, {0x39, 0xe6, 0x9c, 0x88}, {0x31, 0x30, 0xe6, 0x9c, 0x88}, {0x31, 0x31, 0xe6, 0x9c, 0x88}, {0x31, 0x32, 0xe6, 0x9c, 0x88}}, - monthsNarrow: [][]uint8{[]uint8(nil), {0x31}, {0x32}, {0x33}, {0x34}, {0x35}, {0x36}, {0x37}, {0x38}, {0x39}, {0x31, 0x30}, {0x31, 0x31}, {0x31, 0x32}}, - monthsWide: [][]uint8{[]uint8(nil), {0x31, 0xe6, 0x9c, 0x88}, {0x32, 0xe6, 0x9c, 0x88}, {0x33, 0xe6, 0x9c, 0x88}, {0x34, 0xe6, 0x9c, 0x88}, {0x35, 0xe6, 0x9c, 0x88}, {0x36, 0xe6, 0x9c, 0x88}, {0x37, 0xe6, 0x9c, 0x88}, {0x38, 0xe6, 0x9c, 0x88}, {0x39, 0xe6, 0x9c, 0x88}, {0x31, 0x30, 0xe6, 0x9c, 0x88}, {0x31, 0x31, 0xe6, 0x9c, 0x88}, {0x31, 0x32, 0xe6, 0x9c, 0x88}}, - daysAbbreviated: [][]uint8{{0xe9, 0x80, 0xb1, 0xe6, 0x97, 0xa5}, {0xe9, 0x80, 0xb1, 0xe4, 0xb8, 0x80}, {0xe9, 0x80, 0xb1, 0xe4, 0xba, 0x8c}, {0xe9, 0x80, 0xb1, 0xe4, 0xb8, 0x89}, {0xe9, 0x80, 0xb1, 0xe5, 0x9b, 0x9b}, {0xe9, 0x80, 0xb1, 0xe4, 0xba, 0x94}, {0xe9, 0x80, 0xb1, 0xe5, 0x85, 0xad}}, - daysNarrow: [][]uint8{{0xe6, 0x97, 0xa5}, {0xe4, 0xb8, 0x80}, {0xe4, 0xba, 0x8c}, {0xe4, 0xb8, 0x89}, {0xe5, 0x9b, 0x9b}, {0xe4, 0xba, 0x94}, {0xe5, 0x85, 0xad}}, - daysShort: [][]uint8{{0xe6, 0x97, 0xa5}, {0xe4, 0xb8, 0x80}, {0xe4, 0xba, 0x8c}, {0xe4, 0xb8, 0x89}, {0xe5, 0x9b, 0x9b}, {0xe4, 0xba, 0x94}, {0xe5, 0x85, 0xad}}, - daysWide: [][]uint8{{0xe6, 0x98, 0x9f, 0xe6, 0x9c, 0x9f, 0xe6, 0x97, 0xa5}, {0xe6, 0x98, 0x9f, 0xe6, 0x9c, 0x9f, 0xe4, 0xb8, 0x80}, {0xe6, 0x98, 0x9f, 0xe6, 0x9c, 0x9f, 0xe4, 0xba, 0x8c}, {0xe6, 0x98, 0x9f, 0xe6, 0x9c, 0x9f, 0xe4, 0xb8, 0x89}, {0xe6, 0x98, 0x9f, 0xe6, 0x9c, 0x9f, 0xe5, 0x9b, 0x9b}, {0xe6, 0x98, 0x9f, 0xe6, 0x9c, 0x9f, 0xe4, 0xba, 0x94}, {0xe6, 0x98, 0x9f, 0xe6, 0x9c, 0x9f, 0xe5, 0x85, 0xad}}, - periodsAbbreviated: [][]uint8{{0xe4, 0xb8, 0x8a, 0xe5, 0x8d, 0x88}, {0xe4, 0xb8, 0x8b, 0xe5, 0x8d, 0x88}}, - periodsNarrow: [][]uint8{{0xe4, 0xb8, 0x8a, 0xe5, 0x8d, 0x88}, {0xe4, 0xb8, 0x8b, 0xe5, 0x8d, 0x88}}, - periodsWide: [][]uint8{{0xe4, 0xb8, 0x8a, 0xe5, 0x8d, 0x88}, {0xe4, 0xb8, 0x8b, 0xe5, 0x8d, 0x88}}, - erasAbbreviated: [][]uint8{{0xe8, 0xa5, 0xbf, 0xe5, 0x85, 0x83, 0xe5, 0x89, 0x8d}, {0xe8, 0xa5, 0xbf, 0xe5, 0x85, 0x83}}, - erasNarrow: [][]uint8{{0xe8, 0xa5, 0xbf, 0xe5, 0x85, 0x83, 0xe5, 0x89, 0x8d}, {0xe8, 0xa5, 0xbf, 0xe5, 0x85, 0x83}}, - erasWide: [][]uint8{{0xe8, 0xa5, 0xbf, 0xe5, 0x85, 0x83, 0xe5, 0x89, 0x8d}, {0xe8, 0xa5, 0xbf, 0xe5, 0x85, 0x83}}, - timezones: map[string][]uint8{"BT": {0xe4, 0xb8, 0x8d, 0xe4, 0xb8, 0xb9, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "ACWST": {0xe6, 0xbe, 0xb3, 0xe6, 0xb4, 0xb2, 0xe4, 0xb8, 0xad, 0xe8, 0xa5, 0xbf, 0xe9, 0x83, 0xa8, 0xe6, 0xa8, 0x99, 0xe6, 0xba, 0x96, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "EAT": {0xe6, 0x9d, 0xb1, 0xe9, 0x9d, 0x9e, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "HAT": {0xe7, 0xb4, 0x90, 0xe8, 0x8a, 0xac, 0xe8, 0x98, 0xad, 0xe5, 0xa4, 0x8f, 0xe4, 0xbb, 0xa4, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "AEST": {0xe6, 0xbe, 0xb3, 0xe6, 0xb4, 0xb2, 0xe6, 0x9d, 0xb1, 0xe9, 0x83, 0xa8, 0xe6, 0xa8, 0x99, 0xe6, 0xba, 0x96, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "MESZ": {0xe4, 0xb8, 0xad, 0xe6, 0xad, 0x90, 0xe5, 0xa4, 0x8f, 0xe4, 0xbb, 0xa4, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "TMT": {0xe5, 0x9c, 0x9f, 0xe5, 0xba, 0xab, 0xe6, 0x9b, 0xbc, 0xe6, 0xa8, 0x99, 0xe6, 0xba, 0x96, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "GMT": {0xe6, 0xa0, 0xbc, 0xe6, 0x9e, 0x97, 0xe5, 0xa8, 0x81, 0xe6, 0xb2, 0xbb, 0xe6, 0xa8, 0x99, 0xe6, 0xba, 0x96, 0xe6, 0x99, 0x82, 0xe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 0xa8, 0x99, 0xe6, 0xba, 0x96, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "JDT": {0xe6, 0x97, 0xa5, 0xe6, 0x9c, 0xac, 0xe5, 0xa4, 0x8f, 0xe4, 0xbb, 0xa4, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "SRT": {0xe8, 0x98, 0x87, 0xe5, 0x88, 0xa9, 0xe5, 0x8d, 0x97, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "WAST": {0xe8, 0xa5, 0xbf, 0xe9, 0x9d, 0x9e, 0xe5, 0xa4, 0x8f, 0xe4, 0xbb, 0xa4, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "ACST": {0xe6, 0xbe, 0xb3, 0xe6, 0xb4, 0xb2, 0xe4, 0xb8, 0xad, 0xe9, 0x83, 0xa8, 0xe6, 0xa8, 0x99, 0xe6, 0xba, 0x96, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "CDT": {0xe4, 0xb8, 0xad, 0xe9, 0x83, 0xa8, 0xe5, 0xa4, 0x8f, 0xe4, 0xbb, 0xa4, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}, "WITA": {0xe5, 0x8d, 0xb0, 0xe5, 0xb0, 0xbc, 0xe4, 0xb8, 0xad, 0xe9, 0x83, 0xa8, 0xe6, 0x99, 0x82, 0xe9, 0x96, 0x93}}, + decimal: ".", + group: ",", + minus: "-", + percent: "%", + perMille: "‰", + timeSeparator: ":", + inifinity: "∞", + currencies: []string{"ADP", "AED", "AFA", "AFN", "ALK", "ALL", "AMD", "ANG", "AOA", "AOK", "AON", "AOR", "ARA", "ARL", "ARM", "ARP", "ARS", "ATS", "AU$", "AWG", "AZM", "AZN", "BAD", "BAM", "BAN", "BBD", "BDT", "BEC", "BEF", "BEL", "BGL", "BGM", "BGN", "BGO", "BHD", "BIF", "BMD", "BND", "BOB", "BOL", "BOP", "BOV", "BRB", "BRC", "BRE", "R$", "BRN", "BRR", "BRZ", "BSD", "BTN", "BUK", "BWP", "BYB", "BYR", "BZD", "CA$", "CDF", "CHE", "CHF", "CHW", "CLE", "CLF", "CLP", "CNX", "CN¥", "COP", "COU", "CRC", "CSD", "CSK", "CUC", "CUP", "CVE", "CYP", "CZK", "DDM", "DEM", "DJF", "DKK", "DOP", "DZD", "ECS", "ECV", "EEK", "EGP", "ERN", "ESA", "ESB", "ESP", "ETB", "€", "FIM", "FJD", "FKP", "FRF", "£", "GEK", "GEL", "GHC", "GHS", "GIP", "GMD", "GNF", "GNS", "GQE", "GRD", "GTQ", "GWE", "GWP", "GYD", "HK$", "HNL", "HRD", "HRK", "HTG", "HUF", "IDR", "IEP", "ILP", "ILR", "₪", "₹", "IQD", "IRR", "ISJ", "ISK", "ITL", "JMD", "JOD", "¥", "KES", "KGS", "KHR", "KMF", "KPW", "KRH", "KRO", "₩", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LTT", "LUC", "LUF", "LUL", "LVL", "LVR", "LYD", "MAD", "MAF", "MCF", "MDC", "MDL", "MGA", "MGF", "MKD", "MKN", "MLF", "MMK", "MNT", "MOP", "MRO", "MTL", "MTP", "MUR", "MVP", "MVR", "MWK", "MX$", "MXP", "MXV", "MYR", "MZE", "MZM", "MZN", "NAD", "NGN", "NIC", "NIO", "NLG", "NOK", "NPR", "NZ$", "OMR", "PAB", "PEI", "PEN", "PES", "PGK", "PHP", "PKR", "PLN", "PLZ", "PTE", "PYG", "QAR", "RHD", "ROL", "RON", "RSD", "RUB", "RUR", "RWF", "SAR", "SBD", "SCR", "SDD", "SDG", "SDP", "SEK", "SGD", "SHP", "SIT", "SKK", "SLL", "SOS", "SRD", "SRG", "SSP", "STD", "SUR", "SVC", "SYP", "SZL", "THB", "TJR", "TJS", "TMM", "TMT", "TND", "TOP", "TPE", "TRL", "TRY", "TTD", "$", "TZS", "UAH", "UAK", "UGS", "UGX", "US$", "USN", "USS", "UYI", "UYP", "UYU", "UZS", "VEB", "VEF", "₫", "VNN", "VUV", "WST", "FCFA", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "EC$", "XDR", "XEU", "XFO", "XFU", "CFA", "XPD", "CFPF", "XPT", "XRE", "XSU", "XTS", "XUA", "XXX", "YDD", "YER", "YUD", "YUM", "YUN", "YUR", "ZAL", "ZAR", "ZMK", "ZMW", "ZRN", "ZRZ", "ZWD", "ZWL", "ZWR"}, + currencyNegativePrefix: "(", + currencyNegativeSuffix: ")", + monthsAbbreviated: []string{"", "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"}, + monthsNarrow: []string{"", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"}, + monthsWide: []string{"", "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"}, + daysAbbreviated: []string{"週日", "週一", "週二", "週三", "週四", "週五", "週六"}, + daysNarrow: []string{"日", "一", "二", "三", "四", "五", "六"}, + daysShort: []string{"日", "一", "二", "三", "四", "五", "六"}, + daysWide: []string{"星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"}, + periodsAbbreviated: []string{"上午", "下午"}, + periodsNarrow: []string{"上午", "下午"}, + periodsWide: []string{"上午", "下午"}, + erasAbbreviated: []string{"西元前", "西元"}, + erasNarrow: []string{"西元前", "西元"}, + erasWide: []string{"西元前", "西元"}, + timezones: map[string]string{"BOT": "玻利維亞時間", "TMST": "土庫曼夏令時間", "ARST": "阿根廷夏令時間", "EST": "東部標準時間", "LHST": "豪勳爵島標準時間", "WESZ": "西歐夏令時間", "UYST": "烏拉圭夏令時間", "CLST": "智利夏令時間", "ACWDT": "澳洲中西部夏令時間", "WAST": "西非夏令時間", "GYT": "蓋亞那時間", "AKDT": "阿拉斯加夏令時間", "MEZ": "中歐標準時間", "MST": "澳門標準時間", "AKST": "阿拉斯加標準時間", "ECT": "厄瓜多時間", "BT": "不丹時間", "GMT": "格林威治標準時間", "ACST": "澳洲中部標準時間", "CST": "中部標準時間", "AEDT": "澳洲東部夏令時間", "HKST": "香港夏令時間", "∅∅∅": "亞馬遜夏令時間", "ART": "阿根廷標準時間", "SRT": "蘇利南時間", "LHDT": "豪勳爵島夏令時間", "UYT": "烏拉圭標準時間", "WARST": "阿根廷西部夏令時間", "IST": "印度標準時間", "OESZ": "東歐夏令時間", "ChST": "查莫洛時間", "AWDT": "澳洲西部夏令時間", "CLT": "智利標準時間", "ACWST": "澳洲中西部標準時間", "SGT": "新加坡標準時間", "WIT": "印尼東部時間", "HNT": "紐芬蘭標準時間", "MESZ": "中歐夏令時間", "NZDT": "紐西蘭夏令時間", "HAT": "紐芬蘭夏令時間", "MYT": "馬來西亞時間", "GFT": "法屬圭亞那時間", "WIB": "印尼西部時間", "OEZ": "東歐標準時間", "PST": "太平洋標準時間", "AWST": "澳洲西部標準時間", "AEST": "澳洲東部標準時間", "WART": "阿根廷西部標準時間", "SAST": "南非標準時間", "AST": "大西洋標準時間", "ADT": "大西洋夏令時間", "HADT": "夏威夷-阿留申夏令時間", "EDT": "東部夏令時間", "COST": "哥倫比亞夏令時間", "COT": "哥倫比亞標準時間", "TMT": "土庫曼標準時間", "MDT": "澳門夏令時間", "EAT": "東非時間", "ACDT": "澳洲中部夏令時間", "JST": "日本標準時間", "PDT": "太平洋夏令時間", "CDT": "中部夏令時間", "NZST": "紐西蘭標準時間", "WAT": "西非標準時間", "HKT": "香港標準時間", "CHAST": "查坦群島標準時間", "VET": "委內瑞拉時間", "WITA": "印尼中部時間", "CHADT": "查坦群島夏令時間", "CAT": "中非時間", "HAST": "夏威夷-阿留申標準時間", "JDT": "日本夏令時間", "WEZ": "西歐標準時間"}, } } @@ -111,82 +111,80 @@ func (zh *zh_Hant) RangePluralRule(num1 float64, v1 uint64, num2 float64, v2 uin } // MonthAbbreviated returns the locales abbreviated month given the 'month' provided -func (zh *zh_Hant) MonthAbbreviated(month time.Month) []byte { +func (zh *zh_Hant) MonthAbbreviated(month time.Month) string { return zh.monthsAbbreviated[month] } // MonthsAbbreviated returns the locales abbreviated months -func (zh *zh_Hant) MonthsAbbreviated() [][]byte { +func (zh *zh_Hant) MonthsAbbreviated() []string { return zh.monthsAbbreviated[1:] } // MonthNarrow returns the locales narrow month given the 'month' provided -func (zh *zh_Hant) MonthNarrow(month time.Month) []byte { +func (zh *zh_Hant) MonthNarrow(month time.Month) string { return zh.monthsNarrow[month] } // MonthsNarrow returns the locales narrow months -func (zh *zh_Hant) MonthsNarrow() [][]byte { +func (zh *zh_Hant) MonthsNarrow() []string { return zh.monthsNarrow[1:] } // MonthWide returns the locales wide month given the 'month' provided -func (zh *zh_Hant) MonthWide(month time.Month) []byte { +func (zh *zh_Hant) MonthWide(month time.Month) string { return zh.monthsWide[month] } // MonthsWide returns the locales wide months -func (zh *zh_Hant) MonthsWide() [][]byte { +func (zh *zh_Hant) MonthsWide() []string { return zh.monthsWide[1:] } // WeekdayAbbreviated returns the locales abbreviated weekday given the 'weekday' provided -func (zh *zh_Hant) WeekdayAbbreviated(weekday time.Weekday) []byte { +func (zh *zh_Hant) WeekdayAbbreviated(weekday time.Weekday) string { return zh.daysAbbreviated[weekday] } // WeekdaysAbbreviated returns the locales abbreviated weekdays -func (zh *zh_Hant) WeekdaysAbbreviated() [][]byte { +func (zh *zh_Hant) WeekdaysAbbreviated() []string { return zh.daysAbbreviated } // WeekdayNarrow returns the locales narrow weekday given the 'weekday' provided -func (zh *zh_Hant) WeekdayNarrow(weekday time.Weekday) []byte { +func (zh *zh_Hant) WeekdayNarrow(weekday time.Weekday) string { return zh.daysNarrow[weekday] } // WeekdaysNarrow returns the locales narrow weekdays -func (zh *zh_Hant) WeekdaysNarrow() [][]byte { +func (zh *zh_Hant) WeekdaysNarrow() []string { return zh.daysNarrow } // WeekdayShort returns the locales short weekday given the 'weekday' provided -func (zh *zh_Hant) WeekdayShort(weekday time.Weekday) []byte { +func (zh *zh_Hant) WeekdayShort(weekday time.Weekday) string { return zh.daysShort[weekday] } // WeekdaysShort returns the locales short weekdays -func (zh *zh_Hant) WeekdaysShort() [][]byte { +func (zh *zh_Hant) WeekdaysShort() []string { return zh.daysShort } // WeekdayWide returns the locales wide weekday given the 'weekday' provided -func (zh *zh_Hant) WeekdayWide(weekday time.Weekday) []byte { +func (zh *zh_Hant) WeekdayWide(weekday time.Weekday) string { return zh.daysWide[weekday] } // WeekdaysWide returns the locales wide weekdays -func (zh *zh_Hant) WeekdaysWide() [][]byte { +func (zh *zh_Hant) WeekdaysWide() []string { return zh.daysWide } // FmtNumber returns 'num' with digits/precision of 'v' for 'zh_Hant' and handles both Whole and Real numbers based on 'v' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtNumber(num float64, v uint64) []byte { +func (zh *zh_Hant) FmtNumber(num float64, v uint64) string { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) - l := len(s) + len(zh.decimal) + len(zh.group)*len(s[:len(s)-int(v)-1])/3 + l := len(s) + 2 + 1*len(s[:len(s)-int(v)-1])/3 count := 0 inWhole := v == 0 b := make([]byte, 0, l) @@ -220,17 +218,14 @@ func (zh *zh_Hant) FmtNumber(num float64, v uint64) []byte { b[i], b[j] = b[j], b[i] } - return b + return string(b) } // FmtPercent returns 'num' with digits/precision of 'v' for 'zh_Hant' and handles both Whole and Real numbers based on 'v' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. // NOTE: 'num' passed into FmtPercent is assumed to be in percent already -func (zh *zh_Hant) FmtPercent(num float64, v uint64) []byte { - +func (zh *zh_Hant) FmtPercent(num float64, v uint64) string { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) - l := len(s) + len(zh.decimal) + l := len(s) + 3 b := make([]byte, 0, l) for i := len(s) - 1; i >= 0; i-- { @@ -254,17 +249,15 @@ func (zh *zh_Hant) FmtPercent(num float64, v uint64) []byte { b = append(b, zh.percent...) - return b + return string(b) } // FmtCurrency returns the currency representation of 'num' with digits/precision of 'v' for 'zh_Hant' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtCurrency(num float64, v uint64, currency currency.Type) []byte { +func (zh *zh_Hant) FmtCurrency(num float64, v uint64, currency currency.Type) string { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) symbol := zh.currencies[currency] - l := len(s) + len(zh.decimal) + len(zh.group)*len(s[:len(s)-int(v)-1])/3 + l := len(s) + len(symbol) + 2 + 1*len(s[:len(s)-int(v)-1])/3 count := 0 inWhole := v == 0 b := make([]byte, 0, l) @@ -313,17 +306,16 @@ func (zh *zh_Hant) FmtCurrency(num float64, v uint64, currency currency.Type) [] } } - return b + return string(b) } // FmtAccounting returns the currency representation of 'num' with digits/precision of 'v' for 'zh_Hant' -// in accounting notation. returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtAccounting(num float64, v uint64, currency currency.Type) []byte { +// in accounting notation. +func (zh *zh_Hant) FmtAccounting(num float64, v uint64, currency currency.Type) string { s := strconv.FormatFloat(math.Abs(num), 'f', int(v), 64) symbol := zh.currencies[currency] - l := len(s) + len(zh.decimal) + len(zh.group)*len(s[:len(s)-int(v)-1])/3 + l := len(s) + len(symbol) + 4 + 1*len(s[:len(s)-int(v)-1])/3 count := 0 inWhole := v == 0 b := make([]byte, 0, l) @@ -354,9 +346,7 @@ func (zh *zh_Hant) FmtAccounting(num float64, v uint64, currency currency.Type) b = append(b, symbol[j]) } - for j := len(zh.currencyNegativePrefix) - 1; j >= 0; j-- { - b = append(b, zh.currencyNegativePrefix[j]) - } + b = append(b, zh.currencyNegativePrefix[0]) } else { @@ -386,13 +376,11 @@ func (zh *zh_Hant) FmtAccounting(num float64, v uint64, currency currency.Type) b = append(b, zh.currencyNegativeSuffix...) } - return b + return string(b) } // FmtDateShort returns the short date representation of 't' for 'zh_Hant' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtDateShort(t time.Time) []byte { +func (zh *zh_Hant) FmtDateShort(t time.Time) string { b := make([]byte, 0, 32) @@ -402,13 +390,11 @@ func (zh *zh_Hant) FmtDateShort(t time.Time) []byte { b = append(b, []byte{0x2f}...) b = strconv.AppendInt(b, int64(t.Day()), 10) - return b + return string(b) } // FmtDateMedium returns the medium date representation of 't' for 'zh_Hant' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtDateMedium(t time.Time) []byte { +func (zh *zh_Hant) FmtDateMedium(t time.Time) string { b := make([]byte, 0, 32) @@ -419,13 +405,11 @@ func (zh *zh_Hant) FmtDateMedium(t time.Time) []byte { b = strconv.AppendInt(b, int64(t.Day()), 10) b = append(b, []byte{0xe6, 0x97, 0xa5}...) - return b + return string(b) } // FmtDateLong returns the long date representation of 't' for 'zh_Hant' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtDateLong(t time.Time) []byte { +func (zh *zh_Hant) FmtDateLong(t time.Time) string { b := make([]byte, 0, 32) @@ -436,13 +420,11 @@ func (zh *zh_Hant) FmtDateLong(t time.Time) []byte { b = strconv.AppendInt(b, int64(t.Day()), 10) b = append(b, []byte{0xe6, 0x97, 0xa5}...) - return b + return string(b) } // FmtDateFull returns the full date representation of 't' for 'zh_Hant' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtDateFull(t time.Time) []byte { +func (zh *zh_Hant) FmtDateFull(t time.Time) string { b := make([]byte, 0, 32) @@ -454,13 +436,11 @@ func (zh *zh_Hant) FmtDateFull(t time.Time) []byte { b = append(b, []byte{0xe6, 0x97, 0xa5, 0x20}...) b = append(b, zh.daysWide[t.Weekday()]...) - return b + return string(b) } // FmtTimeShort returns the short time representation of 't' for 'zh_Hant' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtTimeShort(t time.Time) []byte { +func (zh *zh_Hant) FmtTimeShort(t time.Time) string { b := make([]byte, 0, 32) @@ -485,13 +465,11 @@ func (zh *zh_Hant) FmtTimeShort(t time.Time) []byte { b = strconv.AppendInt(b, int64(t.Minute()), 10) - return b + return string(b) } // FmtTimeMedium returns the medium time representation of 't' for 'zh_Hant' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtTimeMedium(t time.Time) []byte { +func (zh *zh_Hant) FmtTimeMedium(t time.Time) string { b := make([]byte, 0, 32) @@ -523,13 +501,11 @@ func (zh *zh_Hant) FmtTimeMedium(t time.Time) []byte { b = strconv.AppendInt(b, int64(t.Second()), 10) - return b + return string(b) } // FmtTimeLong returns the long time representation of 't' for 'zh_Hant' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtTimeLong(t time.Time) []byte { +func (zh *zh_Hant) FmtTimeLong(t time.Time) string { b := make([]byte, 0, 32) @@ -567,13 +543,11 @@ func (zh *zh_Hant) FmtTimeLong(t time.Time) []byte { b = append(b, []byte{0x5d}...) - return b + return string(b) } // FmtTimeFull returns the full time representation of 't' for 'zh_Hant' -// returned as a []byte just in case the caller wishes to add more and can help -// avoid allocations; otherwise just cast as string. -func (zh *zh_Hant) FmtTimeFull(t time.Time) []byte { +func (zh *zh_Hant) FmtTimeFull(t time.Time) string { b := make([]byte, 0, 32) @@ -616,5 +590,5 @@ func (zh *zh_Hant) FmtTimeFull(t time.Time) []byte { b = append(b, []byte{0x5d}...) - return b + return string(b) } |