moved locales out of scripts

This commit is contained in:
antelle 2021-05-13 13:05:57 +02:00
parent 9efce05f11
commit 0c143d0491
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
6 changed files with 4 additions and 3 deletions

View File

@ -156,7 +156,7 @@ const SettingsManager = {
if (this.customLocales[loc]) {
localeValues = this.customLocales[loc];
} else {
localeValues = require('../../locales/' + loc + '.json');
localeValues = require('locales/' + loc + '.json');
}
}
if (!this.neutralLocale) {

View File

@ -60,6 +60,7 @@ function config(options) {
hbs: 'handlebars/runtime.js',
'argon2-wasm': 'argon2-browser/dist/argon2.wasm',
templates: path.join(rootDir, 'app/templates'),
locales: path.join(rootDir, 'app/locales'),
'public-key.pem': path.join(rootDir, 'app/resources/public-key.pem'),
'public-key-new.pem': path.join(rootDir, 'app/resources/public-key-new.pem'),
'demo.kdbx': path.join(rootDir, 'app/resources/Demo.kdbx'),

View File

@ -1,4 +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
cp ../keeweb-plugins/docs/translations/de-DE/de-DE.json app/locales/de-DE.json
cp ../keeweb-plugins/docs/translations/fr-FR/fr-FR.json app/locales/fr-FR.json