fix: resolve vscode type errors inside I18n class (#4605)
Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
1 parent
0b21b2b542
commit
5de1aa8706
1 file changed
+3
-1
+3
-1
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user