Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit a5bd7bf

Browse files
committed
fix(locales): change export
1 parent cdfca71 commit a5bd7bf

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

util/locales.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
const fs = require('fs')
2-
const path = require('path')
3-
const resolve = file => path.resolve(__dirname, file)
4-
51
const LOCALE_MAP = {
62
ca: 'Catalan',
73
de: 'German',
@@ -21,8 +17,9 @@ const LOCALE_MAP = {
2117
'zh-Hant': 'Chinese (traditional)'
2218
}
2319

24-
module.exports = fs.readdirSync('node_modules/vuetify/src/locale').map(locale => {
25-
const value = locale.split('.').shift()
26-
27-
return { name: LOCALE_MAP[value], value }
20+
module.exports = Object.keys(LOCALE_MAP).map(key => {
21+
return {
22+
name: LOCALE_MAP[key],
23+
value: key
24+
}
2825
}).sort()

0 commit comments

Comments
 (0)