mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-02 04:00:36 +00:00
translations: add italian sample for testings & fix
This commit is contained in:
parent
47a1605460
commit
d85084c165
1 changed files with 2 additions and 2 deletions
|
|
@ -98,8 +98,8 @@ fs.readdirSync(path.join(__dirname, "/../locales")).forEach(function(file) {
|
||||||
if(file === 'en') return;
|
if(file === 'en') return;
|
||||||
setUpTranslations(file);
|
setUpTranslations(file);
|
||||||
// Merge missing strings from english
|
// Merge missing strings from english
|
||||||
translations[file].server = _.merge(translations.en.server, translations[file].server);
|
_.defaults(translations[file].server, translations.en.server);
|
||||||
translations[file].client = _.merge(translations.en.client, translations[file].client);
|
_.defaults(translations[file].client, translations.en.client);
|
||||||
});
|
});
|
||||||
|
|
||||||
var langCodes = Object.keys(translations);
|
var langCodes = Object.keys(translations);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue