From df9fb8f9a01583961947a07ac8f9115cd1d5d9d6 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Fri, 9 Jun 2023 18:07:48 +0200 Subject: [PATCH] Fix build-languages, for new languages. --- build-languages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-languages.js b/build-languages.js index 63fdf78a..9f3dc7e5 100644 --- a/build-languages.js +++ b/build-languages.js @@ -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) }