Skip to content

Commit 367e66a

Browse files
joeybloggsjoeybloggs
authored andcommitted
Revert "initial plural rule generation rewrite."
This reverts commit e2b44a5.
1 parent e2b44a5 commit 367e66a

File tree

2,739 files changed

+17329
-27071
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,739 files changed

+17329
-27071
lines changed

cmd/resources/generate_resources.go

Lines changed: 760 additions & 1153 deletions
Large diffs are not rendered by default.

cmd/resources/translator.tmpl

Lines changed: 0 additions & 29 deletions
This file was deleted.

resources/locales/af/af.go

Lines changed: 0 additions & 36 deletions
This file was deleted.

resources/locales/af/calendar.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package af
2+
3+
import "github.com/go-playground/universal-translator"
4+
5+
var calendar = ut.Calendar{Formats: ut.CalendarFormats{DateEra: ut.DateEra{BC: ut.CalendarDateFormat{Full: "EEEE, dd MMMM y", Long: "dd MMMM y", Medium: "dd MMM y", Short: "y-MM-dd"}, AD: ut.CalendarDateFormat{Full: "EEEE, dd MMMM y", Long: "dd MMMM y", Medium: "dd MMM y", Short: "y-MM-dd"}}, Time: ut.CalendarDateFormat{Full: "h:mm:ss a zzzz", Long: "h:mm:ss a z", Medium: "h:mm:ss a", Short: "h:mm a"}, DateTime: ut.CalendarDateFormat{Full: "{1} {0}", Long: "{1} {0}", Medium: "{1} {0}", Short: "{1} {0}"}}, FormatNames: ut.CalendarFormatNames{Months: ut.CalendarMonthFormatNames{Abbreviated: ut.CalendarMonthFormatNameValue{9: "Sep.", 10: "Okt.", 11: "Nov.", 12: "Des.", 3: "Mrt.", 5: "Mei", 6: "Jun.", 7: "Jul.", 8: "Aug.", 1: "Jan.", 2: "Feb.", 4: "Apr."}, Narrow: ut.CalendarMonthFormatNameValue{1: "J", 2: "F", 3: "M", 4: "A", 5: "M", 6: "J", 7: "J", 10: "O", 8: "A", 9: "S", 11: "N", 12: "D"}, Short: ut.CalendarMonthFormatNameValue(nil), Wide: ut.CalendarMonthFormatNameValue{12: "Desember", 1: "Januarie", 2: "Februarie", 3: "Maart", 7: "Julie", 10: "Oktober", 11: "November", 4: "April", 5: "Mei", 6: "Junie", 8: "Augustus", 9: "September"}}, Days: ut.CalendarDayFormatNames{Abbreviated: ut.CalendarDayFormatNameValue{2: "Di.", 3: "Wo.", 4: "Do.", 5: "Vr.", 6: "Sa.", 0: "So.", 1: "Ma."}, Narrow: ut.CalendarDayFormatNameValue{3: "W", 4: "D", 5: "V", 6: "S", 0: "S", 1: "M", 2: "D"}, Short: ut.CalendarDayFormatNameValue{1: "Ma.", 2: "Di.", 3: "Wo.", 4: "Do.", 5: "Vr.", 6: "Sa.", 0: "So."}, Wide: ut.CalendarDayFormatNameValue{5: "Vrydag", 6: "Saterdag", 0: "Sondag", 1: "Maandag", 2: "Dinsdag", 3: "Woensdag", 4: "Donderdag"}}, Periods: ut.CalendarPeriodFormatNames{Abbreviated: ut.CalendarPeriodFormatNameValue{"pm": "nm.", "morning1": "oggend", "afternoon1": "middag", "evening1": "aand", "night1": "nag", "midnight": "middernag", "am": "vm."}, Narrow: ut.CalendarPeriodFormatNameValue{"afternoon1": "m", "evening1": "a", "night1": "n", "midnight": "mn", "am": "v", "pm": "n", "morning1": "o"}, Short: ut.CalendarPeriodFormatNameValue(nil), Wide: ut.CalendarPeriodFormatNameValue{"midnight": "middernag", "am": "vm.", "pm": "nm.", "morning1": "oggend", "afternoon1": "middag", "evening1": "aand", "night1": "nag"}}, Eras: ut.Eras{AD: ut.CalendarEraFormatNames{Full: "na Christus", Abbrev: "n.C.", Narrow: "n.C."}, BC: ut.CalendarEraFormatNames{Full: "voor Christus", Abbrev: "v.C.", Narrow: "v.C."}}}}

resources/locales/af/currency.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package af
2+
3+
import "github.com/go-playground/universal-translator"
4+
5+
var currencies = ut.CurrencyFormatValue{"AFN": ut.Currency{Currency: "AFN", DisplayName: "Afgaanse afgani", Symbol: "AFN"}, "HRK": ut.Currency{Currency: "HRK", DisplayName: "Kroatiese kuna", Symbol: "HRK"}, "ISK": ut.Currency{Currency: "ISK", DisplayName: "Yslandse kroon", Symbol: "ISK"}, "PKR": ut.Currency{Currency: "PKR", DisplayName: "Pakistanse roepee", Symbol: "PKR"}, "MYR": ut.Currency{Currency: "MYR", DisplayName: "Maleisiese ringgit", Symbol: "MYR"}, "VUV": ut.Currency{Currency: "VUV", DisplayName: "Vanuatuse vatu", Symbol: "VUV"}, "CHF": ut.Currency{Currency: "CHF", DisplayName: "Switserse frank", Symbol: "CHF"}, "DJF": ut.Currency{Currency: "DJF", DisplayName: "Djiboeti frank", Symbol: "DJF"}, "EUR": ut.Currency{Currency: "EUR", DisplayName: "Euro", Symbol: "€"}, "GHC": ut.Currency{Currency: "GHC", DisplayName: "Ghanese cedi (1979–2007)", Symbol: ""}, "LYD": ut.Currency{Currency: "LYD", DisplayName: "Libiese dinar", Symbol: "LYD"}, "FJD": ut.Currency{Currency: "FJD", DisplayName: "Fidjiaanse dollar", Symbol: "FJD"}, "MMK": ut.Currency{Currency: "MMK", DisplayName: "Mianmese kyat", Symbol: "MMK"}, "TRL": ut.Currency{Currency: "TRL", DisplayName: "Turkse lier (1922–2005)", Symbol: ""}, "ZWD": ut.Currency{Currency: "ZWD", DisplayName: "Zimbabwiese dollar", Symbol: ""}, "TOP": ut.Currency{Currency: "TOP", DisplayName: "Tongaanse pa’anga", Symbol: "TOP"}, "BRL": ut.Currency{Currency: "BRL", DisplayName: "Brasilliaanse reaal", Symbol: "R$"}, "INR": ut.Currency{Currency: "INR", DisplayName: "Indiese roepee", Symbol: "₹"}, "KYD": ut.Currency{Currency: "KYD", DisplayName: "Cayman-eilande dollar", Symbol: "KYD"}, "LTL": ut.Currency{Currency: "LTL", DisplayName: "Litause litas", Symbol: "LTL"}, "MUR": ut.Currency{Currency: "MUR", DisplayName: "Mauritiaanse rupee", Symbol: "MUR"}, "RWF": ut.Currency{Currency: "RWF", DisplayName: "Rwandiese frank", Symbol: "RWF"}, "BDT": ut.Currency{Currency: "BDT", DisplayName: "Bangladesjiese taka", Symbol: "BDT"}, "FKP": ut.Currency{Currency: "FKP", DisplayName: "Falkland-eilande pond", Symbol: "FKP"}, "GHS": ut.Currency{Currency: "GHS", DisplayName: "Ghanese cedi", Symbol: "GHS"}, "KZT": ut.Currency{Currency: "KZT", DisplayName: "Kazakse tenge", Symbol: "KZT"}, "MRO": ut.Currency{Currency: "MRO", DisplayName: "Mauritaniese ouguiya", Symbol: "MRO"}, "BBD": ut.Currency{Currency: "BBD", DisplayName: "Barbados-dollar", Symbol: "BBD"}, "BYR": ut.Currency{Currency: "BYR", DisplayName: "Belo-Russiese roebel", Symbol: "BYR"}, "SLL": ut.Currency{Currency: "SLL", DisplayName: "Sierra Leoniese leone", Symbol: "SLL"}, "DZD": ut.Currency{Currency: "DZD", DisplayName: "Algeriese dinar", Symbol: "DZD"}, "MGA": ut.Currency{Currency: "MGA", DisplayName: "Malgassiese ariary", Symbol: "MGA"}, "MKD": ut.Currency{Currency: "MKD", DisplayName: "Macedoniese denar", Symbol: "MKD"}, "QAR": ut.Currency{Currency: "QAR", DisplayName: "Katarrese rial", Symbol: "QAR"}, "RUB": ut.Currency{Currency: "RUB", DisplayName: "Russiese roebel", Symbol: "RUB"}, "SBD": ut.Currency{Currency: "SBD", DisplayName: "Salomonseilande dollar", Symbol: "SBD"}, "KMF": ut.Currency{Currency: "KMF", DisplayName: "Comoraanse frank", Symbol: "KMF"}, "LRD": ut.Currency{Currency: "LRD", DisplayName: "Liberiese dollar", Symbol: "LRD"}, "MDL": ut.Currency{Currency: "MDL", DisplayName: "Moldowiese leu", Symbol: "MDL"}, "MZN": ut.Currency{Currency: "MZN", DisplayName: "Mosambiekse metical", Symbol: "MZN"}, "NAD": ut.Currency{Currency: "NAD", DisplayName: "Namibiese dollar", Symbol: "NAD"}, "PGK": ut.Currency{Currency: "PGK", DisplayName: "Papoea-Nieu-Guinese kina", Symbol: "PGK"}, "PLN": ut.Currency{Currency: "PLN", DisplayName: "Poolse zloty", Symbol: "PLN"}, "SCR": ut.Currency{Currency: "SCR", DisplayName: "Seychellese rupee", Symbol: "SCR"}, "AUD": ut.Currency{Currency: "AUD", DisplayName: "Australiese dollar", Symbol: "A$"}, "AZN": ut.Currency{Currency: "AZN", DisplayName: "Azerbeidjaanse manat", Symbol: "AZN"}, "GBP": ut.Currency{Currency: "GBP", DisplayName: "Britse pond", Symbol: "£"}, "GNF": ut.Currency{Currency: "GNF", DisplayName: "Guinese frank", Symbol: "GNF"}, "HTG": ut.Currency{Currency: "HTG", DisplayName: "Haïtiaanse gourde", Symbol: "HTG"}, "TWD": ut.Currency{Currency: "TWD", DisplayName: "Nuwe Taiwanese dollar", Symbol: "NT$"}, "UGX": ut.Currency{Currency: "UGX", DisplayName: "Ugandese sjieling", Symbol: "UGX"}, "XPF": ut.Currency{Currency: "XPF", DisplayName: "CFP-frank", Symbol: "CFPF"}, "XXX": ut.Currency{Currency: "XXX", DisplayName: "Onbekende geldeenheid", Symbol: ""}, "GTQ": ut.Currency{Currency: "GTQ", DisplayName: "Guatemalaanse quetzal", Symbol: "GTQ"}, "OMR": ut.Currency{Currency: "OMR", DisplayName: "Omaanse rial", Symbol: "OMR"}, "RSD": ut.Currency{Currency: "RSD", DisplayName: "Serbiese dinar", Symbol: "RSD"}, "VEF": ut.Currency{Currency: "VEF", DisplayName: "Venezolaanse bolivar", Symbol: "VEF"}, "CRC": ut.Currency{Currency: "CRC", DisplayName: "Costa Ricaanse colón", Symbol: "CRC"}, "SRD": ut.Currency{Currency: "SRD", DisplayName: "Surinaamse dollar", Symbol: "SRD"}, "TZS": ut.Currency{Currency: "TZS", DisplayName: "Tanzaniese sjieling", Symbol: "TZS"}, "UZS": ut.Currency{Currency: "UZS", DisplayName: "Oezbekiese som", Symbol: "UZS"}, "YER": ut.Currency{Currency: "YER", DisplayName: "Jemenitiese rial", Symbol: "YER"}, "MOP": ut.Currency{Currency: "MOP", DisplayName: "Macaose pataca", Symbol: "MOP"}, "AWG": ut.Currency{Currency: "AWG", DisplayName: "Arubaanse floryn", Symbol: "AWG"}, "BGN": ut.Currency{Currency: "BGN", DisplayName: "Bulgaarse lev", Symbol: "BGN"}, "DOP": ut.Currency{Currency: "DOP", DisplayName: "Dominikaanse peso", Symbol: "DOP"}, "KRW": ut.Currency{Currency: "KRW", DisplayName: "Suid-Koreaanse won", Symbol: "₩"}, "KWD": ut.Currency{Currency: "KWD", DisplayName: "Koeweitse dinar", Symbol: "KWD"}, "DKK": ut.Currency{Currency: "DKK", DisplayName: "Deense kroon", Symbol: "DKK"}, "JMD": ut.Currency{Currency: "JMD", DisplayName: "Jamaikaanse dollar", Symbol: "JMD"}, "KPW": ut.Currency{Currency: "KPW", DisplayName: "Noord-Koreaanse won", Symbol: "KPW"}, "RON": ut.Currency{Currency: "RON", DisplayName: "Roemeense leu", Symbol: "RON"}, "ANG": ut.Currency{Currency: "ANG", DisplayName: "Nederlands-Antilliaanse gulde", Symbol: "ANG"}, "BHD": ut.Currency{Currency: "BHD", DisplayName: "Bahreinse dinar", Symbol: "BHD"}, "LAK": ut.Currency{Currency: "LAK", DisplayName: "Laosiaanse kip", Symbol: "LAK"}, "NIO": ut.Currency{Currency: "NIO", DisplayName: "Nicaraguaanse córdoba", Symbol: "NIO"}, "EGP": ut.Currency{Currency: "EGP", DisplayName: "Egiptiese pond", Symbol: "EGP"}, "GYD": ut.Currency{Currency: "GYD", DisplayName: "Guyanese dollar", Symbol: "GYD"}, "HNL": ut.Currency{Currency: "HNL", DisplayName: "Hondurese lempira", Symbol: "HNL"}, "SDG": ut.Currency{Currency: "SDG", DisplayName: "Soedannese pond", Symbol: "SDG"}, "THB": ut.Currency{Currency: "THB", DisplayName: "Thaise baht", Symbol: "฿"}, "HUF": ut.Currency{Currency: "HUF", DisplayName: "Hongaarse florint", Symbol: "HUF"}, "MAD": ut.Currency{Currency: "MAD", DisplayName: "Marokkaanse dirham", Symbol: "MAD"}, "ZAR": ut.Currency{Currency: "ZAR", DisplayName: "Suid-Afrikaanse rand", Symbol: "R"}, "CVE": ut.Currency{Currency: "CVE", DisplayName: "Kaap Verdiese escudo", Symbol: "CVE"}, "KGS": ut.Currency{Currency: "KGS", DisplayName: "Kirgisiese som", Symbol: "KGS"}, "STD": ut.Currency{Currency: "STD", DisplayName: "São Tomé en Príncipe dobra", Symbol: "STD"}, "BSD": ut.Currency{Currency: "BSD", DisplayName: "Bahamiaanse dollar", Symbol: "BSD"}, "JPY": ut.Currency{Currency: "JPY", DisplayName: "Japannese jen", Symbol: "JP¥"}, "BIF": ut.Currency{Currency: "BIF", DisplayName: "Burundiese frank", Symbol: "BIF"}, "MVR": ut.Currency{Currency: "MVR", DisplayName: "Malediviese rufia", Symbol: "MVR"}, "ILS": ut.Currency{Currency: "ILS", DisplayName: "Israeliese nuwe sikkel", Symbol: "₪"}, "KES": ut.Currency{Currency: "KES", DisplayName: "Keniaanse sjieling", Symbol: "KES"}, "MNT": ut.Currency{Currency: "MNT", DisplayName: "Mongoolse toegrik", Symbol: "MNT"}, "SAR": ut.Currency{Currency: "SAR", DisplayName: "Saoedi-Arabiese riyal", Symbol: "SAR"}, "SEK": ut.Currency{Currency: "SEK", DisplayName: "Sweedse kroon", Symbol: "SEK"}, "PEN": ut.Currency{Currency: "PEN", DisplayName: "Peruaanse nuwe sol", Symbol: "PEN"}, "ZMK": ut.Currency{Currency: "ZMK", DisplayName: "Zambiese kwacha (1968–2012)", Symbol: ""}, "BAM": ut.Currency{Currency: "BAM", DisplayName: "Bosnies-Herzegowiniese omskakelbare marka", Symbol: "BAM"}, "GIP": ut.Currency{Currency: "GIP", DisplayName: "Gibraltarese pond", Symbol: "GIP"}, "IDR": ut.Currency{Currency: "IDR", DisplayName: "Indonesiese roepia", Symbol: "IDR"}, "KHR": ut.Currency{Currency: "KHR", DisplayName: "Kambodjaanse riel", Symbol: "KHR"}, "PAB": ut.Currency{Currency: "PAB", DisplayName: "Panamese balboa", Symbol: "PAB"}, "BND": ut.Currency{Currency: "BND", DisplayName: "Broeneise dollar", Symbol: "BND"}, "ETB": ut.Currency{Currency: "ETB", DisplayName: "Etiopiese birr", Symbol: "ETB"}, "GEL": ut.Currency{Currency: "GEL", DisplayName: "Georgiese lari", Symbol: "GEL"}, "XAF": ut.Currency{Currency: "XAF", DisplayName: "CFA frank BEAC", Symbol: "FCFA"}, "ERN": ut.Currency{Currency: "ERN", DisplayName: "Eritrese nakfa", Symbol: "ERN"}, "JOD": ut.Currency{Currency: "JOD", DisplayName: "Jordaniese dinar", Symbol: "JOD"}, "LKR": ut.Currency{Currency: "LKR", DisplayName: "Sri Lankaanse roepee", Symbol: "LKR"}, "AED": ut.Currency{Currency: "AED", DisplayName: "Verenigde Arabiese Emirate dirham", Symbol: "AED"}, "AMD": ut.Currency{Currency: "AMD", DisplayName: "Armeense dram", Symbol: "AMD"}, "BMD": ut.Currency{Currency: "BMD", DisplayName: "Bermuda-dollar", Symbol: "BMD"}, "CDF": ut.Currency{Currency: "CDF", DisplayName: "Kongolese frank", Symbol: "CDF"}, "CUP": ut.Currency{Currency: "CUP", DisplayName: "Kubaanse peso", Symbol: "CUP"}, "NOK": ut.Currency{Currency: "NOK", DisplayName: "Noorse kroon", Symbol: "NOK"}, "NPR": ut.Currency{Currency: "NPR", DisplayName: "Nepalese roepee", Symbol: "NPR"}, "USD": ut.Currency{Currency: "USD", DisplayName: "Amerikaanse dollar", Symbol: "US$"}, "GMD": ut.Currency{Currency: "GMD", DisplayName: "Gambiese dalasi", Symbol: "GMD"}, "IRR": ut.Currency{Currency: "IRR", DisplayName: "Iranse rial", Symbol: "IRR"}, "LSL": ut.Currency{Currency: "LSL", DisplayName: "Lesotho loti", Symbol: ""}, "SZL": ut.Currency{Currency: "SZL", DisplayName: "Swazilandse lilangeni", Symbol: "SZL"}, "TND": ut.Currency{Currency: "TND", DisplayName: "Tunisiese dinar", Symbol: "TND"}, "GNS": ut.Currency{Currency: "GNS", DisplayName: "Guinese syli", Symbol: ""}, "WST": ut.Currency{Currency: "WST", DisplayName: "Samoaanse tala", Symbol: "WST"}, "XOF": ut.Currency{Currency: "XOF", DisplayName: "CFA frank BCEAO", Symbol: "CFA"}, "VND": ut.Currency{Currency: "VND", DisplayName: "Viëtnamese dong", Symbol: "₫"}, "BTN": ut.Currency{Currency: "BTN", DisplayName: "Bhoetanese ngoeltroem", Symbol: "BTN"}, "BWP": ut.Currency{Currency: "BWP", DisplayName: "Botswana pula", Symbol: "BWP"}, "CLP": ut.Currency{Currency: "CLP", DisplayName: "Chileense peso", Symbol: "CLP"}, "LBP": ut.Currency{Currency: "LBP", DisplayName: "Lebanese pond", Symbol: "LBP"}, "SGD": ut.Currency{Currency: "SGD", DisplayName: "Singapoer dollar", Symbol: "SGD"}, "PYG": ut.Currency{Currency: "PYG", DisplayName: "Paraguaanse guarani", Symbol: "PYG"}, "SSP": ut.Currency{Currency: "SSP", DisplayName: "Suid-Soedanese pond", Symbol: "SSP"}, "TJS": ut.Currency{Currency: "TJS", DisplayName: "Tadjikse roebel", Symbol: "TJS"}, "COP": ut.Currency{Currency: "COP", DisplayName: "Colombiaanse peso", Symbol: "COP"}, "CUC": ut.Currency{Currency: "CUC", DisplayName: "Kubaanse omskakelbare peso", Symbol: "CUC"}, "ITL": ut.Currency{Currency: "ITL", DisplayName: "Italiaanse lier", Symbol: ""}, "LVL": ut.Currency{Currency: "LVL", DisplayName: "Lettiese lats", Symbol: ""}, "NZD": ut.Currency{Currency: "NZD", DisplayName: "Nieu-Seeland dollar", Symbol: "NZ$"}, "UYU": ut.Currency{Currency: "UYU", DisplayName: "Uruguaanse peso", Symbol: "UYU"}, "MWK": ut.Currency{Currency: "MWK", DisplayName: "Malawiese kwacha", Symbol: "MWK"}, "NGN": ut.Currency{Currency: "NGN", DisplayName: "Nigeriese naira", Symbol: "NGN"}, "TRY": ut.Currency{Currency: "TRY", DisplayName: "Turkse lier", Symbol: "TRY"}, "BOB": ut.Currency{Currency: "BOB", DisplayName: "Boliviaanse boliviano", Symbol: "BOB"}, "SYP": ut.Currency{Currency: "SYP", DisplayName: "Siriese pond", Symbol: "SYP"}, "UAH": ut.Currency{Currency: "UAH", DisplayName: "Oekraïnse hriwna", Symbol: "UAH"}, "TTD": ut.Currency{Currency: "TTD", DisplayName: "Trinidad en Tobago dollar", Symbol: "TTD"}, "XCD": ut.Currency{Currency: "XCD", DisplayName: "Oos-Karibbiese dollar", Symbol: "EC$"}, "BZD": ut.Currency{Currency: "BZD", DisplayName: "Beliziese dollar", Symbol: "BZD"}, "CAD": ut.Currency{Currency: "CAD", DisplayName: "Kanadese dollar", Symbol: "CA$"}, "CNY": ut.Currency{Currency: "CNY", DisplayName: "Sjinese joean renminbi", Symbol: "CN¥"}, "HKD": ut.Currency{Currency: "HKD", DisplayName: "Hong Kong dollar", Symbol: "HK$"}, "IQD": ut.Currency{Currency: "IQD", DisplayName: "Irakse dinar", Symbol: "IQD"}, "AOA": ut.Currency{Currency: "AOA", DisplayName: "Angolese kwanza", Symbol: "AOA"}, "CZK": ut.Currency{Currency: "CZK", DisplayName: "Tsjeggiese kroon", Symbol: "CZK"}, "MZM": ut.Currency{Currency: "MZM", DisplayName: "Mosambiekse metical (1980–2006)", Symbol: ""}, "SHP": ut.Currency{Currency: "SHP", DisplayName: "Sint Helena pond", Symbol: "SHP"}, "SOS": ut.Currency{Currency: "SOS", DisplayName: "Somaliese sjieling", Symbol: "SOS"}, "TMT": ut.Currency{Currency: "TMT", DisplayName: "Turkmeense manat", Symbol: "TMT"}, "ALL": ut.Currency{Currency: "ALL", DisplayName: "Albanese lek", Symbol: "ALL"}, "ARS": ut.Currency{Currency: "ARS", DisplayName: "Argentynse peso", Symbol: "ARS"}, "MXN": ut.Currency{Currency: "MXN", DisplayName: "Meksikaanse peso", Symbol: "MXN"}, "PHP": ut.Currency{Currency: "PHP", DisplayName: "Filippynse peso", Symbol: "PHP"}, "SDP": ut.Currency{Currency: "SDP", DisplayName: "Soedannese pond (1957–1998)", Symbol: ""}, "ZMW": ut.Currency{Currency: "ZMW", DisplayName: "Zambiese kwacha", Symbol: "ZMW"}}

resources/locales/af/main.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package af
2+
3+
import "github.com/go-playground/universal-translator"
4+
5+
var locale = &ut.Locale{
6+
Locale: "af",
7+
Number: ut.Number{
8+
Symbols: symbols,
9+
Formats: formats,
10+
Currencies: currencies,
11+
},
12+
Calendar: calendar,
13+
PluralRule: pluralRule,
14+
}
15+
16+
func init() {
17+
ut.RegisterLocale(locale)
18+
}

resources/locales/af/number.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package af
2+
3+
import "github.com/go-playground/universal-translator"
4+
5+
var (
6+
symbols = ut.Symbols{Decimal: ",", Group: "\u00a0", Negative: "-", Percent: "%", PerMille: "‰"}
7+
formats = ut.NumberFormats{Decimal: "#,##0.###", Currency: "¤#,##0.00", CurrencyAccounting: "¤#,##0.00;(¤#,##0.00)", Percent: "#,##0%"}
8+
)

resources/locales/af/plural.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package af
2+
3+
var pluralRule = "2A"

resources/locales/af_NA/af_NA.go

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)