Skip to content

Commit

Permalink
Update i18n, Update deprecated function, backport epicmaxco/vuestic-a…
Browse files Browse the repository at this point in the history
  • Loading branch information
xbgmsharp committed Jan 24, 2024
1 parent d2ad030 commit 110e8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface LocaleModule {
default: Record<string, string>
}

const fileNameToLocaleModuleDict = import.meta.globEager('./locales/*.json')
const fileNameToLocaleModuleDict = import.meta.glob('./locales/*.json', { eager: true })

const messages: { [P: string]: Record<string, string> } = {}
Object.entries(fileNameToLocaleModuleDict).forEach(([fileName, localeModule]) => {
Expand Down

0 comments on commit 110e8d4

Please sign in to comment.