@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:
Merlijn Vos 2025-08-06 09:34:02 +02:00 committed by GitHub
parent c15c6fd895
commit 1a0beb9283
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 245 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@uppy/locales": patch
---
Add all locales to globalThis.Uppy.locales.[locale-name]

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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