mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
Fill eleven new Marathi strings without changing existing values. Extend Bengali checks for the concurrently supplied translations and register Bengali and Marathi export-dialog browser cases. Thanks to xet7 !
417 lines
27 KiB
JavaScript
417 lines
27 KiB
JavaScript
// The current Marathi inventory includes pending feature keys. Structural
|
|
// completeness does not certify the quality of every older translation.
|
|
const assert = require('node:assert/strict');
|
|
const fs = require('node:fs');
|
|
const path = require('node:path');
|
|
const { spawnSync } = require('node:child_process');
|
|
|
|
const root = path.resolve(__dirname, '..');
|
|
const fillScript = path.join(root,
|
|
'releases/translations/fill-translations.mjs');
|
|
const result = spawnSync(process.execPath, [fillScript, '--list', 'mr'], {
|
|
cwd: root,
|
|
encoding: 'utf8',
|
|
});
|
|
assert.equal(result.status, 0, result.stderr);
|
|
const remaining = JSON.parse(result.stdout);
|
|
assert.equal(Object.keys(remaining).length, 0);
|
|
|
|
const english = JSON.parse(fs.readFileSync(
|
|
path.join(root, 'imports/i18n/data/en.i18n.json'), 'utf8'));
|
|
const marathi = JSON.parse(fs.readFileSync(
|
|
path.join(root, 'imports/i18n/data/mr.i18n.json'), 'utf8'));
|
|
const tokens = (value) => [...value.matchAll(
|
|
/__[A-Za-z0-9_]+__|%[A-Za-z]|%{[A-Za-z0-9]+}|{{[A-Za-z0-9]+}}/g)]
|
|
.map(([token]) => token).sort();
|
|
const tags = (value) => [...value.matchAll(/<\/?[A-Za-z][^>]*>/g)]
|
|
.map(([tag]) => tag).sort();
|
|
|
|
for (const [key, value] of Object.entries(marathi)) {
|
|
if (value !== english[key]) {
|
|
assert.deepEqual(tokens(value), tokens(english[key]), key);
|
|
}
|
|
assert.deepEqual(tags(value), tags(english[key]), key);
|
|
}
|
|
|
|
assert.equal(marathi.accept, 'स्वीकारा');
|
|
assert.match(marathi.accept, /[\u0900-\u097F]/);
|
|
assert.deepEqual(tokens(marathi['activity-changedTitle']), ['%s', '%s']);
|
|
assert.deepEqual(tokens(marathi['act-deleteCard']),
|
|
['__board__', '__card__', '__list__', '__swimlane__']);
|
|
assert.deepEqual(tokens(marathi['act-removeChecklistItem']),
|
|
['__board__', '__card__', '__checkList__', '__checklistItem__', '__list__',
|
|
'__swimlane__']);
|
|
assert.deepEqual(tokens(marathi['act-setCustomField']),
|
|
['__board__', '__card__', '__customFieldValue__', '__customField__',
|
|
'__list__', '__swimlane__']);
|
|
assert.match(marathi['board-members-same-org-only'], /संस्थेतील/);
|
|
assert.match(marathi['board-members-same-team-only'], /संघातील/);
|
|
assert.deepEqual(tokens(marathi['act-moveCardToOtherBoard']),
|
|
['__board__', '__card__', '__list__', '__oldBoard__', '__oldList__',
|
|
'__oldSwimlane__', '__swimlane__']);
|
|
assert.deepEqual(tokens(marathi['activity-imported']), ['%s', '%s', '%s']);
|
|
assert.deepEqual(tokens(marathi['activity-checklist-completed-card']),
|
|
['__board__', '__card__', '__checklist__', '__list__', '__swimlane__']);
|
|
assert.equal(marathi['allboards.workspaces'], 'कार्यस्थाने');
|
|
assert.match(marathi['allboards.edit-workspace-icon'], /markdown/);
|
|
assert.equal(marathi['workspaceActionsPopup-title'], 'कार्यस्थान सेटिंग्ज');
|
|
assert.deepEqual(tokens(marathi['activity-dueDate']), ['%s', '%s']);
|
|
assert.match(marathi['list-width-error-message'], /किमान 200 पिक्सेलची पूर्णांक संख्या/);
|
|
assert.doesNotMatch(marathi['list-width-error-message'], /270/);
|
|
assert.match(marathi['set-list-width-value'], /पिक्सेल/);
|
|
assert.match(marathi['set-swimlane-height-value'], /पिक्सेल/);
|
|
assert.equal(marathi['add-checklist'], 'तपासणीसूची जोडा');
|
|
assert.deepEqual(tokens(marathi['and-n-other-card']), ['__count__']);
|
|
assert.deepEqual(tokens(marathi['and-n-other-card_plural']), ['__count__']);
|
|
assert.deepEqual(tokens(marathi['avatar-too-big']), ['__size__']);
|
|
assert.match(marathi['board-background-image-url'], /URL/);
|
|
assert.deepEqual(tokens(marathi['board-nb-stars']), ['%s']);
|
|
assert.deepEqual(tags(marathi['board-private-info']),
|
|
['</strong>', '<strong>']);
|
|
assert.deepEqual(tags(marathi['board-public-info']),
|
|
['</strong>', '<strong>']);
|
|
assert.deepEqual(tokens(
|
|
marathi['board-open-and-move-between-remaining-and-workspaces']),
|
|
['__workspaces__']);
|
|
assert.match(marathi['enter-zoom-level'], /50-300%/);
|
|
assert.deepEqual(tokens(marathi['card-comments-title']), ['%s']);
|
|
assert.equal(marathi['card-edit-custom-fields'],
|
|
'सानुकूल क्षेत्रे संपादित करा');
|
|
assert.match(marathi['cardStartPlanningPokerPopup-title'], /Planning Poker/);
|
|
assert.match(marathi['editPokerEndDatePopup-title'], /Planning Poker/);
|
|
assert.equal(marathi['importDependenciesPopup-title'],
|
|
'अवलंबित्वे आयात करा');
|
|
assert.equal(marathi['exportChecklistPopup-title'],
|
|
'तपासणीसूची निर्यात करा');
|
|
assert.equal(marathi['importSwimlanePopup-title'], 'स्विमलेन आयात करा');
|
|
assert.match(marathi.casSignIn, /CAS/);
|
|
assert.equal(marathi['cardType-linkedBoard'], 'जोडलेला फलक');
|
|
assert.match(marathi['map-to-existing-user-desc'],
|
|
/कार्डे.*टिप्पण्या.*क्रियाकलाप/);
|
|
assert.equal(marathi['map-to-existing-user-no-results'],
|
|
'जुळणारे वापरकर्ते सापडले नाहीत.');
|
|
assert.match(marathi['font-preview-text'], /0123456789/);
|
|
assert.equal(marathi['auto-list-width'], 'स्वयंचलित यादी रुंदी');
|
|
assert.match(marathi['card-aging-days'], /3/);
|
|
assert.equal(marathi['move-card-up'], 'कार्ड वर हलवा');
|
|
assert.equal(marathi['color-red'], 'लाल');
|
|
assert.equal(marathi['color-silver'], 'चंदेरी');
|
|
assert.equal(marathi['color-magenta'], 'मॅजेंटा');
|
|
assert.equal(marathi['color-white'], 'पांढरा');
|
|
assert.equal(marathi['read-only'], 'फक्त वाचन');
|
|
assert.equal(marathi.worker, 'कार्यकर्ता');
|
|
const bulkCardExample = JSON.parse(marathi['copyManyCardsPopup-format']);
|
|
assert.deepEqual(Object.keys(bulkCardExample[0]), ['title', 'description']);
|
|
assert.equal(marathi['custom-field-number'], 'संख्या');
|
|
assert.match(marathi['edit-wip-limit'], /WIP/);
|
|
assert.deepEqual(tokens(marathi['email-enrollAccount-text']),
|
|
['__url__', '__user__']);
|
|
assert.deepEqual(tokens(marathi['email-invite-text']),
|
|
['__board__', '__inviter__', '__url__', '__user__']);
|
|
assert.deepEqual(tokens(marathi['email-resetPassword-text']),
|
|
['__url__', '__user__']);
|
|
assert.match(marathi['error-json-malformed'], /JSON/);
|
|
assert.match(marathi['error-csv-schema'], /CSV.*TSV/);
|
|
assert.match(marathi['export-card-pdf'], /PDF/);
|
|
assert.match(marathi['export-card-excel'], /Excel/);
|
|
assert.match(marathi['export-card-field-board-info'],
|
|
/फलक.*यादी.*स्विमलेन/);
|
|
assert.equal(marathi['filter-overdue'], 'मुदत उलटलेले');
|
|
assert.equal(marathi['filter-no-member'], 'सदस्य नाही');
|
|
for (const operator of ['==', '!=', '<=', '>=', '&&', '||', '/Tes.*/i']) {
|
|
assert.match(marathi['advanced-filter-description'],
|
|
new RegExp(operator.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')));
|
|
}
|
|
assert.deepEqual(tokens(marathi['import-board-instruction-issues']),
|
|
['__endpoint__', '__sourceName__']);
|
|
assert.match(marathi['import-board-instruction-excel'], /\.xlsx/);
|
|
assert.match(marathi['import-csv-placeholder'], /CSV\/TSV/);
|
|
assert.match(marathi['import-trello-zip-file-hint'], /\.json.*\.zip/);
|
|
assert.match(marathi['trello-api-key'], /https:\/\/trello\.com\/app-key/);
|
|
assert.match(marathi['trello-api-import-desc'], /API/);
|
|
assert.match(marathi['invalid-year'], /2026/);
|
|
assert.deepEqual(tokens(marathi['label-default']), ['%s']);
|
|
assert.equal(marathi['keyboard-shortcuts'], 'कीबोर्ड शॉर्टकट');
|
|
assert.deepEqual(tokens(marathi['leave-board-pop']), ['__boardTitle__']);
|
|
assert.match(marathi['listImportCardsTsvPopup-title'], /Excel CSV\/TSV/);
|
|
assert.equal(marathi['moveCardToTop-title'], 'शीर्षस्थानी हलवा');
|
|
assert.equal(marathi['multi-selection'], 'बहु-निवड');
|
|
assert.equal(marathi['my-boards'], 'माझे फलक');
|
|
assert.deepEqual(tokens(marathi['page-maybe-private']), ['%s']);
|
|
assert.deepEqual(tags(marathi['page-maybe-private']),
|
|
['</a>', "<a href='%s'>"]);
|
|
assert.deepEqual(tokens(marathi['remove-member-pop']),
|
|
['__boardTitle__', '__name__', '__username__']);
|
|
assert.match(marathi['sandstorm-remove-member-warning'], /Sandstorm/);
|
|
assert.match(marathi['setWipLimitPopup-title'], /WIP/);
|
|
assert.match(marathi['toggle-assignees'], /1-9/);
|
|
assert.match(marathi['toggle-labels'], /1-9/);
|
|
assert.match(marathi['custom-top-left-corner-logo-height'], /27/);
|
|
assert.match(marathi['automatic-linked-url-schemes'], /URL/);
|
|
assert.match(marathi['wipLimitErrorPopup-dialog-pt1'], /WIP/);
|
|
assert.match(marathi['attachment-transfer-limits-title'], /API/);
|
|
assert.match(marathi['smtp-tls-description'], /SMTP.*TLS/);
|
|
assert.deepEqual(tokens(marathi['email-invite-register-text']),
|
|
['__icode__', '__inviter__', '__url__', '__user__']);
|
|
assert.match(marathi['email-smtp-test-subject'], /SMTP/);
|
|
assert.match(marathi.Node_version, /Node/);
|
|
assert.match(marathi.Meteor_version, /Meteor/);
|
|
assert.match(marathi.FerretDB_version, /FerretDB/);
|
|
assert.match(marathi.Reactivity_order, /METEOR_REACTIVITY_ORDER/);
|
|
assert.match(marathi.DDP_transport, /DDP_TRANSPORT/);
|
|
assert.match(marathi.OS_Cpus, /OS CPU/);
|
|
for (const literal of ['a.example.com', 'kanban.example.org',
|
|
'MULTITENANCY=true']) {
|
|
assert.ok(marathi['org-domains-description'].includes(literal),
|
|
`org-domains-description must preserve literal ${literal}`);
|
|
}
|
|
assert.deepEqual(tokens(marathi['default-subtasks-board']), ['__board__']);
|
|
assert.match(marathi['checklist-count-on-minicard'], /0\/0/);
|
|
assert.match(marathi['checklist-count'], /0\/0/);
|
|
assert.equal(marathi['parent-card'], 'पालक कार्ड');
|
|
assert.deepEqual(tokens(marathi['activity-added-label']), ['%s', '%s']);
|
|
assert.deepEqual(tokens(marathi['activity-set-customfield']),
|
|
['%s', '%s', '%s']);
|
|
assert.deepEqual(tokens(marathi['r-w-every-day-at']), ['__time__']);
|
|
assert.deepEqual(tokens(marathi['r-import-done']), ['__count__']);
|
|
assert.match(marathi['r-import-paste'], /JSON.*CSV.*Trello Butler/);
|
|
assert.equal(marathi['r-all-boards'], 'सर्व फलक');
|
|
assert.match(marathi['r-import-workflow-note'], /n8n.*Node-RED.*WeKan/);
|
|
assert.deepEqual(tokens(marathi['r-import-unmapped']), ['__count__']);
|
|
assert.match(marathi['r-schedule-weekday'], /सोम–शुक्र/);
|
|
assert.match(marathi['r-for-n-days'], /N/);
|
|
assert.equal(marathi['r-unit-weeks'], 'आठवडे');
|
|
assert.equal(marathi['r-the-board'], 'फलक');
|
|
assert.equal(marathi['r-list'], 'यादी');
|
|
assert.equal(marathi['r-unarchive'], 'संग्रहातून पुनर्संचयित करा');
|
|
assert.equal(marathi['r-checklist'], 'तपासणीसूची');
|
|
assert.equal(marathi['r-d-send-email'], 'ईमेल पाठवा');
|
|
assert.match(marathi['r-items-list'], /घटक1,घटक2,घटक3/);
|
|
assert.match(marathi['r-checklist-note'], /स्वल्पविरामाने विभक्त/);
|
|
assert.match(marathi['custom-head-meta-tags'], /HTML/);
|
|
assert.match(marathi['custom-head-manifest-content'], /JSON/);
|
|
assert.match(marathi['custom-assetlinks-enabled'], /assetlinks\.json/);
|
|
assert.deepEqual(tags(marathi['add-custom-html-after-body-start']), ['<body>']);
|
|
assert.deepEqual(tags(marathi['add-custom-html-before-body-end']), ['</body>']);
|
|
assert.match(marathi['oidc-button-text'], /OIDC/);
|
|
assert.deepEqual(tokens(marathi['act-a-dueAt']),
|
|
['__card__', '__timeOldValue__', '__timeValue__']);
|
|
assert.deepEqual(tokens(marathi['act-atUserComment']),
|
|
['__board__', '__card__', '__comment__', '__list__', '__swimlane__']);
|
|
for (const literal of ['Enter', 'Shift+Enter', 'Ctrl/Cmd+Enter']) {
|
|
assert.ok(marathi['submit-on-enter-description'].includes(literal));
|
|
}
|
|
assert.equal(marathi['roles-status-role'], 'भूमिका');
|
|
assert.equal(marathi.monday, 'सोमवार');
|
|
assert.equal(marathi.sunday, 'रविवार');
|
|
assert.match(marathi['invalid-domain'], /example\.com/);
|
|
assert.equal(marathi['globalSearchViewChange-choice-me'], 'माझी कार्डे');
|
|
for (const key of ['board-title-not-found', 'swimlane-title-not-found',
|
|
'list-title-not-found', 'label-not-found', 'label-color-not-found']) {
|
|
assert.deepEqual(tokens(marathi[key]), ['%s']);
|
|
}
|
|
assert.deepEqual(tokens(marathi['n-n-of-n-cards-found']),
|
|
['__end__', '__start__', '__total__']);
|
|
assert.equal(marathi['operator-board'], 'फलक');
|
|
assert.equal(marathi['operator-customfield'], 'सानुकूल क्षेत्र');
|
|
assert.equal(marathi['predicate-overdue'], 'मुदत उलटलेले');
|
|
assert.equal(marathi['predicate-quarter'], 'तिमाही');
|
|
assert.deepEqual(tokens(marathi['operator-number-expected']),
|
|
['__operator__', '__value__']);
|
|
assert.deepEqual(tokens(marathi['globalSearch-instructions-operator-has']),
|
|
['__operator_has__', '__predicate_assignee__', '__predicate_attachment__',
|
|
'__predicate_checklist__', '__predicate_description__', '__predicate_due__',
|
|
'__predicate_end__', '__predicate_member__', '__predicate_start__']);
|
|
assert.deepEqual(tokens(marathi['globalSearch-instructions-notes-3-2']),
|
|
['__predicate_month__', '__predicate_quarter__', '__predicate_week__',
|
|
'__predicate_year__']);
|
|
assert.match(marathi['sort-boards-title-asc'], /A → Z/);
|
|
assert.match(marathi['import-dependencies-file'], /JSON.*SVG/);
|
|
assert.deepEqual(tokens(marathi['import-dependencies-done']),
|
|
['__imported__', '__unmatched__']);
|
|
assert.deepEqual(tokens(marathi['background-too-big']), ['{{size}}']);
|
|
assert.equal(marathi.location, 'स्थान');
|
|
assert.ok(marathi['server-error-troubleshooting'].includes(
|
|
'sudo snap logs wekan.wekan'));
|
|
assert.ok(marathi['server-error-troubleshooting'].includes(
|
|
'sudo docker logs wekan-app'));
|
|
assert.deepEqual(tokens(marathi['custom-field-stringtemplate-format']),
|
|
['%{value}']);
|
|
assert.match(marathi['custom-field-stringtemplate-separator'], / .* /);
|
|
assert.match(marathi['office-report-desc'], /IPv4.*IPv6/);
|
|
assert.match(marathi['api-report-desc'], /REST API/);
|
|
assert.match(marathi['api-no-calls'], /WITH_API=true/);
|
|
assert.match(marathi['recovery-report-desc'], /MongoDB/);
|
|
assert.match(marathi['Cube-Grid'], /Cube-Grid/);
|
|
assert.match(marathi['carbon-copy'], /Cc:/);
|
|
assert.match(marathi.Node_heap_malloced_memory, /Node.*malloc/);
|
|
assert.match(marathi.Node_memory_usage_rss, /Node.*resident set/);
|
|
assert.match(marathi['custom-legal-notice-link-url'], /URL/);
|
|
assert.equal(marathi['originOrder'], 'मूळ क्रम');
|
|
assert.match(marathi['attachment-move-storage-gridfs'], /GridFS/);
|
|
assert.match(marathi['attachment-move-storage-s3'], /S3/);
|
|
assert.match(marathi['move-all-attachments-of-board-to-gridfs'], /GridFS/);
|
|
assert.match(marathi['move-all-attachments-of-board-to-s3'], /S3/);
|
|
assert.match(marathi['attachment-repair-locations-description'], /GridFS/);
|
|
assert.match(marathi['gridfs-file-id'], /GridFS.*ID/);
|
|
assert.match(marathi['mongodb-compact-warning'], /Meteor/);
|
|
assert.match(marathi['mongodb-compact-run'], /MongoDB Compact/);
|
|
assert.deepEqual(tokens(marathi['drag-board-to-workspace']),
|
|
['__workspaces__']);
|
|
assert.match(marathi['preview-pdf-not-supported'], /PDF/);
|
|
assert.match(marathi['show-week-of-year'], /ISO 8601/);
|
|
assert.match(marathi['import-board-zip'], /JSON.*\.zip/);
|
|
assert.equal(marathi.accessibility, 'प्रवेशयोग्यता');
|
|
assert.match(marathi['accounts-lockout-settings'], /ब्रूट फोर्स/);
|
|
assert.match(marathi['accounts-lockout-period'], /सेकंद/);
|
|
assert.equal(marathi['admin-people-filter-active'], 'सक्रिय');
|
|
assert.match(marathi['attachment-storage-configuration'], /संलग्नक/);
|
|
assert.match(marathi['board-backup-scheduled'], /बॅकअप/);
|
|
assert.deepEqual(tokens(marathi['database-migration-confirm']), ['__db__']);
|
|
for (const literal of ['mongodb://127.0.0.1:27018',
|
|
'mongodb://127.0.0.1:27019', 'WEKAN_FERRETDB_URL', 'WEKAN_MONGODB_URL',
|
|
'MONGO_URL']) {
|
|
assert.ok(marathi['database-migration-description'].includes(literal));
|
|
}
|
|
assert.match(marathi['sandstorm-migration-description'],
|
|
/files\/attachments.*files\/avatars/);
|
|
for (const literal of ['CARDS_LOADING', 'CARDS_LOADING_LAZY_THRESHOLD']) {
|
|
assert.ok(marathi['cards-loading-description'].includes(literal));
|
|
}
|
|
assert.deepEqual(tags(marathi['render-links-as-plain-text-description']),
|
|
['<a href>']);
|
|
assert.match(marathi['always-show-code-as-text-description'], /<!-- -->/);
|
|
assert.match(marathi['backup-description'],
|
|
/backup\/YYYY\/MM\/DD\/HH_MM_SS\/backup\.zip/);
|
|
assert.match(marathi['backup-time'], /HH:MM/);
|
|
assert.match(marathi['backup-day-of-month'], /1-28/);
|
|
assert.match(marathi['gcs-permissions-note'], /client_email/);
|
|
assert.match(marathi['gcs-credentials-menu-path'], /IAM & Admin/);
|
|
assert.match(marathi['attachment-move-storage-azure'], /Azure Blob Storage/);
|
|
assert.match(marathi['attachment-move-storage-gcs'], /Google Cloud Storage/);
|
|
assert.match(marathi['gridfs-enabled-description'], /MongoDB GridFS/);
|
|
assert.match(marathi['gridfs-move-collectionfs-note'], /CollectionFS/);
|
|
assert.match(marathi['s3-region-description'], /us-east-1/);
|
|
assert.match(marathi['s3-ssl-enabled-description'], /SSL\/TLS/);
|
|
for (const key of ['restore-lost-cards-migration-description',
|
|
'restore-all-archived-migration-description',
|
|
'run-restore-lost-cards-migration-confirm']) {
|
|
assert.match(marathi[key], /swimlaneId/);
|
|
assert.match(marathi[key], /listId/);
|
|
}
|
|
assert.match(marathi['fix-avatar-urls-migration'], /URL/);
|
|
assert.match(marathi['step-fix-attachment-urls'], /URL/);
|
|
assert.match(marathi['step-fix-missing-ids'], /ID/);
|
|
assert.match(marathi['cpu-cores'], /CPU/);
|
|
assert.match(marathi['gridfs-attachments'], /GridFS/);
|
|
assert.match(marathi['every-30-minutes'], /30/);
|
|
assert.match(marathi['migrate-all-to-gridfs'], /GridFS/);
|
|
assert.match(marathi['migrate-all-to-s3'], /S3/);
|
|
assert.match(marathi['migration-batch-size-description'], /1-100/);
|
|
assert.match(marathi['migration-cpu-threshold-description'], /10-90/);
|
|
assert.match(marathi['migration-delay-ms-description'], /100-10000/);
|
|
assert.match(marathi.otp, /OTP/);
|
|
assert.match(marathi['api-endpoints'], /API/);
|
|
assert.deepEqual(tokens(marathi['repair-broken-cards-done']), ['__fixed__']);
|
|
assert.deepEqual(tokens(marathi['repair-broken-cards-done-unfixable']),
|
|
['__fixed__', '__unfixable__']);
|
|
assert.match(marathi['cpu-usage-current'], /CPU/);
|
|
assert.match(marathi['event-ip'], /IP/);
|
|
assert.match(marathi['event-ipv4'], /IPv4/);
|
|
assert.match(marathi['event-ipv6'], /IPv6/);
|
|
assert.deepEqual(tokens(marathi['globalSearch-instructions-operator-number']),
|
|
['__operator_number__']);
|
|
assert.deepEqual(tags(marathi['globalSearch-instructions-operator-number']),
|
|
['<number>', '<number>']);
|
|
for (const key of ['import-here-instruction', 'import-wekan-file']) {
|
|
assert.match(marathi[key], /\.json/);
|
|
assert.match(marathi[key], /\.zip/);
|
|
}
|
|
|
|
console.log('Marathi translation progress checks passed.');
|
|
|
|
// Meaning checks for the newly filled decision and import messages.
|
|
assert.match(marathi['field-link-not-allowed'], /दोन्ही कार्डे संपादित करण्याची परवानगी/);
|
|
assert.match(marathi['custom-field-links-hint'], /समान नावाची व प्रकाराची/);
|
|
assert.match(marathi['custom-field-links-hint'], /फक्त एका कार्डवर असलेली क्षेत्रे बदलत नाहीत/);
|
|
assert.match(marathi['custom-field-link-send'], /या कार्डवरील बदल मुख्य कार्डवर जातात/);
|
|
assert.match(marathi['custom-field-link-receives'], /त्या कार्डवरील बदल या कार्डवर येतात/);
|
|
assert.match(marathi['read-only-field'], /सर्व सदस्य.*फक्त फलकाचे प्रशासक/);
|
|
assert.match(marathi['webhook-payload-description'], /वरच्या स्तरावरून मिळालेली सेटिंग/);
|
|
assert.match(marathi['notification-delivery-quiet'], /ती संपेपर्यंत थांबा/);
|
|
assert.match(marathi['stuck-sync-operation-discard-confirm'], /आधी लागू केलेले बदल राहतील/);
|
|
assert.match(marathi['stuck-sync-operation-discard-confirm'], /उरलेले कधीही लिहिले जाणार नाहीत/);
|
|
assert.match(marathi['stuck-sync-operation-replayable'], /आपोआप पूर्ण होईल.*रद्द केली नाही/);
|
|
assert.match(marathi['interrupted-import-description'], /स्रोत फाइल ठेवली जात नसल्याने/);
|
|
assert.match(marathi['interrupted-import-description'], /त्यानंतर जोडलेल्या गोष्टींसह/);
|
|
assert.match(marathi['interrupted-import-keep-confirm'], /काहीही काढले जाणार नाही/);
|
|
assert.match(marathi['interrupted-import-discard-confirm'], /कायमचे काढले जाईल/);
|
|
assert.match(marathi['interrupted-import-foreign-board'], /हात लावला नाही/);
|
|
for (const key of ['interrupted-import-truncated', 'stuck-sync-operation-truncated']) {
|
|
assert.match(marathi[key], /सर्वांत जुन्या 50/);
|
|
}
|
|
for (const key of ['taiga', 'vikunja', 'notion']) {
|
|
assert.match(marathi['import-board-instruction-' + key], /संलग्नके आयात होत नाहीत/);
|
|
}
|
|
assert.match(marathi['import-board-instruction-quire'], /टिप्पण्या व संलग्नके नसतात/);
|
|
assert.match(marathi['import-board-instruction-plane'], /वर्णने व संलग्नके नसतात/);
|
|
for (const key of ['nullboard', 'kanri']) assert.match(marathi['import-board-instruction-' + key], /पहिला फलक आयात/);
|
|
for (const token of ['TODO', 'DONE', 'SCHEDULED', 'DEADLINE', 'CLOSED']) {
|
|
assert.ok(marathi['import-board-instruction-orgmode'].includes(token));
|
|
}
|
|
for (const token of ['Tasklist', 'Task', 'Description', 'Assign to', 'Start date',
|
|
'Due date', 'Priority', 'Estimated time', 'Tags', 'Status', '--', '##', '>>']) {
|
|
assert.ok(marathi['import-board-instruction-teamwork'].includes(token));
|
|
}
|
|
assert.match(marathi['import-board-instruction-businessmap'], /शीर्षकांची ओळ इंग्रजीत/);
|
|
assert.match(marathi['import-board-instruction-redmine'], /भाषा English/);
|
|
assert.match(marathi['import-many-boards-hint'], /सदस्यांची जुळवणी न करता/);
|
|
assert.match(marathi['import-many-boards-hint'], /वरील क्षेत्राऐवजी/);
|
|
assert.match(marathi['r-wrike-workflow-note'], /Completed किंवा Cancelled.*पूर्ण.*Active किंवा Deferred.*अपूर्ण/);
|
|
for (const token of ['GET /workflows', 'JSON']) assert.ok(marathi['r-wrike-workflow-note'].includes(token));
|
|
for (const token of ['LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS', 'LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED']) {
|
|
assert.ok(marathi['ldap-sync-now-nothing'].includes(token));
|
|
}
|
|
for (const token of ['{number}', '{identifier}', ' = ', 'https://tracker.example.com/{identifier}/{number}']) {
|
|
assert.ok(marathi['external-link-rules-description'].includes(token));
|
|
}
|
|
assert.ok(marathi['webhook-payload-field-standard'].includes('WEBHOOKS_ATTRIBUTES'));
|
|
assert.match(marathi['login-setting-env-only'], /फक्त सर्व्हरच्या वातावरणातून.*केवळ वाचनासाठी/);
|
|
assert.match(marathi['scrum-import-into-board-hint'], /प्रती तयार होत नाहीत/);
|
|
assert.match(marathi['scrum-import-into-board-hint'], /न जुळलेली कार्डे.*बदल न करता/);
|
|
assert.match(marathi['scrum-import-card-on-another-board'], /बदल न करता/);
|
|
assert.match(marathi['scrum-import-sprint-finished'], /पूर्ण झालेल्या स्प्रिंटमध्ये हलवले नाही/);
|
|
assert.match(marathi['sync-planning-hint'], /Scrum सुरू असेल तेव्हाच/);
|
|
assert.match(marathi['sync-planning-hint'], /पहिल्या समक्रमणात नियोजन कधीही काढले जात नाही/);
|
|
assert.match(marathi['scrum-history-checkpoint-hint'], /कोणीही त्या नोंदी बदललेल्या नसतील तेव्हाच/);
|
|
assert.match(marathi['scrum-history-checkpoint-hint'], /कोणतीही नोंद बदलत नाही/);
|
|
assert.match(marathi['scrum-history-checkpoint-ask-admin'], /फलकाचा प्रशासक/);
|
|
assert.notEqual(marathi['scrum-history-checkpoint-rollback'], marathi['scrum-history-checkpoint-discard']);
|
|
|
|
(async () => {
|
|
const { translationTokens } = await import('../releases/translations/placeholder-tokens.mjs');
|
|
assert.deepEqual(Object.keys(marathi), Object.keys(english));
|
|
for (const key of Object.keys(english)) {
|
|
assert.deepEqual(translationTokens(marathi[key]), translationTokens(english[key]), key);
|
|
}
|
|
const i18n = require('i18next').createInstance();
|
|
await i18n.init({ lng: 'mr', fallbackLng: 'en', initImmediate: false,
|
|
interpolation: { prefix: '__', suffix: '__', escapeValue: false },
|
|
resources: { en: { translation: english }, mr: { translation: marathi } } });
|
|
assert.equal(i18n.t('notification-group-card', { count: 3, card: 'चाचणी' }), 'चाचणी कार्डवर 3 सूचना');
|
|
assert.equal(i18n.t('stuck-sync-operation-applied', { applied: 0, total: 2 }), '2 पैकी 0 बदल लागू झाले');
|
|
assert.equal(i18n.t('interrupted-import-state-failed', { stage: 'createCards', error: 'E_TEST' }), 'createCards येथे E_TEST मुळे अयशस्वी झाली');
|
|
assert.equal(i18n.t('scrum-history-checkpoint-counts', { applied: 1, total: 3, pending: 2, conflicted: 1 }),
|
|
'3 पैकी 1 बदल लिहिले, 2 लिहिले नाहीत आणि 1 मध्ये त्यानंतर दुसऱ्या व्यक्तीने बदल केले.');
|
|
console.log('Marathi current fills: full inventory, tokens, recovery meanings and runtime interpolation pass');
|
|
})().catch(error => { console.error(error); process.exitCode = 1; });
|
|
|
|
// Preserve export direction and permission-state meaning in the new API dialog.
|
|
assert.ok(marathi['trello-export-desc'].includes('Swimlane: …'));
|
|
assert.match(marathi['trello-export-desc'], /API की आणि टोकन/);
|
|
assert.match(marathi['trello-export-desc'], /पुन्हा स्विमलेनमध्ये/);
|
|
assert.match(marathi['trello-export-warnings'], /सर्व काही.*आले नाही/);
|
|
assert.match(marathi['sandstorm-trello-access-needed'], /स्वतःचा इंटरनेट प्रवेश नसतो/);
|
|
assert.match(marathi['sandstorm-trello-access-needed'], /आधी.*परवानगी द्या/);
|
|
assert.match(marathi['sandstorm-trello-access-granted'], /जोडू शकतो/);
|