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-19 23:51:42 +03:00
committed by GitHub
co-authored by Alexandr
parent 0b21b2b542
commit 5de1aa8706
+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;