From 5de1aa8706efd7f554c19cc0897ad6b869b80856 Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov <186095128+alexandr-garbuzov@users.noreply.github.com> Date: Sun, 19 Oct 2025 23:51:42 +0300 Subject: [PATCH] fix: resolve vscode type errors inside I18n class (#4605) Co-authored-by: Alexandr --- src/common/I18n.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/I18n.js b/src/common/I18n.js index bd5f29fc..75b9c91a 100644 --- a/src/common/I18n.js +++ b/src/common/I18n.js @@ -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;