locales
locales copied to clipboard
:earth_americas: a set of locales generated from the CLDR Project which can be used independently or within an i18n package; these were built for use with, but not exclusive to https://github.com/go-p...
Hello, While using the `en_US` Translator, I noticed that all the currency symbols are just the short-names `USD`, `INR`, `EUR`, etc, but there are no symbols (`$`, `₹`, `€`). Is...
# definition ```go import ( "github.com/go-playground/locales/zh_Hans_CN" "github.com/go-playground/validator/v10/translations/zh" ) // ... rans, _ = ut.New(zh_Hans_CN.New()).GetTranslator("zh") type Test struct { Urls []string `json:"urls" validate:"unique" label:"urls"` } ``` # output ``` Key: 'Test.urls'...
The current data is 6 CLDR releases behind, so let's track the update here.
#35 has landed, so v0.14 has CLDR v36.1. The update to v38.1 still requires additional fixes, as documented in #33. Looks like we have an easy step before that though,...
Is there a way to load locales based on a runtime variable? I'd rather not import every package prior to knowing the locale. :)
This is going to be tough to review. Perhaps it would be easier to do the update in jumps (e.g. v32 -> v34 -> v36 -> v38). With the newline...
What abbout support for Durations? I would need something like `FmtDuration(d time.Duration)` to get "20 days 10 hours 5 minutes 3 seconds"
In the Readme, it's mentioned that: ```go fmt.Println(l.OrdinalPluralRule(21, 0)) // 21st fmt.Println(l.OrdinalPluralRule(22, 0)) // 22nd fmt.Println(l.OrdinalPluralRule(33, 0)) // 33rd fmt.Println(l.OrdinalPluralRule(34, 0)) // 34th ``` But the actual output is: ```go...
Timezone abbrivations are (sadly) not unique, e.g. IST is (Israel/India/Irish) Standard Time. (https://en.wikipedia.org/wiki/List_of_time_zone_abbreviations) Related issue elsewhere: https://github.com/osTicket/osTicket/issues/3583 Lookup for full time is done by abbreviated name, so this happens: ```...
I started write test for russian and found this bug with FmtNumber. Run test and get: ` Expected '1 123 456,56' Got '1 123 456,56' ` And I found this:...