mirror of
https://github.com/EvolutionAPI/evolution-manager.git
synced 2025-07-13 07:04:50 -06:00
fix: import.meta.globEager
This commit is contained in:
parent
1b40fae7d7
commit
4a1b4c63ba
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "evolution-manager",
|
||||
"description": "Evolution Manager is an open-source interface for managing the Evolution API, simplifying the creation and administration of API instances with advanced features and diverse integrations.",
|
||||
"version": "0.4.7",
|
||||
"version": "0.4.8",
|
||||
"main": "dist",
|
||||
"engines": {
|
||||
"node": ">=16.0.0"
|
||||
|
@ -17,7 +17,7 @@ import { createI18n, useI18n } from 'vue-i18n'
|
||||
// import all files from src/i18n
|
||||
const messages = Object.fromEntries(
|
||||
Object.entries(
|
||||
import.meta.globEager('../i18n/*.js')
|
||||
import.meta.glob('../i18n/*.js', { eager: true })
|
||||
).map(([key, value]) => {
|
||||
const locale = key.match(/([A-Za-z0-9-_]+)\./i)[1]
|
||||
return [locale, value.default]
|
||||
|
Loading…
Reference in New Issue
Block a user