Files
wekan/tests/malayalamTranslationProgress.test.cjs
T
Lauri Ojansivu 0ae7f04e55 Fill Malayalam feature strings and correct rule linking-verb insertion
Translate 223 current placeholders and thirteen exempt labels, preserving existing non-English values. Cover Scrum import matching, first-sync preservation, conflicts and recovery consequences. Omit the redundant linking verb before already inflected Malayalam predicates and share the Kannada/Malayalam browser check.

Six focused suites and exact source-token checks pass. Nine Malayalam browser cases register; execution and broader native wording review remain open.

Thanks to xet7 !
2026-10-13 15:05:33 +03:00

431 lines
32 KiB
JavaScript

// Check the full current Malayalam fill list, including pending features.
// Structural completion does not certify all existing wording.
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', 'ml'], {
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 malayalam = JSON.parse(fs.readFileSync(
path.join(root, 'imports/i18n/data/ml.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(malayalam)) {
if (value !== english[key]) {
assert.deepEqual(tokens(value), tokens(english[key]), key);
}
assert.deepEqual(tags(value), tags(english[key]), key);
}
assert.equal(malayalam.accept, 'സ്വീകരിക്കുക');
assert.match(malayalam.accept, /[\u0D00-\u0D7F]/);
assert.deepEqual(tokens(malayalam['activity-changedTitle']), ['%s', '%s']);
assert.deepEqual(tokens(malayalam['act-deleteCard']),
['__board__', '__card__', '__list__', '__swimlane__']);
assert.match(malayalam['board-members-same-org-only'], /സംഘടന/);
assert.match(malayalam['board-members-same-team-only'], /ടീമ/);
assert.deepEqual(tokens(malayalam['act-removeChecklistItem']),
['__board__', '__card__', '__checkList__', '__checklistItem__', '__list__',
'__swimlane__']);
assert.deepEqual(tokens(malayalam['act-setCustomField']),
['__board__', '__card__', '__customFieldValue__', '__customField__',
'__list__', '__swimlane__']);
assert.match(malayalam['act-archivedBoard'], /ആർക്കൈവ/);
assert.deepEqual(tokens(malayalam['act-moveCardToOtherBoard']),
['__board__', '__card__', '__list__', '__oldBoard__', '__oldList__',
'__oldSwimlane__', '__swimlane__']);
assert.deepEqual(tokens(malayalam['activity-imported']),
['%s', '%s', '%s']);
assert.deepEqual(tokens(malayalam['activity-checklist-completed-card']),
['__board__', '__card__', '__checklist__', '__list__', '__swimlane__']);
assert.equal(malayalam['allboards.workspaces'], 'പ്രവർത്തനസ്ഥലങ്ങൾ');
assert.match(malayalam['allboards.edit-workspace-icon'], /markdown/);
assert.equal(malayalam['workspaceActionsPopup-title'],
'പ്രവർത്തനസ്ഥല ക്രമീകരണങ്ങൾ');
assert.deepEqual(tokens(malayalam['activity-dueDate']), ['%s', '%s']);
assert.match(malayalam['list-width-error-message'], /കുറഞ്ഞത് 200 പിക്സൽ.*പൂർണ്ണസംഖ്യ/);
assert.doesNotMatch(malayalam['list-width-error-message'], /270/);
assert.match(malayalam['set-list-width-value'], /പിക്സൽ/);
assert.match(malayalam['set-swimlane-height-value'], /പിക്സൽ/);
assert.equal(malayalam['add-checklist'], 'ചെക്ക്‌ലിസ്റ്റ് ചേർക്കുക');
assert.deepEqual(tokens(malayalam['and-n-other-card']), ['__count__']);
assert.deepEqual(tokens(malayalam['and-n-other-card_plural']), ['__count__']);
assert.deepEqual(tokens(malayalam['avatar-too-big']), ['__size__']);
assert.match(malayalam['board-background-image-url'], /URL/);
assert.deepEqual(tokens(malayalam['board-nb-stars']), ['%s']);
assert.deepEqual(tags(malayalam['board-private-info']),
['</strong>', '<strong>']);
assert.deepEqual(tags(malayalam['board-public-info']),
['</strong>', '<strong>']);
assert.deepEqual(tokens(
malayalam['board-open-and-move-between-remaining-and-workspaces']),
['__workspaces__']);
assert.match(malayalam['enter-zoom-level'], /50-300%/);
assert.deepEqual(tokens(malayalam['card-comments-title']), ['%s']);
assert.equal(malayalam['card-edit-custom-fields'],
'ഇഷ്ടാനുസൃത ഫീൽഡുകൾ തിരുത്തുക');
assert.match(malayalam['cardStartPlanningPokerPopup-title'],
/Planning Poker/);
assert.match(malayalam['editPokerEndDatePopup-title'], /Planning Poker/);
assert.equal(malayalam['importDependenciesPopup-title'],
'ആശ്രിതത്വങ്ങൾ ഇറക്കുമതി ചെയ്യുക');
assert.equal(malayalam['exportChecklistPopup-title'],
'ചെക്ക്‌ലിസ്റ്റ് കയറ്റുമതി ചെയ്യുക');
assert.equal(malayalam['importSwimlanePopup-title'],
'സ്വിംലെയിൻ ഇറക്കുമതി ചെയ്യുക');
assert.match(malayalam.casSignIn, /CAS/);
assert.equal(malayalam['cardType-linkedBoard'], 'ബന്ധിപ്പിച്ച ബോർഡ്');
assert.match(malayalam['map-to-existing-user-desc'],
/കാർഡുകളും.*അഭിപ്രായങ്ങളും.*പ്രവർത്തനവും/);
assert.equal(malayalam['map-to-existing-user-no-results'],
'പൊരുത്തപ്പെടുന്ന ഉപയോക്താക്കളെ കണ്ടെത്തിയില്ല.');
assert.match(malayalam['font-preview-text'], /0123456789/);
assert.equal(malayalam['auto-list-width'],
'പട്ടികയുടെ സ്വയമേവയുള്ള വീതി');
assert.match(malayalam['card-aging-days'], /3/);
assert.equal(malayalam['move-card-up'], 'കാർഡ് മുകളിലേക്ക് മാറ്റുക');
assert.equal(malayalam['color-red'], 'ചുവപ്പ്');
assert.equal(malayalam['color-silver'], 'വെള്ളിനിറം');
assert.equal(malayalam['color-magenta'], 'മജന്ത');
assert.equal(malayalam['color-white'], 'വെള്ള');
assert.equal(malayalam['read-only'], 'വായിക്കാൻ മാത്രം');
assert.equal(malayalam.worker, 'തൊഴിലാളി');
assert.deepEqual(tokens(malayalam['drag-board-to-workspace']),
['__workspaces__']);
assert.match(malayalam['preview-pdf-not-supported'], /PDF/);
assert.match(malayalam['show-week-of-year'], /ISO 8601/);
assert.match(malayalam['import-board-zip'], /JSON/);
assert.match(malayalam['import-board-zip'], /\.zip/);
assert.equal(malayalam.accessibility, 'പ്രാപ്യത');
assert.match(malayalam['accounts-lockout-settings'], /ബ്രൂട്ട് ഫോഴ്‌സ്/);
assert.match(malayalam['accounts-lockout-period'], /സെക്കൻഡുകൾ/);
assert.equal(malayalam['admin-people-filter-active'], 'സജീവം');
assert.match(malayalam['attachment-storage-configuration'], /അറ്റാച്ച്മെന്റ്/);
assert.match(malayalam['board-backup-scheduled'], /ബാക്കപ്പ്/);
assert.deepEqual(tokens(malayalam['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.match(malayalam['database-migration-description'],
new RegExp(literal.replaceAll('.', '\\.')));
}
assert.match(malayalam['sandstorm-migration-description'],
/files\/attachments/);
assert.match(malayalam['sandstorm-migration-description'], /files\/avatars/);
for (const literal of ['CARDS_LOADING', 'CARDS_LOADING_LAZY_THRESHOLD']) {
assert.match(malayalam['cards-loading-description'], new RegExp(literal));
}
assert.deepEqual(tags(malayalam['render-links-as-plain-text-description']),
['<a href>']);
assert.match(malayalam['always-show-code-as-text-description'], /<!-- -->/);
assert.match(malayalam['backup-description'],
/backup\/YYYY\/MM\/DD\/HH_MM_SS\/backup\.zip/);
assert.match(malayalam['backup-time'], /HH:MM/);
assert.match(malayalam['backup-day-of-month'], /1-28/);
assert.match(malayalam['gcs-permissions-note'], /client_email/);
assert.match(malayalam['gcs-credentials-menu-path'], /IAM & Admin/);
assert.match(malayalam['attachment-move-storage-azure'],
/Azure Blob Storage/);
assert.match(malayalam['attachment-move-storage-gcs'],
/Google Cloud Storage/);
assert.match(malayalam['gridfs-enabled-description'], /MongoDB GridFS/);
assert.match(malayalam['gridfs-move-collectionfs-note'], /CollectionFS/);
assert.match(malayalam['s3-region-description'], /us-east-1/);
assert.match(malayalam['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(malayalam[key], /swimlaneId/);
assert.match(malayalam[key], /listId/);
}
assert.match(malayalam['fix-avatar-urls-migration'], /URL/);
assert.match(malayalam['step-fix-attachment-urls'], /URL/);
assert.match(malayalam['step-fix-missing-ids'], /ID/);
assert.match(malayalam['cpu-cores'], /CPU/);
assert.match(malayalam['gridfs-attachments'], /GridFS/);
assert.match(malayalam['every-30-minutes'], /30/);
assert.match(malayalam['migrate-all-to-gridfs'], /GridFS/);
assert.match(malayalam['migrate-all-to-s3'], /S3/);
assert.match(malayalam['migration-batch-size-description'], /1-100/);
assert.match(malayalam['migration-cpu-threshold-description'], /10-90/);
assert.match(malayalam['migration-delay-ms-description'], /100-10000/);
assert.match(malayalam.otp, /OTP/);
assert.match(malayalam['api-endpoints'], /API/);
assert.deepEqual(tokens(malayalam['repair-broken-cards-done']), ['__fixed__']);
assert.deepEqual(tokens(malayalam['repair-broken-cards-done-unfixable']),
['__fixed__', '__unfixable__']);
assert.match(malayalam['cpu-usage-current'], /CPU/);
assert.match(malayalam['event-ip'], /IP/);
assert.match(malayalam['event-ipv4'], /IPv4/);
assert.match(malayalam['event-ipv6'], /IPv6/);
assert.deepEqual(tokens(malayalam['globalSearch-instructions-operator-number']),
['__operator_number__']);
assert.deepEqual(tags(malayalam['globalSearch-instructions-operator-number']),
['<number>', '<number>']);
assert.match(malayalam['import-wekan-file'], /\.json.*\.zip/);
const bulkCardExample = JSON.parse(malayalam['copyManyCardsPopup-format']);
assert.deepEqual(Object.keys(bulkCardExample[0]), ['title', 'description']);
assert.equal(malayalam['custom-field-number'], 'സംഖ്യ');
assert.match(malayalam['edit-wip-limit'], /WIP/);
assert.deepEqual(tokens(malayalam['email-enrollAccount-text']),
['__url__', '__user__']);
assert.deepEqual(tokens(malayalam['email-invite-text']),
['__board__', '__inviter__', '__url__', '__user__']);
assert.deepEqual(tokens(malayalam['email-verifyEmail-text']),
['__url__', '__user__']);
assert.match(malayalam['error-import-empty-board'], /WeKan/);
assert.match(malayalam['error-csv-schema'], /CSV.*TSV/);
assert.equal(malayalam['export-card-pdf'],
'കാർഡ് PDF ആയി കയറ്റുമതി ചെയ്യുക');
assert.match(malayalam['export-card-excel-fields'], /Excel/);
assert.match(malayalam['export-card-excel-no-disk-space'], /Excel/);
assert.equal(malayalam['filter-due-tomorrow'], 'നാളെ അവസാനിക്കുന്നു');
assert.equal(malayalam['filter-no-member'], 'അംഗമില്ല');
assert.equal(malayalam['filter-assignee-label'],
'ചുമതലപ്പെടുത്തിയ വ്യക്തി പ്രകാരം ഫിൽട്ടർ ചെയ്യുക');
assert.match(malayalam['advanced-filter-description'],
/== != <= >= && \|\| \( \).*Field1 == Value1/);
assert.deepEqual(tokens(malayalam['import-board-instruction-issues']),
['__endpoint__', '__sourceName__']);
assert.match(malayalam['import-board-instruction-kanboard'], /Kanboard/);
assert.match(malayalam['import-board-instruction-openproject'], /OpenProject/);
assert.match(malayalam['import-board-instruction-trello'], /Trello/);
assert.match(malayalam['import-board-instruction-csv'], /CSV.*TSV/);
assert.equal(malayalam['import-trello-zip-progress'],
'.zip-ൽ നിന്ന് ബോർഡുകൾ ഇറക്കുമതി ചെയ്യുന്നു, ദയവായി കാത്തിരിക്കുക…');
assert.match(malayalam['trello-api-key'], /Trello API.*https:\/\/trello\.com\/app-key/);
assert.equal(malayalam['trello-import-selected'],
'തിരഞ്ഞെടുത്ത ബോർഡുകൾ ഇറക്കുമതി ചെയ്യുക');
assert.equal(malayalam['trello-cancel-delete'],
'റദ്ദാക്കി ഇറക്കുമതി ചെയ്തവ ഇല്ലാതാക്കുക');
assert.equal(malayalam['import-map-members'], 'അംഗങ്ങളെ പൊരുത്തപ്പെടുത്തുക');
assert.match(malayalam['invalid-year'], /2026/);
assert.deepEqual(tokens(malayalam['label-default']), ['%s']);
assert.deepEqual(tokens(malayalam['leave-board-pop']), ['__boardTitle__']);
assert.match(malayalam['list-archive-cards-pop'], /“Menu”.*“Archive”/);
assert.match(malayalam['listImportCardsTsvPopup-title'], /Excel CSV\/TSV/);
assert.equal(malayalam['multi-selection'], 'ഒന്നിലധികം തിരഞ്ഞെടുക്കൽ');
assert.equal(malayalam['no-archived-cards'], 'ആർക്കൈവിൽ കാർഡുകളില്ല.');
assert.equal(malayalam.normal, 'സാധാരണ');
assert.deepEqual(tokens(malayalam['page-maybe-private']), ['%s']);
assert.deepEqual(tags(malayalam['page-maybe-private']), ['</a>', "<a href='%s'>"]);
assert.deepEqual(tokens(malayalam['remove-member-pop']),
['__boardTitle__', '__name__', '__username__']);
assert.match(malayalam['sandstorm-remove-member-warning'], /WeKan.*Sandstorm/);
assert.match(malayalam['setWipLimitPopup-title'], /WIP/);
assert.equal(malayalam['sidebar-open'], 'സൈഡ്ബാർ തുറക്കുക');
assert.equal(malayalam['starred-boards'], 'നക്ഷത്രമിട്ട ബോർഡുകൾ');
assert.match(malayalam['toggle-assignees'], /1-9/);
assert.match(malayalam['custom-top-left-corner-logo-height'], /27/);
assert.match(malayalam['automatic-linked-url-schemes'], /URL/);
assert.equal(malayalam['welcome-swimlane'], 'നാഴികക്കല്ല് 1');
assert.match(malayalam['wipLimitErrorPopup-dialog-pt1'], /WIP/);
assert.match(malayalam['attachment-transfer-limits-title'], /API/);
assert.match(malayalam['smtp-host-description'], /SMTP/);
assert.match(malayalam['smtp-tls-description'], /SMTP.*TLS/);
assert.deepEqual(tokens(malayalam['email-invite-register-text']),
['__icode__', '__inviter__', '__url__', '__user__']);
assert.equal(malayalam['outgoing-webhooks'], 'പുറത്തേക്കുള്ള വെബ്‌ഹുക്കുകൾ');
assert.match(malayalam.Node_version, /Node/);
assert.match(malayalam.Meteor_version, /Meteor/);
assert.equal(malayalam.FerretDB_commit, 'FerretDB കമ്മിറ്റ്');
assert.match(malayalam.Reactivity_order, /METEOR_REACTIVITY_ORDER/);
assert.match(malayalam.DDP_transport, /DDP_TRANSPORT/);
assert.match(malayalam['org-domains-description'],
/a\.example\.com.*kanban\.example\.org.*MULTITENANCY=true/);
assert.equal(malayalam['org-admin'], 'സംഘടനാ അഡ്മിൻ');
assert.deepEqual(tokens(malayalam['default-subtasks-board']), ['__board__']);
assert.match(malayalam['checklist-count-on-minicard'], /0\/0/);
assert.equal(malayalam['parent-card'], 'പാരന്റ് കാർഡ്');
assert.deepEqual(tokens(malayalam['activity-added-label']), ['%s', '%s']);
assert.equal(malayalam['boardDeletePopup-title'], 'ബോർഡ് ഇല്ലാതാക്കണോ?');
assert.deepEqual(tokens(malayalam['activity-set-customfield']),
['%s', '%s', '%s']);
assert.deepEqual(tokens(malayalam['r-w-every-day-at']), ['__time__']);
assert.deepEqual(tokens(malayalam['r-import-done']), ['__count__']);
assert.match(malayalam['r-import-paste'], /JSON.*CSV.*Trello Butler/);
assert.equal(malayalam['r-all-boards'], 'എല്ലാ ബോർഡുകളും');
assert.deepEqual(tokens(malayalam['r-import-unmapped']), ['__count__']);
assert.match(malayalam['r-import-workflow-note'], /n8n.*Node-RED.*WeKan/);
assert.match(malayalam['r-schedule-weekday'], /തിങ്കൾ–വെള്ളി/);
assert.equal(malayalam['r-mark-complete'],
'കാർഡ് പൂർത്തിയായതായി അടയാളപ്പെടുത്തുക');
assert.equal(malayalam['r-unit-weeks'], 'ആഴ്ച');
assert.equal(malayalam['r-unarchived'], 'ആർക്കൈവിൽ നിന്ന് പുനഃസ്ഥാപിച്ചു');
assert.equal(malayalam['r-remove-all'],
'കാർഡിൽ നിന്ന് എല്ലാ അംഗങ്ങളെയും നീക്കുക');
assert.equal(malayalam['r-check-all'], 'എല്ലാം അടയാളപ്പെടുത്തുക');
assert.equal(malayalam['r-d-move-to-top-gen'],
'കാർഡ് അതിന്റെ പട്ടികയുടെ മുകളിലേക്ക് മാറ്റുക');
assert.equal(malayalam['r-d-send-email'], 'ഇമെയിൽ അയയ്ക്കുക');
assert.equal(malayalam['r-items-list'], 'ഇനം1,ഇനം2,ഇനം3');
assert.match(malayalam['r-checklist-note'], /കോമ/);
assert.equal(malayalam['authentication-method'], 'പ്രാമാണീകരണ രീതി');
assert.match(malayalam['custom-head-meta-tags'], /HTML/);
assert.match(malayalam['custom-head-manifest-content'], /JSON/);
assert.match(malayalam['custom-assetlinks-content'], /assetlinks\.json.*JSON/);
assert.deepEqual(tags(malayalam['add-custom-html-after-body-start']), ['<body>']);
assert.deepEqual(tags(malayalam['add-custom-html-before-body-end']), ['</body>']);
assert.deepEqual(tokens(malayalam['act-a-dueAt']),
['__card__', '__timeOldValue__', '__timeValue__']);
assert.deepEqual(tokens(malayalam['act-atUserComment']),
['__board__', '__card__', '__comment__', '__list__', '__swimlane__']);
assert.equal(malayalam['submit-on-enter'],
'Enter അമർത്തി എഡിറ്ററുകൾ സമർപ്പിക്കുക');
assert.match(malayalam['submit-on-enter-description'],
/Enter.*Shift\+Enter.*Ctrl\/Cmd\+Enter/);
assert.equal(malayalam['roles-status-sees-assigned'],
'ചുമതലപ്പെടുത്തിയവ മാത്രം');
assert.equal(malayalam.monday, 'തിങ്കളാഴ്ച');
assert.equal(malayalam.sunday, 'ഞായറാഴ്ച');
assert.equal(malayalam.voting, 'വോട്ടെടുപ്പ്');
assert.match(malayalam['invalid-domain'], /example\.com.*@/);
assert.equal(malayalam['shared-templates'], 'പങ്കിട്ട ടെംപ്ലേറ്റുകൾ');
assert.match(malayalam['globalSearchViewChange-choice-all-description'],
/\*My cards\*/);
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(malayalam[key]), ['%s'], key);
}
assert.deepEqual(tokens(malayalam['n-n-of-n-cards-found']),
['__end__', '__start__', '__total__']);
assert.equal(malayalam['operator-board'], 'ബോർഡ്');
assert.equal(malayalam['operator-customfield'], 'ഇഷ്ടാനുസൃതഫീൽഡ്');
assert.equal(malayalam['predicate-overdue'], 'കാലഹരണപ്പെട്ടത്');
assert.equal(malayalam['predicate-quarter'], 'പാദവർഷം');
assert.deepEqual(tokens(malayalam['operator-number-expected']),
['__operator__', '__value__']);
assert.deepEqual(tokens(malayalam['globalSearch-instructions-operator-has']),
tokens(english['globalSearch-instructions-operator-has']));
assert.deepEqual(tokens(malayalam['globalSearch-instructions-notes-3-2']),
tokens(english['globalSearch-instructions-notes-3-2']));
assert.match(malayalam['globalSearch-instructions-notes-2'], /\*OR\*/);
assert.match(malayalam['globalSearch-instructions-notes-3'], /\*AND\*/);
assert.equal(malayalam['card-dependencies'], 'ആശ്രിതത്വങ്ങൾ');
assert.match(malayalam['import-dependencies-file'], /JSON.*SVG/);
assert.deepEqual(tokens(malayalam['import-dependencies-done']),
['__imported__', '__unmatched__']);
assert.deepEqual(tokens(malayalam['background-too-big']), ['{{size}}']);
assert.equal(malayalam['location-open-map'], 'മാപ്പിൽ തുറക്കുക');
assert.match(malayalam['server-error-troubleshooting'],
/sudo snap logs wekan\.wekan.*sudo docker logs wekan-app/s);
assert.deepEqual(tokens(malayalam['custom-field-stringtemplate-format']),
['%{value}']);
assert.match(malayalam['custom-field-stringtemplate-separator'], /&#32;.*&nbsp;/);
assert.match(malayalam['office-report-desc'], /IPv4.*IPv6/);
assert.equal(malayalam.problems, 'പ്രശ്നങ്ങൾ');
assert.match(malayalam['api-report-desc'], /REST API/);
assert.match(malayalam['api-no-calls'], /WITH_API=true/);
assert.match(malayalam['recovery-report-desc'], /MongoDB/);
assert.equal(malayalam['copy-swimlane'], 'സ്വിംലെയിൻ പകർത്തുക');
assert.match(malayalam['carbon-copy'], /Cc:/);
assert.equal(malayalam['cardDetailsPopup-title'], 'കാർഡ് വിശദാംശങ്ങൾ');
assert.match(malayalam.Node_heap_malloced_memory, /Node.*malloc/);
assert.match(malayalam['custom-legal-notice-link-url'], /URL/);
assert.equal(malayalam.copyChecklist, 'ചെക്ക്‌ലിസ്റ്റ് പകർത്തുക');
assert.match(malayalam['attachment-move-storage-gridfs'], /GridFS/);
assert.match(malayalam['attachment-move-storage-s3'], /S3/);
assert.match(malayalam['attachment-repair-locations-description'],
/GridFS.*ക്ലൗഡ്/);
assert.match(malayalam['mongodb-compact-description'], /MongoDB GridFS.*Compact/);
assert.match(malayalam['mongodb-compact-warning'], /oplog.*Meteor/);
assert.equal(malayalam['gridfs-file-id'], 'GridFS ഫയൽ ID');
assert.equal(malayalam['board-title'], 'ബോർഡ് ശീർഷകം');
assert.equal(malayalam['attachment-limit-unit-bytes'], 'ബൈറ്റുകൾ');
for (const key of ['r-of', 'of']) assert.equal(`1 ${malayalam[key]} 10`, '1 / 10');
assert.equal(malayalam['r-to'], 'സ്വീകർത്താവ്');
assert.equal(malayalam['r-d-send-email-to'], 'സ്വീകർത്താവ്');
assert.equal(malayalam['r-by'], 'ചെയ്തയാൾ');
assert.match(malayalam['custom-field-links-hint'], /ഒരേ പേരും തരവുമുള്ള/);
assert.match(malayalam['custom-field-links-hint'], /ഒരു കാർഡിൽ മാത്രം ഉള്ള ഫീൽഡുകൾ മാറ്റില്ല/);
assert.match(malayalam['custom-field-link-send'], /ഈ കാർഡിലെ മാറ്റങ്ങൾ പ്രധാന കാർഡിലേക്ക്/);
assert.match(malayalam['custom-field-link-receives'], /ആ കാർഡിലെ മാറ്റങ്ങൾ ഈ കാർഡിലേക്ക്/);
assert.match(malayalam['field-link-not-allowed'], /രണ്ട് കാർഡുകളും തിരുത്താനുള്ള അനുമതി/);
assert.match(malayalam['read-only-field'], /എല്ലാ അംഗങ്ങൾക്കും.*അഡ്മിനിസ്ട്രേറ്റർമാർക്ക് മാത്രമേ/);
assert.match(malayalam['notification-delivery-quiet'], /അവസാനിക്കുന്നതുവരെ കാത്തിരിക്കുക/);
assert.match(malayalam['webhook-payload-description'], /മുകളിലെ തലത്തിൽ നിന്ന് ലഭിച്ച ക്രമീകരണം നിലനിർത്തും/);
assert.match(malayalam['stuck-sync-operation-discard-confirm'], /ഇതിനകം പ്രയോഗിച്ച മാറ്റങ്ങൾ നിലനിൽക്കും/);
assert.match(malayalam['stuck-sync-operation-discard-confirm'], /ബാക്കിയുള്ളവ ഒരിക്കലും എഴുതില്ല/);
assert.match(malayalam['stuck-sync-operation-not-stuck'], /ഉപേക്ഷിക്കാനാവില്ല/);
assert.match(malayalam['stuck-sync-operation-replayable'], /തനിയെ പൂർത്തിയാകുമെന്നതിനാൽ ഉപേക്ഷിച്ചില്ല/);
assert.match(malayalam['interrupted-import-description'], /ഉറവിട ഫയൽ സൂക്ഷിക്കാത്തതിനാൽ ഇറക്കുമതി തുടരാനാവില്ല/);
assert.match(malayalam['interrupted-import-description'], /പിന്നീട് ചേർത്തവ ഉൾപ്പെടെ/);
assert.match(malayalam['interrupted-import-keep-confirm'], /ഒന്നും നീക്കില്ല/);
assert.match(malayalam['interrupted-import-discard-confirm'], /എല്ലാം സ്ഥിരമായി നീക്കും/);
assert.match(malayalam['interrupted-import-foreign-board'], /സൃഷ്ടിച്ചതല്ല.*മാറ്റിയില്ല/);
for (const key of ['stuck-sync-operation-truncated', 'interrupted-import-truncated']) assert.match(malayalam[key], /ഏറ്റവും പഴയ 50/);
for (const format of ['taiga', 'vikunja']) assert.match(malayalam['import-board-instruction-' + format], /അറ്റാച്ച്‌മെന്റുകൾ ഇറക്കുമതി ചെയ്യില്ല/);
assert.match(malayalam['import-board-instruction-notion'], /ബന്ധങ്ങൾ, ചിത്രങ്ങൾ, അറ്റാച്ച്‌മെന്റുകൾ എന്നിവ ഇറക്കുമതി ചെയ്യില്ല/);
assert.match(malayalam['import-board-instruction-quire'], /കമന്റുകളും അറ്റാച്ച്‌മെന്റുകളും ഇല്ല/);
assert.match(malayalam['import-board-instruction-plane'], /വിവരണങ്ങളോ അറ്റാച്ച്‌മെന്റുകളോ ഇല്ല.*ഇറക്കുമതി ചെയ്യില്ല/);
for (const format of ['nullboard', 'kanri']) assert.match(malayalam['import-board-instruction-' + format], /ആദ്യ ബോർഡ് ഇറക്കുമതി/);
for (const literal of ['TODO', 'DONE', 'SCHEDULED', 'DEADLINE', 'CLOSED']) assert.ok(malayalam['import-board-instruction-orgmode'].includes(literal));
for (const literal of ['Tasklist', 'Task', 'Description', 'Assign to', 'Start date', 'Due date', 'Priority', 'Estimated time', 'Tags', 'Status', '--', '##', '>>']) assert.ok(malayalam['import-board-instruction-teamwork'].includes(literal));
assert.match(malayalam['import-board-instruction-businessmap'], /തലക്കെട്ടുള്ള വരി ഇംഗ്ലീഷിലേക്ക് മാറ്റുക/);
assert.match(malayalam['import-board-instruction-redmine'], /My account-ൽ ഭാഷ English/);
assert.match(malayalam['import-many-boards-hint'], /അംഗങ്ങളെ പൊരുത്തപ്പെടുത്താതെ/);
assert.match(malayalam['import-many-boards-hint'], /മുകളിലെ ഫീൽഡിനു പകരം/);
assert.match(malayalam['r-wrike-workflow-note'], /Completed അല്ലെങ്കിൽ Cancelled.*പൂർത്തിയായതായും Active അല്ലെങ്കിൽ Deferred.*പൂർത്തിയാകാത്തതായും/);
for (const literal of ['GET /workflows', 'JSON']) assert.ok(malayalam['r-wrike-workflow-note'].includes(literal));
for (const literal of ['LDAP_BACKGROUND_SYNC_IMPORT_NEW_USERS', 'LDAP_BACKGROUND_SYNC_KEEP_EXISTANT_USERS_UPDATED']) assert.ok(malayalam['ldap-sync-now-nothing'].includes(literal));
assert.ok(malayalam['external-link-rules-description'].includes('[{identifier}:{number}] = https://tracker.example.com/{identifier}/{number}'));
assert.ok(malayalam['webhook-payload-field-standard'].includes('WEBHOOKS_ATTRIBUTES'));
assert.match(malayalam['login-setting-env-only'], /സെർവർ പരിസ്ഥിതിയിൽ നിന്ന് മാത്രമേ.*വായിക്കാൻ മാത്രമായി/);
assert.ok(malayalam['trello-export-desc'].includes('Swimlane: …'));
assert.match(malayalam['trello-export-desc'], /വീണ്ടും പാതകളാക്കി മാറ്റും/);
assert.match(malayalam['trello-export-warnings'], /എല്ലാം കയറ്റുമതി ചെയ്യാനായില്ല/);
assert.match(malayalam['sandstorm-trello-access-needed'], /ഇന്റർനെറ്റ് പ്രവേശനമില്ല.*ആദ്യം.*അനുവദിക്കുക/);
assert.match(malayalam['sandstorm-trello-access-granted'], /പ്രവേശിക്കാം/);
assert.match(malayalam['scrum-import-into-board-hint'], /പകർപ്പുകൾ സൃഷ്ടിക്കില്ല/);
assert.match(malayalam['scrum-import-into-board-hint'], /പൊരുത്തപ്പെടാത്ത കാർഡുകൾ.*മാറ്റമില്ലാതെ/);
assert.match(malayalam['scrum-import-card-on-another-board'], /മറ്റൊരു ബോർഡിലേതായതിനാൽ മാറ്റമില്ലാതെ/);
assert.match(malayalam['scrum-import-sprint-finished'], /പൂർത്തിയായ സ്പ്രിന്റിലേക്ക് ഒരു കാർഡ് മാറ്റിയില്ല/);
assert.match(malayalam['sync-planning-hint'], /ആദ്യ സമന്വയം ഒരിക്കലും ആസൂത്രണം നീക്കില്ല/);
assert.match(malayalam['sync-planning-hint'], /മാറുന്നതുവരെ പ്രാദേശിക ആസൂത്രണ മാറ്റം നിലനിൽക്കും/);
assert.match(malayalam['scrum-history-checkpoint-hint'], /മറ്റാരും ആ രേഖകൾ മാറ്റിയിട്ടില്ലെങ്കിൽ മാത്രമേ/);
assert.match(malayalam['scrum-history-checkpoint-hint'], /രേഖകളൊന്നും മാറ്റാതിരിക്കുകയും/);
assert.match(malayalam['scrum-history-checkpoint-discard-confirm'], /ഇതിനകം എഴുതിയ മാറ്റങ്ങൾ ഉൾപ്പെടെ/);
assert.match(malayalam['scrum-history-checkpoint-ask-admin'], /അഡ്മിനിസ്ട്രേറ്റർക്ക്/);
for (const literal of ['Ctrl', 'Cmd']) assert.ok(malayalam['scrum-releases-select-help'].includes(literal));
const { ruleTriggerCopula } = require('../imports/i18n/ruleGrammar');
for (const tag of ['ml', 'ml-IN', 'ml_IN', 'ML']) assert.equal(ruleTriggerCopula(tag, malayalam['r-is']), '');
for (const tag of ['en', 'mlang', undefined]) assert.equal(ruleTriggerCopula(tag, 'is'), 'is');
for (const key of ['r-added-to', 'r-removed-from', 'r-archived', 'r-unarchived', 'r-completed', 'r-made-incomplete']) {
const phrase = [malayalam['r-when-a-card'], ruleTriggerCopula('ml', malayalam['r-is']), malayalam[key]].filter(Boolean).join(' ');
assert.doesNotMatch(phrase, /\bis\b| ആണ് /);
assert.ok(phrase.endsWith(malayalam[key]));
}
(async () => {
const { translationTokens } = await import('../releases/translations/placeholder-tokens.mjs');
assert.deepEqual(Object.keys(malayalam), Object.keys(english));
for (const key of Object.keys(english)) assert.deepEqual(translationTokens(malayalam[key]), translationTokens(english[key]), key);
const i18n = require('i18next').createInstance();
await i18n.init({ lng: 'ml', fallbackLng: 'en', initImmediate: false,
interpolation: { prefix: '__', suffix: '__', escapeValue: false },
resources: { en: { translation: english }, ml: { translation: malayalam } } });
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: 0, conflicted: 2 }), '3 മാറ്റങ്ങളിൽ 1 എഴുതി, 0 എഴുതിയില്ല, 2 പിന്നീട് മറ്റൊരാൾ മാറ്റി.');
console.log('Malayalam: full fill list, tokens, selected meanings, Scrum states, rule copula and runtime interpolation pass');
})().catch(error => { console.error(error); process.exitCode = 1; });