Skip to content

Commit 9915222

Browse files
committed
refactor: cleanup
1 parent be2e227 commit 9915222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function setLanguage({ lang, messages }: LanguageInterface): string {
137137
/**
138138
* It resolves the language file or data, from direct data, require or Promise.
139139
*/
140-
async function resolveLang(callable: Function, lang: string) {
140+
async function resolveLang(callable: Function, lang: string): Promise<LanguageJsonFileInterface> {
141141
const hasPhpTranslations = process.env.LARAVEL_VUE_I18N_HAS_PHP;
142142
const data = callable(lang)
143143

@@ -149,7 +149,7 @@ async function resolveLang(callable: Function, lang: string) {
149149
return new Promise((resolve) => resolve({
150150
default: {
151151
...phpLang,
152-
...jsonLang
152+
...jsonLang,
153153
}
154154
}));
155155
}

0 commit comments

Comments
 (0)