We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b21b2b commit 5de1aa8Copy full SHA for 5de1aa8
src/common/I18n.js
@@ -1,3 +1,5 @@
1
+// @ts-check
2
+
3
const FALLBACK_LOCALE = "en";
4
5
/**
@@ -9,7 +11,7 @@ class I18n {
9
11
*
10
12
* @param {Object} options Options.
13
* @param {string=} options.locale Locale.
- * @param {Object} options.translations Translations.
14
+ * @param {any} options.translations Translations.
15
*/
16
constructor({ locale, translations }) {
17
this.locale = locale || FALLBACK_LOCALE;
0 commit comments