@nimpl/i18n 2.0.0-canary.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/loadI18nData.js +2 -2
- package/package.json +1 -1
package/dist/lib/loadI18nData.js
CHANGED
|
@@ -12,7 +12,7 @@ const loadI18nData = async () => {
|
|
|
12
12
|
if (!language || !config.languages.includes(language)) {
|
|
13
13
|
throw new Error(`Can\' load data for language "${language}", valid languages are: ${config.languages.join(", ")}`);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
return { dictionary
|
|
15
|
+
const dictionary = await config.load(language);
|
|
16
|
+
return { dictionary, language };
|
|
17
17
|
};
|
|
18
18
|
exports.default = loadI18nData;
|