mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-24 02:46:39 +00:00
@uppy/locales: add all locales to globalThis (#5880)
Closes #5857 We already do for `en_US` and `ms_MY`, seems like a mistake that the other's don't have it.
This commit is contained in:
parent
c15c6fd895
commit
1a0beb9283
41 changed files with 245 additions and 0 deletions
5
.changeset/proud-mails-hug.md
Normal file
5
.changeset/proud-mails-hug.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@uppy/locales": patch
|
||||
---
|
||||
|
||||
Add all locales to globalThis.Uppy.locales.[locale-name]
|
||||
|
|
@ -137,4 +137,10 @@ ar_SA.strings = {
|
|||
openFolderNamed: '%{name} افتح المجلد',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.ar_SA = ar_SA
|
||||
}
|
||||
|
||||
export default ar_SA
|
||||
|
|
|
|||
|
|
@ -166,4 +166,10 @@ bg_BG.strings = {
|
|||
},
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.bg_BG = bg_BG
|
||||
}
|
||||
|
||||
export default bg_BG
|
||||
|
|
|
|||
|
|
@ -232,4 +232,10 @@ ca_ES.strings = {
|
|||
unselectFileNamed: 'Desselecciona arxiu %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.ca_ES = ca_ES
|
||||
}
|
||||
|
||||
export default ca_ES
|
||||
|
|
|
|||
|
|
@ -275,4 +275,10 @@ cs_CZ.strings = {
|
|||
zoomOut: 'Oddálit',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.cs_CZ = cs_CZ
|
||||
}
|
||||
|
||||
export default cs_CZ
|
||||
|
|
|
|||
|
|
@ -143,4 +143,10 @@ da_DK.strings = {
|
|||
},
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.da_DK = da_DK
|
||||
}
|
||||
|
||||
export default da_DK
|
||||
|
|
|
|||
|
|
@ -213,4 +213,10 @@ de_DE.strings = {
|
|||
zoomOut: 'Verkleinern',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.de_DE = de_DE
|
||||
}
|
||||
|
||||
export default de_DE
|
||||
|
|
|
|||
|
|
@ -147,4 +147,10 @@ el_GR.strings = {
|
|||
},
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.el_GR = el_GR
|
||||
}
|
||||
|
||||
export default el_GR
|
||||
|
|
|
|||
|
|
@ -235,4 +235,10 @@ es_ES.strings = {
|
|||
unselectFileNamed: 'Deseleccionar archivo %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.es_ES = es_ES
|
||||
}
|
||||
|
||||
export default es_ES
|
||||
|
|
|
|||
|
|
@ -200,4 +200,10 @@ es_MX.strings = {
|
|||
zoomOut: 'Alejar',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.es_MX = es_MX
|
||||
}
|
||||
|
||||
export default es_MX
|
||||
|
|
|
|||
|
|
@ -224,4 +224,10 @@ fa_IR.strings = {
|
|||
zoomOut: 'کوچکنمایی',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.fa_IR = fa_IR
|
||||
}
|
||||
|
||||
export default fa_IR
|
||||
|
|
|
|||
|
|
@ -148,4 +148,10 @@ fi_FI.strings = {
|
|||
recording: 'Tallennetaan',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.fi_FI = fi_FI
|
||||
}
|
||||
|
||||
export default fi_FI
|
||||
|
|
|
|||
|
|
@ -217,4 +217,10 @@ fr_FR.strings = {
|
|||
},
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.fr_FR = fr_FR
|
||||
}
|
||||
|
||||
export default fr_FR
|
||||
|
|
|
|||
|
|
@ -145,4 +145,10 @@ gl_ES.strings = {
|
|||
openFolderNamed: 'Cartafol aberto %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.gl_ES = gl_ES
|
||||
}
|
||||
|
||||
export default gl_ES
|
||||
|
|
|
|||
|
|
@ -141,4 +141,10 @@ he_IL.strings = {
|
|||
},
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.he_IL = he_IL
|
||||
}
|
||||
|
||||
export default he_IL
|
||||
|
|
|
|||
|
|
@ -191,4 +191,10 @@ hi_IN.strings = {
|
|||
zoomOut: 'ज़ूम आउट',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.hi_IN = hi_IN
|
||||
}
|
||||
|
||||
export default hi_IN
|
||||
|
|
|
|||
|
|
@ -145,4 +145,10 @@ hr_HR.strings = {
|
|||
openFolderNamed: 'Otvori mapu %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.hr_HR = hr_HR
|
||||
}
|
||||
|
||||
export default hr_HR
|
||||
|
|
|
|||
|
|
@ -107,4 +107,10 @@ hu_HU.strings = {
|
|||
openFolderNamed: 'Nyitott mappa %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.hu_HU = hu_HU
|
||||
}
|
||||
|
||||
export default hu_HU
|
||||
|
|
|
|||
|
|
@ -142,4 +142,10 @@ id_ID.strings = {
|
|||
},
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.id_ID = id_ID
|
||||
}
|
||||
|
||||
export default id_ID
|
||||
|
|
|
|||
|
|
@ -147,4 +147,10 @@ is_IS.strings = {
|
|||
},
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.is_IS = is_IS
|
||||
}
|
||||
|
||||
export default is_IS
|
||||
|
|
|
|||
|
|
@ -142,4 +142,10 @@ it_IT.strings = {
|
|||
openFolderNamed: 'Cartella aperta %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.it_IT = it_IT
|
||||
}
|
||||
|
||||
export default it_IT
|
||||
|
|
|
|||
|
|
@ -150,4 +150,10 @@ ja_JP.strings = {
|
|||
openFolderNamed: '開いたフォルダ %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.ja_JP = ja_JP
|
||||
}
|
||||
|
||||
export default ja_JP
|
||||
|
|
|
|||
|
|
@ -110,4 +110,10 @@ ko_KR.strings = {
|
|||
youHaveToAtLeastSelectX: '최소 %{smart_count}개의 파일을 선택해야 합니다',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.ko_KR = ko_KR
|
||||
}
|
||||
|
||||
export default ko_KR
|
||||
|
|
|
|||
|
|
@ -177,4 +177,10 @@ nb_NO.strings = {
|
|||
zoomOut: 'Zoom ut',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.nb_NO = nb_NO
|
||||
}
|
||||
|
||||
export default nb_NO
|
||||
|
|
|
|||
|
|
@ -215,4 +215,10 @@ nl_NL.strings = {
|
|||
zoomOut: 'Zoom uit',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.nl_NL = nl_NL
|
||||
}
|
||||
|
||||
export default nl_NL
|
||||
|
|
|
|||
|
|
@ -153,4 +153,10 @@ pl_PL.strings = {
|
|||
},
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.pl_PL = pl_PL
|
||||
}
|
||||
|
||||
export default pl_PL
|
||||
|
|
|
|||
|
|
@ -251,4 +251,10 @@ pt_BR.strings = {
|
|||
zoomOut: 'Diminuir o zoom',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.pt_BR = pt_BR
|
||||
}
|
||||
|
||||
export default pt_BR
|
||||
|
|
|
|||
|
|
@ -142,4 +142,10 @@ pt_PT.strings = {
|
|||
openFolderNamed: 'Pasta aberta %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.pt_PT = pt_PT
|
||||
}
|
||||
|
||||
export default pt_PT
|
||||
|
|
|
|||
|
|
@ -156,4 +156,10 @@ ro_RO.strings = {
|
|||
},
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.ro_RO = ro_RO
|
||||
}
|
||||
|
||||
export default ro_RO
|
||||
|
|
|
|||
|
|
@ -255,4 +255,10 @@ ru_RU.strings = {
|
|||
zoomOut: 'Отдалить',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.ru_RU = ru_RU
|
||||
}
|
||||
|
||||
export default ru_RU
|
||||
|
|
|
|||
|
|
@ -179,4 +179,10 @@ sk_SK.strings = {
|
|||
zoomOut: 'Oddialiť',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.sk_SK = sk_SK
|
||||
}
|
||||
|
||||
export default sk_SK
|
||||
|
|
|
|||
|
|
@ -145,4 +145,10 @@ sr_RS_Cyrillic.strings = {
|
|||
openFolderNamed: 'Отвори фолдер %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.sr_RS_Cyrillic = sr_RS_Cyrillic
|
||||
}
|
||||
|
||||
export default sr_RS_Cyrillic
|
||||
|
|
|
|||
|
|
@ -145,4 +145,10 @@ sr_RS_Latin.strings = {
|
|||
openFolderNamed: 'Otvori folder %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.sr_RS_Latin = sr_RS_Latin
|
||||
}
|
||||
|
||||
export default sr_RS_Latin
|
||||
|
|
|
|||
|
|
@ -247,4 +247,10 @@ sv_SE.strings = {
|
|||
zoomOut: 'Zooma ut',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.sv_SE = sv_SE
|
||||
}
|
||||
|
||||
export default sv_SE
|
||||
|
|
|
|||
|
|
@ -168,4 +168,10 @@ th_TH.strings = {
|
|||
zoomOut: 'ซูมออก',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.th_TH = th_TH
|
||||
}
|
||||
|
||||
export default th_TH
|
||||
|
|
|
|||
|
|
@ -143,4 +143,10 @@ tr_TR.strings = {
|
|||
openFolderNamed: 'Açık dosya %{name}',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.tr_TR = tr_TR
|
||||
}
|
||||
|
||||
export default tr_TR
|
||||
|
|
|
|||
|
|
@ -241,4 +241,10 @@ uk_UA.strings = {
|
|||
zoomOut: 'Зменшити',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.uk_UA = uk_UA
|
||||
}
|
||||
|
||||
export default uk_UA
|
||||
|
|
|
|||
|
|
@ -224,4 +224,10 @@ uz_UZ.strings = {
|
|||
zoomOut: 'Kichraytirish',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.uz_UZ = uz_UZ
|
||||
}
|
||||
|
||||
export default uz_UZ
|
||||
|
|
|
|||
|
|
@ -227,4 +227,10 @@ vi_VN.strings = {
|
|||
zoomOut: 'Thu nhỏ',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.vi_VN = vi_VN
|
||||
}
|
||||
|
||||
export default vi_VN
|
||||
|
|
|
|||
|
|
@ -119,4 +119,10 @@ zh_CN.strings = {
|
|||
youHaveToAtLeastSelectX: '您至少要选择 %{smart_count} 个文件',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.zh_CN = zh_CN
|
||||
}
|
||||
|
||||
export default zh_CN
|
||||
|
|
|
|||
|
|
@ -169,4 +169,10 @@ zh_TW.strings = {
|
|||
zoomOut: '縮小',
|
||||
}
|
||||
|
||||
// @ts-ignore untyped
|
||||
if (typeof Uppy !== 'undefined') {
|
||||
// @ts-ignore untyped
|
||||
globalThis.Uppy.locales.zh_TW = zh_TW
|
||||
}
|
||||
|
||||
export default zh_TW
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue