mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 10:48:06 -05:00
Use the suite's own Node executable for translation subprocesses, account for the placeholder repair helper and current translation totals, and activate the Table filter after the view-change reload in its browser regression test. Thanks to xet7 !
18 lines
870 B
JavaScript
18 lines
870 B
JavaScript
'use strict';
|
||
const assert = require('assert');
|
||
const childProcess = require('child_process');
|
||
const fs = require('fs');
|
||
const path = require('path');
|
||
const ROOT = path.resolve(__dirname, '..');
|
||
const node = process.execPath;
|
||
const fill = path.join(ROOT, 'releases/translations/fill-translations.mjs');
|
||
assert.deepStrictEqual(JSON.parse(childProcess.execFileSync(node,
|
||
[fill, '--list', 'tr'], { cwd: ROOT, encoding: 'utf8' })), {});
|
||
const translated = JSON.parse(fs.readFileSync(path.join(ROOT,
|
||
'imports/i18n/data/tr.i18n.json'), 'utf8'));
|
||
assert.strictEqual(translated.checklist, 'Kontrol listesi');
|
||
assert.match(translated['api-report-desc'], /uç nokta|sıklıkta/);
|
||
assert.doesNotMatch(translated['office-no-results'], /Nobody|logged in/);
|
||
assert.match(translated['api-no-calls'], /WITH_API=true/);
|
||
console.log('upcomingTurkishTranslationFill: 5 tests passed');
|