fix: resolve vscode type errors inside I18n class (#4605)

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
Alexandr GarbuzovandAlexandr authored and GitHub committed 2025-10-19 23:51:42 +03:00
1 parent 0b21b2b542
commit 5de1aa8706
1 file changed
+3 -1
+3 -1
View File
@@ -1,3 +1,5 @@
// @ts-check
const FALLBACK_LOCALE = "en"; const FALLBACK_LOCALE = "en";
/** /**
@@ -9,7 +11,7 @@ class I18n {
* *
* @param {Object} options Options. * @param {Object} options Options.
* @param {string=} options.locale Locale. * @param {string=} options.locale Locale.
* @param {Object} options.translations Translations. * @param {any} options.translations Translations.
*/ */
constructor({ locale, translations }) { constructor({ locale, translations }) {
this.locale = locale || FALLBACK_LOCALE; this.locale = locale || FALLBACK_LOCALE;