@uppy/locales: remove hacks for legacy bundle (#5200)

This commit is contained in:
Mikael Finstad 2024-05-28 16:00:27 +02:00 committed by Antoine du Hamel
parent 49f7c91a8e
commit 8650bdb9d0
No known key found for this signature in database
GPG key ID: 21D900FFDB233756
41 changed files with 0 additions and 288 deletions

View file

@ -137,11 +137,4 @@ ar_SA.strings = {
openFolderNamed: '%{name} افتح المجلد',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.ar_SA = ar_SA
}
export default ar_SA

View file

@ -166,11 +166,4 @@ bg_BG.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.bg_BG = bg_BG
}
export default bg_BG

View file

@ -232,11 +232,4 @@ ca_ES.strings = {
unselectFileNamed: 'Desselecciona arxiu %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.ca_ES = ca_ES
}
export default ca_ES

View file

@ -162,11 +162,4 @@ cs_CZ.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.cs_CZ = cs_CZ
}
export default cs_CZ

View file

@ -143,11 +143,4 @@ da_DK.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.da_DK = da_DK
}
export default da_DK

View file

@ -213,11 +213,4 @@ de_DE.strings = {
zoomOut: 'Verkleinern',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.de_DE = de_DE
}
export default de_DE

View file

@ -147,11 +147,4 @@ el_GR.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.el_GR = el_GR
}
export default el_GR

View file

@ -227,11 +227,4 @@ en_US.strings = {
zoomOut: 'Zoom out',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.en_US = en_US
}
export default en_US

View file

@ -235,11 +235,4 @@ es_ES.strings = {
unselectFileNamed: 'Deseleccionar archivo %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.es_ES = es_ES
}
export default es_ES

View file

@ -200,11 +200,4 @@ es_MX.strings = {
zoomOut: 'Alejar',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.es_MX = es_MX
}
export default es_MX

View file

@ -223,11 +223,3 @@ fa_IR.strings = {
zoomIn: 'بزرگ‌نمایی',
zoomOut: 'کوچک‌نمایی',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.fa_IR = fa_IR
}
export default fa_IR

View file

@ -148,11 +148,4 @@ fi_FI.strings = {
recording: 'Tallennetaan',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.fi_FI = fi_FI
}
export default fi_FI

View file

@ -172,11 +172,4 @@ fr_FR.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.fr_FR = fr_FR
}
export default fr_FR

View file

@ -145,11 +145,4 @@ gl_ES.strings = {
openFolderNamed: 'Cartafol aberto %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.gl_ES = gl_ES
}
export default gl_ES

View file

@ -141,11 +141,4 @@ he_IL.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.he_IL = he_IL
}
export default he_IL

View file

@ -196,11 +196,4 @@ hi_IN.strings = {
zoomOut: 'ज़ूम आउट',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.hi_IN = hi_IN
}
export default hi_IN

View file

@ -145,11 +145,4 @@ hr_HR.strings = {
openFolderNamed: 'Otvori mapu %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.hr_HR = hr_HR
}
export default hr_HR

View file

@ -107,11 +107,4 @@ hu_HU.strings = {
openFolderNamed: 'Nyitott mappa %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.hu_HU = hu_HU
}
export default hu_HU

View file

@ -142,11 +142,4 @@ id_ID.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.id_ID = id_ID
}
export default id_ID

View file

@ -147,11 +147,4 @@ is_IS.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.is_IS = is_IS
}
export default is_IS

View file

@ -141,11 +141,4 @@ it_IT.strings = {
openFolderNamed: 'Cartella aperta %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.it_IT = it_IT
}
export default it_IT

View file

@ -150,11 +150,4 @@ ja_JP.strings = {
openFolderNamed: '開いたフォルダ %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.ja_JP = ja_JP
}
export default ja_JP

View file

@ -110,11 +110,4 @@ ko_KR.strings = {
youHaveToAtLeastSelectX: '최소 %{smart_count}개의 파일을 선택해야 합니다',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.ko_KR = ko_KR
}
export default ko_KR

View file

@ -177,11 +177,4 @@ nb_NO.strings = {
zoomOut: 'Zoom ut',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.nb_NO = nb_NO
}
export default nb_NO

View file

@ -215,11 +215,4 @@ nl_NL.strings = {
zoomOut: 'Zoom uit',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.nl_NL = nl_NL
}
export default nl_NL

View file

@ -153,11 +153,4 @@ pl_PL.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.pl_PL = pl_PL
}
export default pl_PL

View file

@ -151,11 +151,4 @@ pt_BR.strings = {
openFolderNamed: 'Pasta aberta %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.pt_BR = pt_BR
}
export default pt_BR

View file

@ -142,11 +142,4 @@ pt_PT.strings = {
openFolderNamed: 'Pasta aberta %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.pt_PT = pt_PT
}
export default pt_PT

View file

@ -156,11 +156,4 @@ ro_RO.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.ro_RO = ro_RO
}
export default ro_RO

View file

@ -255,11 +255,4 @@ ru_RU.strings = {
zoomOut: 'Отдалить',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.ru_RU = ru_RU
}
export default ru_RU

View file

@ -179,11 +179,4 @@ sk_SK.strings = {
zoomOut: 'Oddialiť',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.sk_SK = sk_SK
}
export default sk_SK

View file

@ -145,11 +145,4 @@ sr_RS_Cyrillic.strings = {
openFolderNamed: 'Отвори фолдер %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.sr_RS_Cyrillic = sr_RS_Cyrillic
}
export default sr_RS_Cyrillic

View file

@ -145,11 +145,4 @@ sr_RS_Latin.strings = {
openFolderNamed: 'Otvori folder %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.sr_RS_Latin = sr_RS_Latin
}
export default sr_RS_Latin

View file

@ -145,11 +145,4 @@ sv_SE.strings = {
},
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.sv_SE = sv_SE
}
export default sv_SE

View file

@ -170,11 +170,4 @@ th_TH.strings = {
zoomOut: 'ซูมออก',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.th_TH = th_TH
}
export default th_TH

View file

@ -143,11 +143,4 @@ tr_TR.strings = {
openFolderNamed: 'Açık dosya %{name}',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.tr_TR = tr_TR
}
export default tr_TR

View file

@ -241,11 +241,4 @@ uk_UA.strings = {
zoomOut: 'Зменшити',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.uk_UA = uk_UA
}
export default uk_UA

View file

@ -224,11 +224,4 @@ uz_UZ.strings = {
zoomOut: 'Kichraytirish',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.uz_UZ = uz_UZ
}
export default uz_UZ

View file

@ -227,11 +227,4 @@ vi_VN.strings = {
zoomOut: 'Thu nhỏ',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.vi_VN = vi_VN
}
export default vi_VN

View file

@ -119,11 +119,4 @@ zh_CN.strings = {
youHaveToAtLeastSelectX: '您至少要选择 %{smart_count} 个文件',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.zh_CN = zh_CN
}
export default zh_CN

View file

@ -169,11 +169,4 @@ zh_TW.strings = {
zoomOut: '縮小',
}
// TODO: remove this in the next major?
// @ts-expect-error Uppy can be a global in legacy bundle
if (typeof Uppy !== 'undefined') {
// @ts-expect-error Uppy can be a global in legacy bundle
globalThis.Uppy.locales.zh_TW = zh_TW
}
export default zh_TW