Fix build-languages, for new languages.

This commit is contained in:
John Livingston 2023-06-09 18:07:48 +02:00
parent 84ebfcb4f3
commit df9fb8f9a0
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -37,7 +37,7 @@ class BuildLanguages {
const packagejson = require('./package.json') const packagejson = require('./package.json')
const translations = packagejson.translations || {} const translations = packagejson.translations || {}
this.langs = Object.values(translations).map(filename => { 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) console.log('Existing languages: ', this.langs)
} }