Skip to content

Commit

Permalink
Merge pull request #1942 from alphagov/add-punjabi-shahmukhi-language
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGabbianelli authored Dec 17, 2020
2 parents 2470494 + 653b02d commit 15c3891
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 104 deletions.
129 changes: 65 additions & 64 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,70 +35,71 @@ class Application < Rails::Application
config.i18n.default_locale = :en

# Explicitly set available locales
config.i18n.available_locales = [
:en,
:ar,
:az,
:be,
:bg,
:bn,
:cs,
:cy,
:da,
:de,
:dr,
:el,
:es,
"es-419",
:et,
:fa,
:fi,
:fr,
:gd,
:gu,
:he,
:hi,
:hr,
:hu,
:hy,
:id,
:is,
:it,
:ja,
:ka,
:kk,
:ko,
:lt,
:lv,
:ms,
:mt,
:no,
:nl,
:pa,
:pl,
:ps,
:pt,
:ro,
:ru,
:si,
:sk,
:sl,
:so,
:sq,
:sr,
:sv,
:sw,
:ta,
:th,
:tk,
:tr,
:uk,
:ur,
:uz,
:vi,
:zh,
"zh-hk",
"zh-tw",
config.i18n.available_locales = %i[
en
ar
az
be
bg
bn
cs
cy
da
de
dr
el
es
es-419
et
fa
fi
fr
gd
gu
he
hi
hr
hu
hy
id
is
it
ja
ka
kk
ko
lt
lv
ms
mt
no
nl
pa
pa-ur
pl
ps
pt
ro
ru
si
sk
sl
so
sq
sr
sv
sw
ta
th
tk
tr
uk
ur
uz
vi
zh
zh-hk
zh-tw
]

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
Expand Down
81 changes: 41 additions & 40 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,68 +64,69 @@ en:
see_all_updates: "see all updates"
language_names:
ar: Arabic
az: Azeri
be: Belarusian
bg: Bulgarian
bn: Bangla
cs: Czech
cy: Welsh
da: Danish
de: German
dr: Dari
el: Greek
en: English
cy: Welsh
es: Spanish
es-419: Latin American Spanish
et: Estonian
fa: Persian
fi: Finish
fr: French
gd: Irish
gu: Gujarati
it: Italian
ja: Japanese
pt: Portuguese
ru: Russian
tr: Turkish
ur: Urdu
zh: Chinese
zh-hk: Cantonese
zh-tw: Traditional Chinese
bg: Bulgarian
cs: Czech
he: Hebrew
ko: Korean
pa: Punjabi
pl: Polish
ro: Romanian
sr: Serbian
th: Thai
uk: Ukrainian
vi: Vietnamese
sq: Albanian
hi: Hindi
hr: Croatian
hu: Hungarian
hy: Armenian
az: Azeri
bn: Bangla
be: Belarusian
id: Indonesian
is: Icelandic
it: Italian
ja: Japanese
ka: Georgian
el: Greek
hu: Hungarian
hi: Hindi
lv: Latvian
kk: Kazakh
ko: Korean
lt: Lithuanian
lv: Latvian
ms: Malay
mt: Maltese
nl: Dutch
"no": Norwegian
pa: Punjabi
pa-ur: Punjabi Shahmukhi
pl: Polish
ps: Pashto
pt: Portuguese
ro: Romanian
ru: Russian
si: Sinhala
sk: Slovakian
sl: Slovenian
so: Somali
sq: Albanian
sr: Serbian
sv: Swedish
sw: Swahili
ta: Tamil
th: Thai
tk: Turkmen
tr: Turkish
uk: Ukrainian
ur: Urdu
uz: Uzbeki
id: Indonesian
nl: Dutch
"no": Norwegian
hr: Croatian
mt: Maltese
da: Danish
fi: Finish
is: Icelandic
gd: Irish
sl: Slovenian
sv: Swedish
kk: Kazakh
vi: Vietnamese
zh: Chinese
zh-hk: Cantonese
zh-tw: Traditional Chinese
content_item:
schema_name:
# `national` & `official` are old document types for
Expand Down
Loading

0 comments on commit 15c3891

Please sign in to comment.