Skip to content

Commit

Permalink
Merge pull request #68 from grosser/grosser/no
Browse files Browse the repository at this point in the history
fix norwegian
  • Loading branch information
grosser authored Sep 2, 2024
2 parents a1f8a02 + 2ad4bd7 commit bf086cb
Show file tree
Hide file tree
Showing 4 changed files with 451 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@ end
desc "write all languages to output"
task :all_languages do
I18nData.languages.each_key do |lc|
`rake languages LANGUAGE=#{lc}`
sh "rake languages LANGUAGE=#{lc}"
end
end

desc "write languages to output/languages_{language}"
desc "write languages to output/languages_{LANGUAGE}"
task :languages do
raise unless (language = ENV.fetch('LANGUAGE', nil))
`mkdir -p output`
language = ENV.fetch('LANGUAGE')
sh "mkdir -p output"
data = I18nData.languages(language.upcase)
File.write "output/languages_#{language.downcase}.yml", data.to_yaml
end

desc "write all countries to output to debug"
task :all_countries do
I18nData.languages.each_key do |lc|
`rake countries LANGUAGE=#{lc}`
sh "rake countries LANGUAGE=#{lc}"
end
end

desc "write countries to output/countries_{language} to debug"
desc "write countries to output/countries_{LANGUAGE} to debug"
task :countries do
raise unless (language = ENV.fetch('LANGUAGE', nil))
`mkdir -p output`
language = ENV.fetch('LANGUAGE')
sh "mkdir -p output"
data = I18nData.countries(language.upcase)
File.open("output/countries_#{language.downcase}.yml", 'w') { |f| f.puts data.to_yaml }
end
Expand Down
249 changes: 249 additions & 0 deletions cache/file_data_provider/countries-NO.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
AW;;Aruba
AF;;Afghanistan
AO;;Angola
AI;;Anguilla
AX;;Åland
AL;;Albania
AD;;Andorra
AE;;De forente arabiske emirater
AR;;Argentina
AM;;Armenia
AS;;Amerikansk Samoa
AQ;;Antarktika
TF;;Franske sørlige territorier
AG;;Antigua og Barbuda
AU;;Australia
AT;;Østerrike
AZ;;Aserbajdsjan
BI;;Burundi
BE;;Belgia
BJ;;Benin
BQ;;Bonaire, Sint Eustatius og Saba
BF;;Burkina Faso
BD;;Bangladesh
BG;;Bulgaria
BH;;Bahrain
BS;;Bahamas
BA;;Bosnia-Hercegovina
BL;;Saint-Barthélemy
BY;;Hviterussland
BZ;;Belize
BM;;Bermuda
BO;;Bolivia
BR;;Brasil
BB;;Barbados
BN;;Brunei Darussalam
BT;;Bhutan
BV;;Bouvetøya
BW;;Botswana
CF;;Den sentralafrikanske republikk
CA;;Canada
CC;;Kokosøyene
CH;;Sveits
CL;;Chile
CN;;Kina
CI;;Elfenbenskysten
CM;;Kamerun
CD;;Kongo, Den demokratiske republikk
CG;;Kongo
CK;;Cookøyene
CO;;Colombia
KM;;Komorene
CV;;Kapp Verde
CR;;Costa Rica
CU;;Cuba
CW;;Curaçao
CX;;Christmasøya
KY;;Caymanøyene
CY;;Kypros
CZ;;Tsjekkia
DE;;Tyskland
DJ;;Djibouti
DM;;Dominica
DK;;Danmark
DO;;Den dominikanske republikk
DZ;;Algerie
EC;;Ecuador
EG;;Egypt
ER;;Eritrea
EH;;Vest-Sahara
ES;;Spania
EE;;Estland
ET;;Etiopia
FI;;Finland
FJ;;Fiji
FK;;Falklandsøyene
FR;;Frankrike
FO;;Færøyene
FM;;Mikronesia, Føderasjonen
GA;;Gabon
GB;;Storbritannia
GE;;Georgia
GG;;Guernsey
GH;;Ghana
GI;;Gibraltar
GN;;Guinea
GP;;Guadeloupe
GM;;Gambia
GW;;Guinea-Bissau
GQ;;Ekvatorial-Guinea
GR;;Hellas
GD;;Grenada
GL;;Grønland
GT;;Guatemala
GF;;Fransk Guyana
GU;;Guam
GY;;Guyana
HK;;Hongkong
HM;;Heard- og McDonaldøyene
HN;;Honduras
HR;;Kroatia
HT;;Haiti
HU;;Ungarn
ID;;Indonesia
IM;;Man
IN;;India
IO;;Det britiske territoriet i Indiahavet
IE;;Irland
IR;;Iran
IQ;;Irak
IS;;Island
IL;;Israel
IT;;Italia
JM;;Jamaica
JE;;Jersey
JO;;Jordan
JP;;Japan
KZ;;Kasakhstan
KE;;Kenya
KG;;Kirgisistan
KH;;Kambodsja
KI;;Kiribati
KN;;Saint Kitts og Nevis
KR;;Sør-Korea
KW;;Kuwait
LA;;Laos
LB;;Libanon
LR;;Liberia
LY;;Libya
LC;;Saint Lucia
LI;;Liechtenstein
LK;;Sri Lanka
LS;;Lesotho
LT;;Litauen
LU;;Luxembourg
LV;;Latvia
MO;;Macao
MF;;Saint Martin (fransk del)
MA;;Marokko
MC;;Monaco
MD;;Moldova
MG;;Madagaskar
MV;;Maldivene
MX;;Mexico
MH;;Marshalløyene
MK;;Nord-Makedonia
ML;;Mali
MT;;Malta
MM;;Myanmar
ME;;Montenegro
MN;;Mongolia
MP;;Nord-Marianene
MZ;;Mosambik
MR;;Mauritania
MS;;Montserrat
MQ;;Martinique
MU;;Mauritius
MW;;Malawi
MY;;Malaysia
YT;;Mayotte
NA;;Namibia
NC;;Ny-Caledonia
NE;;Niger
NF;;Norfolkøya
NG;;Nigeria
NI;;Nicaragua
NU;;Niue
NL;;Nederland
NO;;Norge
NP;;Nepal
NR;;Nauru
NZ;;New Zealand
OM;;Oman
PK;;Pakistan
PA;;Panama
PN;;Pitcairn
PE;;Peru
PH;;Filippinene
PW;;Palau
PG;;Papua Ny-Guinea
PL;;Polen
PR;;Puerto Rico
KP;;Nord-Korea
PT;;Portugal
PY;;Paraguay
PS;;Palestina, staten
PF;;Fransk Polynesia
QA;;Qatar
RE;;Réunion
RO;;Romania
RU;;Den russiske føderasjon
RW;;Rwanda
SA;;Saudi-Arabia
SD;;Sudan
SN;;Senegal
SG;;Singapore
GS;;Sør-Georgia og Sør-Sandwichøyene
SH;;Saint Helena, Ascension og Tristan da Cunha
SJ;;Svalbard og Jan Mayen
SB;;Salomonøyene
SL;;Sierra Leone
SV;;El Salvador
SM;;San Marino
SO;;Somalia
PM;;Saint-Pierre og Miquelon
RS;;Serbia
SS;;Sør-Sudan
ST;;São Tomé og Príncipe
SR;;Surinam
SK;;Slovakia
SI;;Slovenia
SE;;Sverige
SZ;;Eswatini (tidligere Swasiland)
SX;;Sint Maarten (nederlandsk del)
SC;;Seychellene
SY;;Syria
TC;;Turks- og Caicosøyene
TD;;Tsjad
TG;;Togo
TH;;Thailand
TJ;;Tadsjikistan
TK;;Tokelau
TM;;Turkmenistan
TL;;Øst-Timor
TO;;Tonga
TT;;Trinidad og Tobago
TN;;Tunisia
TR;;Tyrkia
TV;;Tuvalu
TW;;Taiwan
TZ;;Tanzania
UG;;Uganda
UA;;Ukraina
UM;;Mindre utenforliggende øyer til USA
UY;;Uruguay
US;;De forente stater
UZ;;Usbekistan
VA;;Vatikanstaten
VC;;Saint Vincent og Grenadinene
VE;;Venezuela
VG;;Jomfruøyene (Storbritannia)
VI;;Jomfruøyene (USA)
VN;;Vietnam
VU;;Vanuatu
WF;;Wallis og Futunaøyene
WS;;Samoa
YE;;Jemen
ZA;;Sør-Afrika
ZM;;Zambia
ZW;;Zimbabwe
Loading

0 comments on commit bf086cb

Please sign in to comment.