mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
Fill the final genuine English value in Finnish, both Hindi variants, and both Ukrainian variants through the human-preserving fill workflow. Add focused language and exact-value regression coverage. All five locale files now contain only translated or intentionally invariant values. Thanks to xet7 !
18 lines
730 B
JavaScript
18 lines
730 B
JavaScript
'use strict';
|
|
const assert = require('assert');
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
const ROOT = path.resolve(__dirname, '..');
|
|
const read = code => JSON.parse(fs.readFileSync(path.join(ROOT,
|
|
'imports/i18n/data', `${code}.i18n.json`), 'utf8'));
|
|
assert.strictEqual(read('fi')['color-magenta'], 'purppuranpunainen');
|
|
for (const language of ['hi-IN', 'hi']) {
|
|
const value = read(language)['copy-link-to-clipboard'];
|
|
assert.match(value, /[\u0900-\u097f]/u);
|
|
assert.notStrictEqual(value, 'Copy link to clipboard');
|
|
}
|
|
for (const language of ['uk-UA', 'uk']) {
|
|
assert.strictEqual(read(language).email, 'Електронна пошта');
|
|
}
|
|
console.log('upcomingFinalSingleTranslationFill: 5 tests passed');
|