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

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
Alexandr Garbuzov
2025-10-25 20:31:48 +02:00
committed by martin-mfg
co-authored by Alexandr
parent 0f067f9df7
commit 7cdc5f0dc0
+3 -1
View File
@@ -1,3 +1,5 @@
// @ts-check
const FALLBACK_LOCALE = "en";
/**
@@ -9,7 +11,7 @@ class I18n {
*
* @param {Object} options Options.
* @param {string=} options.locale Locale.
* @param {Object} options.translations Translations.
* @param {any} options.translations Translations.
*/
constructor({ locale, translations }) {
this.locale = locale || FALLBACK_LOCALE;