This commit is contained in:
antelle 2020-06-03 21:31:32 +02:00
parent 4854c0c100
commit dfe2c42172
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
3 changed files with 6 additions and 10 deletions

View File

@ -1,10 +0,0 @@
const fs = require('fs');
const langs = ['de-DE', 'fr-FR'];
for (const lang of langs) {
fs.writeFileSync(
`app/scripts/locales/${lang}.json`,
fs.readFileSync(`../keeweb-plugins/docs/translations/${lang}/${lang}.json`)
);
}

4
util/copy-languages.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
cp ../keeweb-plugins/docs/translations/de-DE/de-DE.json app/scripts/locales/de-DE.json
cp ../keeweb-plugins/docs/translations/fr-FR/fr-FR.json app/scripts/locales/fr-FR.json

View File

@ -1,3 +1,5 @@
#!/bin/sh
./node_modules/.bin/prettier --write \
'app/**/*.js' \
'app/**/*.scss' \