mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 10:48:06 -05:00
Translate the final four genuine English storage, backup, and project values in both Greek variants through the human-preserving fill workflow. Add focused Greek-script regression coverage. Both Greek locale files now contain only translations and invariant values. Thanks to xet7 !
16 lines
594 B
JavaScript
16 lines
594 B
JavaScript
'use strict';
|
|
const assert = require('assert');
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
const ROOT = path.resolve(__dirname, '..');
|
|
for (const language of ['el', 'el-GR']) {
|
|
const translated = JSON.parse(fs.readFileSync(path.join(ROOT,
|
|
'imports/i18n/data', `${language}.i18n.json`), 'utf8'));
|
|
for (const key of ['azure-connection-string', 'azure-container', 'backup',
|
|
'gcs-project-id']) {
|
|
assert.match(translated[key], /[\u0370-\u03ff]/u);
|
|
}
|
|
assert.notStrictEqual(translated.backup, 'Backup');
|
|
}
|
|
console.log('upcomingGreekTranslationFill: 10 tests passed');
|