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 be2e227 commit 9915222Copy full SHA for 9915222
src/index.ts
@@ -137,7 +137,7 @@ function setLanguage({ lang, messages }: LanguageInterface): string {
137
/**
138
* It resolves the language file or data, from direct data, require or Promise.
139
*/
140
-async function resolveLang(callable: Function, lang: string) {
+async function resolveLang(callable: Function, lang: string): Promise<LanguageJsonFileInterface> {
141
const hasPhpTranslations = process.env.LARAVEL_VUE_I18N_HAS_PHP;
142
const data = callable(lang)
143
@@ -149,7 +149,7 @@ async function resolveLang(callable: Function, lang: string) {
149
return new Promise((resolve) => resolve({
150
default: {
151
...phpLang,
152
- ...jsonLang
+ ...jsonLang,
153
}
154
}));
155
0 commit comments