From 8650bdb9d02ddda66ec90b91c757ee7c13781f0b Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Tue, 28 May 2024 16:00:27 +0200 Subject: [PATCH] @uppy/locales: remove hacks for legacy bundle (#5200) --- packages/@uppy/locales/src/ar_SA.ts | 7 ------- packages/@uppy/locales/src/bg_BG.ts | 7 ------- packages/@uppy/locales/src/ca_ES.ts | 7 ------- packages/@uppy/locales/src/cs_CZ.ts | 7 ------- packages/@uppy/locales/src/da_DK.ts | 7 ------- packages/@uppy/locales/src/de_DE.ts | 7 ------- packages/@uppy/locales/src/el_GR.ts | 7 ------- packages/@uppy/locales/src/en_US.ts | 7 ------- packages/@uppy/locales/src/es_ES.ts | 7 ------- packages/@uppy/locales/src/es_MX.ts | 7 ------- packages/@uppy/locales/src/fa_IR.ts | 8 -------- packages/@uppy/locales/src/fi_FI.ts | 7 ------- packages/@uppy/locales/src/fr_FR.ts | 7 ------- packages/@uppy/locales/src/gl_ES.ts | 7 ------- packages/@uppy/locales/src/he_IL.ts | 7 ------- packages/@uppy/locales/src/hi_IN.ts | 7 ------- packages/@uppy/locales/src/hr_HR.ts | 7 ------- packages/@uppy/locales/src/hu_HU.ts | 7 ------- packages/@uppy/locales/src/id_ID.ts | 7 ------- packages/@uppy/locales/src/is_IS.ts | 7 ------- packages/@uppy/locales/src/it_IT.ts | 7 ------- packages/@uppy/locales/src/ja_JP.ts | 7 ------- packages/@uppy/locales/src/ko_KR.ts | 7 ------- packages/@uppy/locales/src/nb_NO.ts | 7 ------- packages/@uppy/locales/src/nl_NL.ts | 7 ------- packages/@uppy/locales/src/pl_PL.ts | 7 ------- packages/@uppy/locales/src/pt_BR.ts | 7 ------- packages/@uppy/locales/src/pt_PT.ts | 7 ------- packages/@uppy/locales/src/ro_RO.ts | 7 ------- packages/@uppy/locales/src/ru_RU.ts | 7 ------- packages/@uppy/locales/src/sk_SK.ts | 7 ------- packages/@uppy/locales/src/sr_RS_Cyrillic.ts | 7 ------- packages/@uppy/locales/src/sr_RS_Latin.ts | 7 ------- packages/@uppy/locales/src/sv_SE.ts | 7 ------- packages/@uppy/locales/src/th_TH.ts | 7 ------- packages/@uppy/locales/src/tr_TR.ts | 7 ------- packages/@uppy/locales/src/uk_UA.ts | 7 ------- packages/@uppy/locales/src/uz_UZ.ts | 7 ------- packages/@uppy/locales/src/vi_VN.ts | 7 ------- packages/@uppy/locales/src/zh_CN.ts | 7 ------- packages/@uppy/locales/src/zh_TW.ts | 7 ------- 41 files changed, 288 deletions(-) diff --git a/packages/@uppy/locales/src/ar_SA.ts b/packages/@uppy/locales/src/ar_SA.ts index 2df884565..2a6e84ed0 100644 --- a/packages/@uppy/locales/src/ar_SA.ts +++ b/packages/@uppy/locales/src/ar_SA.ts @@ -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 diff --git a/packages/@uppy/locales/src/bg_BG.ts b/packages/@uppy/locales/src/bg_BG.ts index f74aa1231..5e28c5d76 100644 --- a/packages/@uppy/locales/src/bg_BG.ts +++ b/packages/@uppy/locales/src/bg_BG.ts @@ -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 diff --git a/packages/@uppy/locales/src/ca_ES.ts b/packages/@uppy/locales/src/ca_ES.ts index f3c95c39a..1afe0ffd1 100644 --- a/packages/@uppy/locales/src/ca_ES.ts +++ b/packages/@uppy/locales/src/ca_ES.ts @@ -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 diff --git a/packages/@uppy/locales/src/cs_CZ.ts b/packages/@uppy/locales/src/cs_CZ.ts index 409c7f3db..5f5a0749a 100644 --- a/packages/@uppy/locales/src/cs_CZ.ts +++ b/packages/@uppy/locales/src/cs_CZ.ts @@ -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 diff --git a/packages/@uppy/locales/src/da_DK.ts b/packages/@uppy/locales/src/da_DK.ts index 036e2ddae..c747e89f1 100644 --- a/packages/@uppy/locales/src/da_DK.ts +++ b/packages/@uppy/locales/src/da_DK.ts @@ -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 diff --git a/packages/@uppy/locales/src/de_DE.ts b/packages/@uppy/locales/src/de_DE.ts index d08d88847..9c7e31d7f 100644 --- a/packages/@uppy/locales/src/de_DE.ts +++ b/packages/@uppy/locales/src/de_DE.ts @@ -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 diff --git a/packages/@uppy/locales/src/el_GR.ts b/packages/@uppy/locales/src/el_GR.ts index 0769ee9b5..0ea9e7cfd 100644 --- a/packages/@uppy/locales/src/el_GR.ts +++ b/packages/@uppy/locales/src/el_GR.ts @@ -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 diff --git a/packages/@uppy/locales/src/en_US.ts b/packages/@uppy/locales/src/en_US.ts index 6548175f1..3d00e1803 100644 --- a/packages/@uppy/locales/src/en_US.ts +++ b/packages/@uppy/locales/src/en_US.ts @@ -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 diff --git a/packages/@uppy/locales/src/es_ES.ts b/packages/@uppy/locales/src/es_ES.ts index 93b461a08..5475151dd 100644 --- a/packages/@uppy/locales/src/es_ES.ts +++ b/packages/@uppy/locales/src/es_ES.ts @@ -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 diff --git a/packages/@uppy/locales/src/es_MX.ts b/packages/@uppy/locales/src/es_MX.ts index 41589722f..dea8dd2ec 100644 --- a/packages/@uppy/locales/src/es_MX.ts +++ b/packages/@uppy/locales/src/es_MX.ts @@ -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 diff --git a/packages/@uppy/locales/src/fa_IR.ts b/packages/@uppy/locales/src/fa_IR.ts index dae602f51..c1ce983b2 100644 --- a/packages/@uppy/locales/src/fa_IR.ts +++ b/packages/@uppy/locales/src/fa_IR.ts @@ -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 diff --git a/packages/@uppy/locales/src/fi_FI.ts b/packages/@uppy/locales/src/fi_FI.ts index 9d79f31d8..f1e531f4f 100644 --- a/packages/@uppy/locales/src/fi_FI.ts +++ b/packages/@uppy/locales/src/fi_FI.ts @@ -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 diff --git a/packages/@uppy/locales/src/fr_FR.ts b/packages/@uppy/locales/src/fr_FR.ts index 9e46cab6b..7080d4ab2 100644 --- a/packages/@uppy/locales/src/fr_FR.ts +++ b/packages/@uppy/locales/src/fr_FR.ts @@ -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 diff --git a/packages/@uppy/locales/src/gl_ES.ts b/packages/@uppy/locales/src/gl_ES.ts index 9fe4ac2ad..c1e731769 100644 --- a/packages/@uppy/locales/src/gl_ES.ts +++ b/packages/@uppy/locales/src/gl_ES.ts @@ -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 diff --git a/packages/@uppy/locales/src/he_IL.ts b/packages/@uppy/locales/src/he_IL.ts index 30ff5d952..acac71a25 100644 --- a/packages/@uppy/locales/src/he_IL.ts +++ b/packages/@uppy/locales/src/he_IL.ts @@ -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 diff --git a/packages/@uppy/locales/src/hi_IN.ts b/packages/@uppy/locales/src/hi_IN.ts index 76cdec604..7fa87f369 100644 --- a/packages/@uppy/locales/src/hi_IN.ts +++ b/packages/@uppy/locales/src/hi_IN.ts @@ -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 diff --git a/packages/@uppy/locales/src/hr_HR.ts b/packages/@uppy/locales/src/hr_HR.ts index 213b69f9e..9e8385761 100644 --- a/packages/@uppy/locales/src/hr_HR.ts +++ b/packages/@uppy/locales/src/hr_HR.ts @@ -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 diff --git a/packages/@uppy/locales/src/hu_HU.ts b/packages/@uppy/locales/src/hu_HU.ts index c741294e1..d16c5c00a 100644 --- a/packages/@uppy/locales/src/hu_HU.ts +++ b/packages/@uppy/locales/src/hu_HU.ts @@ -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 diff --git a/packages/@uppy/locales/src/id_ID.ts b/packages/@uppy/locales/src/id_ID.ts index d397076ad..47dc72f8f 100644 --- a/packages/@uppy/locales/src/id_ID.ts +++ b/packages/@uppy/locales/src/id_ID.ts @@ -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 diff --git a/packages/@uppy/locales/src/is_IS.ts b/packages/@uppy/locales/src/is_IS.ts index 2bef2ac39..497525a4d 100644 --- a/packages/@uppy/locales/src/is_IS.ts +++ b/packages/@uppy/locales/src/is_IS.ts @@ -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 diff --git a/packages/@uppy/locales/src/it_IT.ts b/packages/@uppy/locales/src/it_IT.ts index a6d25140a..6907b9e25 100644 --- a/packages/@uppy/locales/src/it_IT.ts +++ b/packages/@uppy/locales/src/it_IT.ts @@ -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 diff --git a/packages/@uppy/locales/src/ja_JP.ts b/packages/@uppy/locales/src/ja_JP.ts index cf8294cf8..c6bc13e4b 100644 --- a/packages/@uppy/locales/src/ja_JP.ts +++ b/packages/@uppy/locales/src/ja_JP.ts @@ -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 diff --git a/packages/@uppy/locales/src/ko_KR.ts b/packages/@uppy/locales/src/ko_KR.ts index 1011d3140..3e207e596 100644 --- a/packages/@uppy/locales/src/ko_KR.ts +++ b/packages/@uppy/locales/src/ko_KR.ts @@ -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 diff --git a/packages/@uppy/locales/src/nb_NO.ts b/packages/@uppy/locales/src/nb_NO.ts index b32363837..0e3171b5f 100644 --- a/packages/@uppy/locales/src/nb_NO.ts +++ b/packages/@uppy/locales/src/nb_NO.ts @@ -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 diff --git a/packages/@uppy/locales/src/nl_NL.ts b/packages/@uppy/locales/src/nl_NL.ts index 7231017fe..2e0f8555d 100644 --- a/packages/@uppy/locales/src/nl_NL.ts +++ b/packages/@uppy/locales/src/nl_NL.ts @@ -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 diff --git a/packages/@uppy/locales/src/pl_PL.ts b/packages/@uppy/locales/src/pl_PL.ts index 5358e4d66..b70df84ef 100644 --- a/packages/@uppy/locales/src/pl_PL.ts +++ b/packages/@uppy/locales/src/pl_PL.ts @@ -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 diff --git a/packages/@uppy/locales/src/pt_BR.ts b/packages/@uppy/locales/src/pt_BR.ts index 73c2bb4b6..06793ce29 100644 --- a/packages/@uppy/locales/src/pt_BR.ts +++ b/packages/@uppy/locales/src/pt_BR.ts @@ -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 diff --git a/packages/@uppy/locales/src/pt_PT.ts b/packages/@uppy/locales/src/pt_PT.ts index 969b61812..c41221fea 100644 --- a/packages/@uppy/locales/src/pt_PT.ts +++ b/packages/@uppy/locales/src/pt_PT.ts @@ -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 diff --git a/packages/@uppy/locales/src/ro_RO.ts b/packages/@uppy/locales/src/ro_RO.ts index 3dd6c0964..8d10b3867 100644 --- a/packages/@uppy/locales/src/ro_RO.ts +++ b/packages/@uppy/locales/src/ro_RO.ts @@ -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 diff --git a/packages/@uppy/locales/src/ru_RU.ts b/packages/@uppy/locales/src/ru_RU.ts index 778b998fd..42a09adfc 100644 --- a/packages/@uppy/locales/src/ru_RU.ts +++ b/packages/@uppy/locales/src/ru_RU.ts @@ -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 diff --git a/packages/@uppy/locales/src/sk_SK.ts b/packages/@uppy/locales/src/sk_SK.ts index fb20a1917..72cc93b51 100644 --- a/packages/@uppy/locales/src/sk_SK.ts +++ b/packages/@uppy/locales/src/sk_SK.ts @@ -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 diff --git a/packages/@uppy/locales/src/sr_RS_Cyrillic.ts b/packages/@uppy/locales/src/sr_RS_Cyrillic.ts index 1eabf8778..10d9a56fb 100644 --- a/packages/@uppy/locales/src/sr_RS_Cyrillic.ts +++ b/packages/@uppy/locales/src/sr_RS_Cyrillic.ts @@ -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 diff --git a/packages/@uppy/locales/src/sr_RS_Latin.ts b/packages/@uppy/locales/src/sr_RS_Latin.ts index 2b8c0f3ac..02a5df4ff 100644 --- a/packages/@uppy/locales/src/sr_RS_Latin.ts +++ b/packages/@uppy/locales/src/sr_RS_Latin.ts @@ -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 diff --git a/packages/@uppy/locales/src/sv_SE.ts b/packages/@uppy/locales/src/sv_SE.ts index edd85dd22..aa7b4a476 100644 --- a/packages/@uppy/locales/src/sv_SE.ts +++ b/packages/@uppy/locales/src/sv_SE.ts @@ -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 diff --git a/packages/@uppy/locales/src/th_TH.ts b/packages/@uppy/locales/src/th_TH.ts index a4c37a58d..b419dfd32 100644 --- a/packages/@uppy/locales/src/th_TH.ts +++ b/packages/@uppy/locales/src/th_TH.ts @@ -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 diff --git a/packages/@uppy/locales/src/tr_TR.ts b/packages/@uppy/locales/src/tr_TR.ts index 96e7d3d74..53036e2d6 100644 --- a/packages/@uppy/locales/src/tr_TR.ts +++ b/packages/@uppy/locales/src/tr_TR.ts @@ -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 diff --git a/packages/@uppy/locales/src/uk_UA.ts b/packages/@uppy/locales/src/uk_UA.ts index e743e3006..6c874fab9 100644 --- a/packages/@uppy/locales/src/uk_UA.ts +++ b/packages/@uppy/locales/src/uk_UA.ts @@ -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 diff --git a/packages/@uppy/locales/src/uz_UZ.ts b/packages/@uppy/locales/src/uz_UZ.ts index ee39e558d..47b04b4cc 100644 --- a/packages/@uppy/locales/src/uz_UZ.ts +++ b/packages/@uppy/locales/src/uz_UZ.ts @@ -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 diff --git a/packages/@uppy/locales/src/vi_VN.ts b/packages/@uppy/locales/src/vi_VN.ts index 0d08d0491..cbba29e0a 100644 --- a/packages/@uppy/locales/src/vi_VN.ts +++ b/packages/@uppy/locales/src/vi_VN.ts @@ -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 diff --git a/packages/@uppy/locales/src/zh_CN.ts b/packages/@uppy/locales/src/zh_CN.ts index f8e3f8f89..b13cfb887 100644 --- a/packages/@uppy/locales/src/zh_CN.ts +++ b/packages/@uppy/locales/src/zh_CN.ts @@ -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 diff --git a/packages/@uppy/locales/src/zh_TW.ts b/packages/@uppy/locales/src/zh_TW.ts index 167493172..f77af3481 100644 --- a/packages/@uppy/locales/src/zh_TW.ts +++ b/packages/@uppy/locales/src/zh_TW.ts @@ -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