Fix build-languages, for new languages.
This commit is contained in:
parent
84ebfcb4f3
commit
df9fb8f9a0
@ -37,7 +37,7 @@ class BuildLanguages {
|
||||
const packagejson = require('./package.json')
|
||||
const translations = packagejson.translations || {}
|
||||
this.langs = Object.values(translations).map(filename => {
|
||||
return filename.match(/^.*\/(\w+)\.json$/)[1]
|
||||
return filename.match(/^.*\/([a-zA-Z-]+)\.json$/)[1]
|
||||
})
|
||||
console.log('Existing languages: ', this.langs)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user