Files
wekan/tests/upcomingTurkishTranslationFill.test.cjs
T
Lauri Ojansivu af1924567b Repair all-tests regressions
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 !
2026-08-25 02:26:22 +03:00

18 lines
870 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
'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');