From 6ba84678e767ebc2bd304035a9a8528c61ff46c6 Mon Sep 17 00:00:00 2001 From: Eugene Chybisov Date: Tue, 30 Jul 2024 14:10:30 +0200 Subject: [PATCH] fix: change assert to with --- packages/widget/src/i18n/i18next.d.ts | 2 +- packages/widget/src/i18n/index.ts | 30 +++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/widget/src/i18n/i18next.d.ts b/packages/widget/src/i18n/i18next.d.ts index 7cc174395..f5f90cee5 100644 --- a/packages/widget/src/i18n/i18next.d.ts +++ b/packages/widget/src/i18n/i18next.d.ts @@ -1,4 +1,4 @@ -import en from './en.json' assert { type: 'json' }; +import en from './en.json' with { type: 'json' }; const defaultResource = { translation: en }; diff --git a/packages/widget/src/i18n/index.ts b/packages/widget/src/i18n/index.ts index 36e53e293..327411e19 100644 --- a/packages/widget/src/i18n/index.ts +++ b/packages/widget/src/i18n/index.ts @@ -1,17 +1,17 @@ -import bn from './bn.json' assert { type: 'json' }; -import de from './de.json' assert { type: 'json' }; -import en from './en.json' assert { type: 'json' }; -import es from './es.json' assert { type: 'json' }; -import fr from './fr.json' assert { type: 'json' }; -import id from './id.json' assert { type: 'json' }; -import it from './it.json' assert { type: 'json' }; -import ja from './ja.json' assert { type: 'json' }; -import ko from './ko.json' assert { type: 'json' }; -import pt from './pt.json' assert { type: 'json' }; -import th from './th.json' assert { type: 'json' }; -import tr from './tr.json' assert { type: 'json' }; -import uk from './uk.json' assert { type: 'json' }; -import vi from './vi.json' assert { type: 'json' }; -import zh from './zh.json' assert { type: 'json' }; +import bn from './bn.json' with { type: 'json' }; +import de from './de.json' with { type: 'json' }; +import en from './en.json' with { type: 'json' }; +import es from './es.json' with { type: 'json' }; +import fr from './fr.json' with { type: 'json' }; +import id from './id.json' with { type: 'json' }; +import it from './it.json' with { type: 'json' }; +import ja from './ja.json' with { type: 'json' }; +import ko from './ko.json' with { type: 'json' }; +import pt from './pt.json' with { type: 'json' }; +import th from './th.json' with { type: 'json' }; +import tr from './tr.json' with { type: 'json' }; +import uk from './uk.json' with { type: 'json' }; +import vi from './vi.json' with { type: 'json' }; +import zh from './zh.json' with { type: 'json' }; export { bn, de, en, es, fr, id, it, ja, ko, pt, th, tr, uk, vi, zh };