adula 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/README.md +149 -18
  2. package/build/agent/AGENTS.template.md +4 -4
  3. package/build/agent/capabilities.md +22 -12
  4. package/build/agent/skills/adula-frontend-design/SKILL.md +6 -4
  5. package/build/agent/skills/idea-review/SKILL.md +2 -2
  6. package/build/commands/adula_assistant_prune.d.ts +10 -0
  7. package/build/commands/adula_assistant_prune.js +12 -0
  8. package/build/commands/adula_outbox.d.ts +10 -0
  9. package/build/commands/adula_outbox.js +11 -0
  10. package/build/commands/adula_restore_reconcile.d.ts +10 -0
  11. package/build/commands/adula_restore_reconcile.js +34 -0
  12. package/build/commands/adula_runtime_health.d.ts +10 -0
  13. package/build/commands/adula_runtime_health.js +27 -0
  14. package/build/commands/adula_uploads_prune.d.ts +10 -0
  15. package/build/commands/adula_uploads_prune.js +16 -0
  16. package/build/commands/app.d.ts +10 -0
  17. package/build/commands/app.js +64 -0
  18. package/build/commands/backup_create.d.ts +11 -0
  19. package/build/commands/backup_create.js +99 -0
  20. package/build/commands/backup_open.d.ts +16 -0
  21. package/build/commands/backup_open.js +48 -0
  22. package/build/commands/backup_restore_files.d.ts +11 -0
  23. package/build/commands/backup_restore_files.js +44 -0
  24. package/build/commands/backup_restore_test.d.ts +12 -0
  25. package/build/commands/backup_restore_test.js +188 -0
  26. package/build/commands/backup_seal.d.ts +12 -0
  27. package/build/commands/backup_seal.js +36 -0
  28. package/build/commands/backup_services.d.ts +33 -0
  29. package/build/commands/backup_services.js +6 -0
  30. package/build/commands/backup_verify.d.ts +9 -0
  31. package/build/commands/backup_verify.js +59 -0
  32. package/build/commands/backup_verify_snapshot.d.ts +10 -0
  33. package/build/commands/backup_verify_snapshot.js +37 -0
  34. package/build/commands/client.d.ts +16 -0
  35. package/build/commands/client.js +71 -0
  36. package/build/commands/doctor.js +21 -1
  37. package/build/commands/install.d.ts +8 -0
  38. package/build/commands/install.js +69 -45
  39. package/build/commands/main.d.ts +3 -2
  40. package/build/commands/main.js +32 -0
  41. package/build/commands/module_add.js +4 -20
  42. package/build/commands/resource.d.ts +2 -0
  43. package/build/commands/resource.js +12 -3
  44. package/build/commands/resource_migration.d.ts +15 -0
  45. package/build/commands/resource_migration.js +81 -0
  46. package/build/commands/resource_snapshot.d.ts +2 -0
  47. package/build/commands/resource_snapshot.js +21 -4
  48. package/build/commands/sla_evaluate.d.ts +14 -0
  49. package/build/commands/sla_evaluate.js +16 -0
  50. package/build/commands/ui.js +4 -2
  51. package/build/commands/ui_css.d.ts +9 -0
  52. package/build/commands/ui_css.js +19 -0
  53. package/build/commands/upgrade.d.ts +1 -1
  54. package/build/commands/upgrade.js +1 -1
  55. package/build/configure.js +1 -1
  56. package/build/database/migrations/1770000000020_two_factor.d.ts +5 -0
  57. package/build/database/migrations/1770000000020_two_factor.js +10 -0
  58. package/build/database/migrations/1770000000041_import_modes.d.ts +5 -0
  59. package/build/database/migrations/1770000000041_import_modes.js +10 -0
  60. package/build/database/migrations/1770000000042_sync_jobs.d.ts +5 -0
  61. package/build/database/migrations/1770000000042_sync_jobs.js +10 -0
  62. package/build/database/migrations/1770000000043_notification_channels.d.ts +5 -0
  63. package/build/database/migrations/1770000000043_notification_channels.js +10 -0
  64. package/build/database/migrations/1770000000044_channel_confirmations.d.ts +5 -0
  65. package/build/database/migrations/1770000000044_channel_confirmations.js +10 -0
  66. package/build/database/migrations/1770000000045_import_leases.d.ts +5 -0
  67. package/build/database/migrations/1770000000045_import_leases.js +10 -0
  68. package/build/database/migrations/1770000000046_workflow_delegation_sla.d.ts +5 -0
  69. package/build/database/migrations/1770000000046_workflow_delegation_sla.js +10 -0
  70. package/build/database/migrations/1770000000049_print_templates.d.ts +5 -0
  71. package/build/database/migrations/1770000000049_print_templates.js +10 -0
  72. package/build/database/migrations/1770000000051_comment_notifications.d.ts +5 -0
  73. package/build/database/migrations/1770000000051_comment_notifications.js +10 -0
  74. package/build/database/migrations/1770000000054_cloud_backups.d.ts +5 -0
  75. package/build/database/migrations/1770000000054_cloud_backups.js +10 -0
  76. package/build/database/migrations/1770000000055_ai_assistant.d.ts +5 -0
  77. package/build/database/migrations/1770000000055_ai_assistant.js +10 -0
  78. package/build/database/migrations/1770000000056_appearance.d.ts +5 -0
  79. package/build/database/migrations/1770000000056_appearance.js +10 -0
  80. package/build/index.d.ts +87 -11
  81. package/build/index.js +50 -7
  82. package/build/providers/adula_provider.d.ts +2 -0
  83. package/build/providers/adula_provider.js +7 -0
  84. package/build/src/admin/contracts.js +1 -1
  85. package/build/src/admin/controller.d.ts +14 -1
  86. package/build/src/admin/controller.js +91 -13
  87. package/build/src/admin/errors.d.ts +32 -0
  88. package/build/src/admin/errors.js +63 -1
  89. package/build/src/admin/presentation.d.ts +21 -2
  90. package/build/src/admin/resource/editor.d.ts +60 -0
  91. package/build/src/admin/resource/editor.js +345 -0
  92. package/build/src/admin/resource/export.d.ts +54 -0
  93. package/build/src/admin/resource/export.js +262 -0
  94. package/build/src/admin/resource/lifecycle.d.ts +23 -0
  95. package/build/src/admin/resource/lifecycle.js +91 -0
  96. package/build/src/admin/resource/query.d.ts +111 -0
  97. package/build/src/admin/resource/query.js +595 -0
  98. package/build/src/admin/resource/read.d.ts +109 -0
  99. package/build/src/admin/resource/read.js +388 -0
  100. package/build/src/admin/resource/shared.d.ts +93 -0
  101. package/build/src/admin/resource/shared.js +265 -0
  102. package/build/src/admin/resource/trash.d.ts +10 -0
  103. package/build/src/admin/resource/trash.js +56 -0
  104. package/build/src/admin/resource/write.d.ts +57 -0
  105. package/build/src/admin/resource/write.js +603 -0
  106. package/build/src/admin/resource_service.d.ts +80 -193
  107. package/build/src/admin/resource_service.js +81 -1343
  108. package/build/src/admin/resource_tools.d.ts +111 -0
  109. package/build/src/admin/resource_tools.js +139 -0
  110. package/build/src/ai/assistant.d.ts +100 -0
  111. package/build/src/ai/assistant.js +487 -0
  112. package/build/src/ai/client.d.ts +49 -0
  113. package/build/src/ai/client.js +85 -0
  114. package/build/src/ai/prompt.d.ts +23 -0
  115. package/build/src/ai/prompt.js +83 -0
  116. package/build/src/ai/settings.d.ts +56 -0
  117. package/build/src/ai/settings.js +214 -0
  118. package/build/src/ai/usage.d.ts +16 -0
  119. package/build/src/ai/usage.js +33 -0
  120. package/build/src/appearance/appearance.d.ts +134 -0
  121. package/build/src/appearance/appearance.js +461 -0
  122. package/build/src/appearance/colors.d.ts +43 -0
  123. package/build/src/appearance/colors.js +99 -0
  124. package/build/src/appearance/logo.d.ts +32 -0
  125. package/build/src/appearance/logo.js +112 -0
  126. package/build/src/attachments/attachment_service.d.ts +46 -2
  127. package/build/src/attachments/attachment_service.js +96 -4
  128. package/build/src/auth/actor_store.d.ts +5 -1
  129. package/build/src/auth/actor_store.js +8 -4
  130. package/build/src/auth/conditions.d.ts +5 -0
  131. package/build/src/auth/conditions.js +26 -3
  132. package/build/src/auth/sql.js +17 -5
  133. package/build/src/auth/two_factor.d.ts +96 -0
  134. package/build/src/auth/two_factor.js +259 -0
  135. package/build/src/backups/archive.d.ts +52 -0
  136. package/build/src/backups/archive.js +362 -0
  137. package/build/src/backups/cloud_backups.d.ts +133 -0
  138. package/build/src/backups/cloud_backups.js +650 -0
  139. package/build/src/backups/doctor.d.ts +7 -0
  140. package/build/src/backups/doctor.js +55 -0
  141. package/build/src/backups/providers.d.ts +81 -0
  142. package/build/src/backups/providers.js +470 -0
  143. package/build/src/collaboration/assignments.d.ts +59 -2
  144. package/build/src/collaboration/assignments.js +196 -74
  145. package/build/src/collaboration/record_collaboration.d.ts +21 -4
  146. package/build/src/collaboration/record_collaboration.js +126 -51
  147. package/build/src/collaboration/shared.d.ts +24 -0
  148. package/build/src/collaboration/shared.js +34 -0
  149. package/build/src/commands/app_scaffold.d.ts +72 -0
  150. package/build/src/commands/app_scaffold.js +285 -0
  151. package/build/src/commands/capabilities.js +35 -9
  152. package/build/src/commands/doctor.d.ts +24 -2
  153. package/build/src/commands/doctor.js +81 -6
  154. package/build/src/commands/gap_report.d.ts +1 -1
  155. package/build/src/commands/gap_report.js +2 -2
  156. package/build/src/commands/generator.d.ts +37 -1
  157. package/build/src/commands/generator.js +61 -18
  158. package/build/src/commands/snapshot.d.ts +24 -13
  159. package/build/src/commands/snapshot.js +54 -14
  160. package/build/src/commands/source_markers.d.ts +10 -0
  161. package/build/src/commands/source_markers.js +29 -0
  162. package/build/src/core/activity.d.ts +2 -0
  163. package/build/src/core/activity.js +7 -1
  164. package/build/src/core/administrators.d.ts +38 -0
  165. package/build/src/core/administrators.js +145 -0
  166. package/build/src/core/avatar_image.d.ts +33 -0
  167. package/build/src/core/avatar_image.js +278 -0
  168. package/build/src/core/html_sanitizer.d.ts +20 -0
  169. package/build/src/core/html_sanitizer.js +261 -0
  170. package/build/src/core/like.d.ts +5 -0
  171. package/build/src/core/like.js +5 -0
  172. package/build/src/core/lookups.d.ts +80 -0
  173. package/build/src/core/lookups.js +319 -0
  174. package/build/src/core/mail_settings.d.ts +83 -0
  175. package/build/src/core/mail_settings.js +274 -0
  176. package/build/src/core/mail_test.d.ts +16 -0
  177. package/build/src/core/mail_test.js +81 -6
  178. package/build/src/core/message_templates.d.ts +15 -2
  179. package/build/src/core/message_templates.js +81 -11
  180. package/build/src/core/module_seed.js +2 -1
  181. package/build/src/core/notification_channels.d.ts +235 -0
  182. package/build/src/core/notification_channels.js +660 -0
  183. package/build/src/core/roles.js +26 -9
  184. package/build/src/core/saved_views.d.ts +8 -1
  185. package/build/src/core/saved_views.js +91 -26
  186. package/build/src/core/sequences.d.ts +32 -0
  187. package/build/src/core/sequences.js +97 -0
  188. package/build/src/core/settings.d.ts +5 -0
  189. package/build/src/core/settings.js +31 -3
  190. package/build/src/core/template_language.d.ts +61 -0
  191. package/build/src/core/template_language.js +141 -0
  192. package/build/src/core/ui_preferences.d.ts +10 -0
  193. package/build/src/core/ui_preferences.js +15 -1
  194. package/build/src/core/user_avatars.d.ts +79 -0
  195. package/build/src/core/user_avatars.js +186 -0
  196. package/build/src/core/user_invitations.d.ts +5 -1
  197. package/build/src/core/user_invitations.js +7 -1
  198. package/build/src/core/user_preferences.d.ts +36 -0
  199. package/build/src/core/user_preferences.js +125 -0
  200. package/build/src/core/users.d.ts +2 -0
  201. package/build/src/core/users.js +5 -3
  202. package/build/src/database/calendar_days.d.ts +19 -0
  203. package/build/src/database/calendar_days.js +36 -0
  204. package/build/src/database/schema.d.ts +201 -2
  205. package/build/src/database/schema.js +713 -59
  206. package/build/src/database/schema_diff.d.ts +70 -0
  207. package/build/src/database/schema_diff.js +190 -0
  208. package/build/src/events/record_mutation.d.ts +2 -1
  209. package/build/src/events/record_mutation.js +1 -0
  210. package/build/src/integrations/api_client.d.ts +37 -0
  211. package/build/src/integrations/api_client.js +567 -0
  212. package/build/src/integrations/import_adapters.d.ts +37 -0
  213. package/build/src/integrations/import_adapters.js +35 -0
  214. package/build/src/integrations/imports.d.ts +130 -16
  215. package/build/src/integrations/imports.js +434 -73
  216. package/build/src/integrations/openapi.d.ts +3 -1
  217. package/build/src/integrations/openapi.js +465 -31
  218. package/build/src/integrations/outbound.d.ts +94 -0
  219. package/build/src/integrations/outbound.js +276 -0
  220. package/build/src/integrations/print.d.ts +22 -1
  221. package/build/src/integrations/print.js +68 -22
  222. package/build/src/integrations/print_templates.d.ts +216 -0
  223. package/build/src/integrations/print_templates.js +1017 -0
  224. package/build/src/integrations/sync_jobs.d.ts +139 -0
  225. package/build/src/integrations/sync_jobs.js +416 -0
  226. package/build/src/integrations/webhooks.d.ts +12 -12
  227. package/build/src/integrations/webhooks.js +34 -43
  228. package/build/src/integrations/xlsx.d.ts +41 -0
  229. package/build/src/integrations/xlsx.js +519 -0
  230. package/build/src/languages/ar.d.ts +11 -0
  231. package/build/src/languages/ar.js +358 -0
  232. package/build/src/languages/ar_ui.d.ts +461 -0
  233. package/build/src/languages/ar_ui.js +464 -0
  234. package/build/src/languages/catalog.d.ts +66 -0
  235. package/build/src/languages/catalog.js +152 -0
  236. package/build/src/languages/en.d.ts +7 -0
  237. package/build/src/languages/en.js +352 -0
  238. package/build/src/languages/en_ui.d.ts +3 -0
  239. package/build/src/languages/en_ui.js +458 -0
  240. package/build/src/languages/validation.d.ts +26 -0
  241. package/build/src/languages/validation.js +60 -0
  242. package/build/src/lists/bulk_actions.d.ts +89 -0
  243. package/build/src/lists/bulk_actions.js +268 -0
  244. package/build/src/lists/dashboards.d.ts +138 -0
  245. package/build/src/lists/dashboards.js +290 -0
  246. package/build/src/mcp/tools.js +9 -104
  247. package/build/src/resource/define_resource.d.ts +18 -1
  248. package/build/src/resource/define_resource.js +212 -18
  249. package/build/src/resource/definition.d.ts +44 -0
  250. package/build/src/resource/definition.js +171 -0
  251. package/build/src/resource/registry.js +15 -4
  252. package/build/src/resource/types.d.ts +313 -16
  253. package/build/src/resource/values.d.ts +56 -1
  254. package/build/src/resource/values.js +237 -5
  255. package/build/src/services/settings.d.ts +2 -0
  256. package/build/src/services/settings.js +5 -1
  257. package/build/src/upgrade/legacy.js +2 -2
  258. package/build/src/workflows/calendar.d.ts +9 -0
  259. package/build/src/workflows/calendar.js +44 -0
  260. package/build/src/workflows/define_workflow.d.ts +48 -3
  261. package/build/src/workflows/define_workflow.js +57 -13
  262. package/build/src/workflows/delegations.d.ts +107 -0
  263. package/build/src/workflows/delegations.js +326 -0
  264. package/build/src/workflows/engine.d.ts +80 -4
  265. package/build/src/workflows/engine.js +466 -86
  266. package/build/src/workflows/sla.d.ts +15 -0
  267. package/build/src/workflows/sla.js +8 -0
  268. package/build/stubs/resource_contract.txt +12 -1
  269. package/package.json +9 -2
@@ -0,0 +1,152 @@
1
+ import { AsyncLocalStorage } from 'node:async_hooks';
2
+ import { arabicMessages } from './ar.js';
3
+ /**
4
+ * Arabic is the base language of every system: its catalog is complete and every
5
+ * other language is an optional layer on top. A missing translation falls back to
6
+ * the Arabic text, never to a key or an empty string.
7
+ */
8
+ export const BASE_LANGUAGE = 'ar';
9
+ const languages = new Map();
10
+ /** clientMessages results by language and prefix; cleared when a catalog changes. */
11
+ const clientCache = new Map();
12
+ const storage = new AsyncLocalStorage();
13
+ /** Arabic text → message key, so text thrown by older code can still be translated. */
14
+ const keysByArabic = new Map();
15
+ for (const [key, text] of Object.entries(arabicMessages))
16
+ if (!keysByArabic.has(text))
17
+ keysByArabic.set(text, key);
18
+ languages.set(BASE_LANGUAGE, {
19
+ code: BASE_LANGUAGE,
20
+ name: 'العربية',
21
+ dir: 'rtl',
22
+ catalog: arabicMessages,
23
+ byArabic: new Map(),
24
+ });
25
+ function assertCode(code) {
26
+ if (!/^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$/.test(code))
27
+ throw new Error(`Invalid language code: ${code}`);
28
+ }
29
+ /**
30
+ * Adds an optional language. Keys that the Arabic catalog does not define are
31
+ * refused so a typo cannot silently create an untranslatable message; keys the
32
+ * catalog leaves out fall back to Arabic. Registering the same code again merges
33
+ * the catalogs, so an application can extend or override a bundled catalog.
34
+ */
35
+ export function registerLanguage(code, catalog, options) {
36
+ assertCode(code);
37
+ if (code === BASE_LANGUAGE)
38
+ throw new Error('Arabic is the base language; it cannot be replaced');
39
+ if (!options.name?.trim())
40
+ throw new Error(`Language ${code} needs a display name`);
41
+ for (const [key, text] of Object.entries(catalog)) {
42
+ if (!Object.hasOwn(arabicMessages, key))
43
+ throw new Error(`Language ${code}: unknown message key ${key}`);
44
+ if (typeof text !== 'string' || !text)
45
+ throw new Error(`Language ${code}: empty message ${key}`);
46
+ }
47
+ const previous = languages.get(code);
48
+ clientCache.clear();
49
+ const merged = { ...previous?.catalog, ...catalog };
50
+ const byArabic = new Map();
51
+ for (const [key, text] of Object.entries(merged))
52
+ byArabic.set(arabicMessages[key], text);
53
+ languages.set(code, {
54
+ code,
55
+ name: options.name,
56
+ dir: options.dir ?? 'ltr',
57
+ catalog: Object.freeze(merged),
58
+ byArabic,
59
+ });
60
+ }
61
+ /** Every registered language, Arabic first. */
62
+ export function registeredLanguages() {
63
+ return [...languages.values()].map(({ code, name, dir }) => ({ code, name, dir }));
64
+ }
65
+ /**
66
+ * The languages users may choose: Arabic always, first, followed by the configured
67
+ * codes that are registered. An unknown configured code is a configuration error.
68
+ */
69
+ export function enabledLanguages(configured = [BASE_LANGUAGE]) {
70
+ const codes = [BASE_LANGUAGE, ...configured.filter((code) => code !== BASE_LANGUAGE)];
71
+ return [...new Set(codes)].map((code) => {
72
+ const language = languages.get(code);
73
+ if (!language)
74
+ throw new Error(`Language ${code} is enabled but not registered`);
75
+ return { code: language.code, name: language.name, dir: language.dir };
76
+ });
77
+ }
78
+ /** The preferred language when it is enabled, Arabic otherwise. */
79
+ export function resolveLanguage(preferred, configured = [BASE_LANGUAGE]) {
80
+ if (!preferred || preferred === BASE_LANGUAGE)
81
+ return BASE_LANGUAGE;
82
+ return configured.includes(preferred) && languages.has(preferred) ? preferred : BASE_LANGUAGE;
83
+ }
84
+ export function languageDirection(code) {
85
+ return languages.get(code)?.dir ?? 'rtl';
86
+ }
87
+ function interpolate(text, params) {
88
+ if (!params)
89
+ return text;
90
+ return text.replace(/\{(\w+)\}/g, (match, name) => name in params ? String(params[name]) : match);
91
+ }
92
+ /**
93
+ * The message for `key` in `language`, falling back to Arabic. `{name}` placeholders
94
+ * are replaced from `params`. Unknown keys are a programming error.
95
+ */
96
+ export function translate(key, language = currentLanguage(), params) {
97
+ const arabic = Object.hasOwn(arabicMessages, key) ? arabicMessages[key] : undefined;
98
+ if (arabic === undefined)
99
+ throw new Error(`Unknown message key: ${key}`);
100
+ const text = language === BASE_LANGUAGE ? arabic : (languages.get(language)?.catalog[key] ?? arabic);
101
+ return interpolate(text, params);
102
+ }
103
+ /**
104
+ * Translates Arabic text that matches a catalog entry exactly; other text is returned
105
+ * unchanged. Lets boundaries (flash messages, error responses) localize text produced
106
+ * by code that predates the catalog while Arabic output stays byte-identical.
107
+ */
108
+ export function localizeText(text, language = currentLanguage()) {
109
+ if (language === BASE_LANGUAGE)
110
+ return text;
111
+ return languages.get(language)?.byArabic.get(text) ?? text;
112
+ }
113
+ /** The catalog key of an Arabic text, when the catalog defines it. */
114
+ export function messageKeyOf(text) {
115
+ return keysByArabic.get(text);
116
+ }
117
+ /**
118
+ * Arabic text → translation for the keys under `prefix` (the user interface strings
119
+ * by default). Interfaces keep their Arabic text and look it up here; an empty map
120
+ * means "render the Arabic", which is the case for Arabic users.
121
+ */
122
+ export function clientMessages(language, prefix = 'ui.') {
123
+ if (language === BASE_LANGUAGE)
124
+ return {};
125
+ const cacheKey = `${language}:${prefix}`;
126
+ const cached = clientCache.get(cacheKey);
127
+ if (cached)
128
+ return cached;
129
+ const catalog = languages.get(language)?.catalog ?? {};
130
+ const messages = {};
131
+ for (const [key, text] of Object.entries(catalog))
132
+ if (key.startsWith(prefix))
133
+ messages[arabicMessages[key]] = text;
134
+ // Shared between requests: frozen so no caller can change another request's copy.
135
+ clientCache.set(cacheKey, Object.freeze(messages));
136
+ return messages;
137
+ }
138
+ /** Runs `callback` with `language` as the current language of everything it awaits. */
139
+ export function runWithLanguage(language, callback) {
140
+ return storage.run(languages.has(language) ? language : BASE_LANGUAGE, callback);
141
+ }
142
+ /** The language of the current request (see runWithLanguage), Arabic outside one. */
143
+ export function currentLanguage() {
144
+ return storage.getStore() ?? BASE_LANGUAGE;
145
+ }
146
+ /**
147
+ * A resource, field, action, lookup or menu label in `language`: `label.<language>`
148
+ * when the label provides it, `label.ar` otherwise.
149
+ */
150
+ export function labelText(label, language = currentLanguage()) {
151
+ return (language !== BASE_LANGUAGE && label[language]) || label.ar;
152
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The one bundled optional catalog: English for the framework's own strings. It does
3
+ * not translate consumer resources; those use `label.en` and fall back to `label.ar`.
4
+ * Register it with `registerLanguage('en', englishMessages, { name: 'English' })` and
5
+ * enable it in the application's languages list.
6
+ */
7
+ export declare const englishMessages: Readonly<Record<string, string>>;
@@ -0,0 +1,352 @@
1
+ import { englishInterfaceMessages } from './en_ui.js';
2
+ /**
3
+ * The one bundled optional catalog: English for the framework's own strings. It does
4
+ * not translate consumer resources; those use `label.en` and fall back to `label.ar`.
5
+ * Register it with `registerLanguage('en', englishMessages, { name: 'English' })` and
6
+ * enable it in the application's languages list.
7
+ */
8
+ export const englishMessages = Object.freeze({
9
+ 'validation.required': 'This field is required',
10
+ 'validation.string': 'Enter valid text',
11
+ 'validation.email': 'Enter a valid email address',
12
+ 'validation.minLength': 'Enter at least {min} characters',
13
+ 'validation.maxLength': 'Enter at most {max} characters',
14
+ 'validation.fixedLength': 'Enter exactly {size} characters',
15
+ 'validation.confirmed': 'The passwords must match',
16
+ 'validation.regex': 'The format is invalid',
17
+ 'validation.url': 'Enter a valid URL',
18
+ 'validation.activeUrl': 'Enter a valid URL',
19
+ 'validation.alpha': 'Only letters are allowed',
20
+ 'validation.alphaNumeric': 'Only letters and numbers are allowed',
21
+ 'validation.uuid': 'Enter a valid identifier',
22
+ 'validation.mobile': 'Enter a valid mobile number',
23
+ 'validation.in': 'The selected value is invalid',
24
+ 'validation.notIn': 'The selected value is invalid',
25
+ 'validation.enum': 'The selected value is invalid',
26
+ 'validation.sameAs': 'The values must match',
27
+ 'validation.notSameAs': 'The values must differ',
28
+ 'validation.number': 'Enter a valid number',
29
+ 'validation.min': 'The value must be at least {min}',
30
+ 'validation.max': 'The value must not exceed {max}',
31
+ 'validation.range': 'The value must be between {min} and {max}',
32
+ 'validation.positive': 'The value must be positive',
33
+ 'validation.negative': 'The value must be negative',
34
+ 'validation.nonNegative': 'The value must be zero or more',
35
+ 'validation.nonPositive': 'The value must be zero or less',
36
+ 'validation.decimal': 'The value must have {digits} decimal places',
37
+ 'validation.withoutDecimals': 'The value must be a whole number',
38
+ 'validation.boolean': 'Choose yes or no',
39
+ 'validation.accepted': 'This field must be accepted',
40
+ 'validation.literal': 'The value is invalid',
41
+ 'validation.object': 'The value is invalid',
42
+ 'validation.array': 'The value is invalid',
43
+ 'validation.array.minLength': 'Choose at least {min} items',
44
+ 'validation.array.maxLength': 'Choose at most {max} items',
45
+ 'validation.notEmpty': 'This field is required',
46
+ 'validation.distinct': 'Duplicate values are not allowed',
47
+ 'validation.union': 'The value is invalid',
48
+ 'validation.date': 'Enter a valid date',
49
+ 'validation.date.after': 'The date must be after {expectedValue}',
50
+ 'validation.date.before': 'The date must be before {expectedValue}',
51
+ 'validation.date.afterOrEqual': 'The date must be on or after {expectedValue}',
52
+ 'validation.date.beforeOrEqual': 'The date must be on or before {expectedValue}',
53
+ 'validation.file': 'Attach a valid file',
54
+ 'validation.invalid': 'The value is invalid',
55
+ 'validation.phone': 'Enter a valid phone number (7 to 15 digits)',
56
+ 'validation.decimalScale': 'Enter at most {scale} decimal places',
57
+ 'validation.decimalPrecision': 'Enter at most {digits} digits before the decimal point',
58
+ 'validation.unsafeNumber': 'This number is too long to send as a JSON number without rounding; send the value as a string, such as "12345678901234567.89"',
59
+ 'validation.relation': 'Choose valid records',
60
+ 'validation.attachments': 'Attach valid files',
61
+ 'validation.attachments.distinct': 'The same file is attached more than once',
62
+ 'validation.attachments.max': 'Attach at most {max} files',
63
+ 'errors.E_NOT_FOUND.1': 'Record not found',
64
+ 'errors.E_NOT_FOUND.2': 'Entity not found',
65
+ 'errors.E_DUPLICATE': 'This value is already used by another record',
66
+ 'errors.E_DUPLICATE.fields': 'This value is already used by another record: {fields}',
67
+ 'errors.E_NOT_NULL': 'The record cannot be saved: a field does not accept an empty value in the database',
68
+ 'errors.E_NOT_NULL.field': 'The record cannot be saved: the field {field} does not accept an empty value in the database',
69
+ 'errors.E_RELATION': 'Check the related records',
70
+ 'errors.E_FORBIDDEN.1': 'You do not have permission for this action',
71
+ 'errors.E_FIELD_FORBIDDEN.1': 'You do not have permission for this field',
72
+ 'errors.E_ORG_UNIT': 'Organizational unit not found',
73
+ 'errors.E_VERSION_CONFLICT': 'Another user changed this record. Refresh the page and try again.',
74
+ 'errors.E_FIELD_FORBIDDEN.2': 'You do not have permission to edit the line items',
75
+ 'errors.E_ALREADY_AMENDED': 'This document has already been amended by copy',
76
+ 'errors.E_FIELD_INVALID': 'The field is not an attachments field',
77
+ 'errors.E_ATTACHMENT.1': 'The attachment belongs to another field',
78
+ 'errors.E_ATTACHMENT.2': 'The attachment belongs to another record',
79
+ 'errors.E_ATTACHMENT.3': 'The attachment is linked to another record',
80
+ 'errors.E_ATTACHMENT.4': 'The attachment belongs to another organizational unit',
81
+ 'errors.E_DOCUMENT_LOCKED': 'The document is approved or cancelled and accepts no new attachments',
82
+ 'errors.E_ASSIGNEE.1': 'Choose the assignee',
83
+ 'errors.E_ASSIGNMENT_TITLE': 'The task title is required and must not exceed 200 characters',
84
+ 'errors.E_ASSIGNMENT_NOTE.1': 'The note must not exceed 2000 characters',
85
+ 'errors.E_ASSIGNMENT_DUE': 'The due date is invalid',
86
+ 'errors.E_ASSIGNEE.2': 'You cannot assign a user who cannot view the record',
87
+ 'errors.E_CURSOR': 'The page cursor is invalid',
88
+ 'errors.E_ASSIGNMENT_NOT_FOUND': 'Task not found',
89
+ 'errors.E_ASSIGNMENT_NOTE.2': 'The closing note is invalid',
90
+ 'errors.E_ASSIGNMENT_NOTE.3': 'The closing note must not exceed 500 characters',
91
+ 'errors.E_ASSIGNMENT_WORKFLOW': 'Approval steps are decided from the approvals inbox',
92
+ 'errors.E_FORBIDDEN.2': 'Only the assignee can complete the task',
93
+ 'errors.E_FORBIDDEN.3': 'Only the person who assigned the task can cancel it',
94
+ 'errors.E_ASSIGNMENT_CLOSED': 'The task is already closed',
95
+ 'errors.E_ASSIGNMENT_NOTE.4': 'Write a closing note before closing the task',
96
+ 'errors.E_ASSIGNMENT_REASON': 'The closing reason must not exceed 500 characters',
97
+ 'errors.E_COMMENT_BODY': 'The comment text is required and must not exceed 5000 characters',
98
+ 'errors.E_MENTION.1': 'You cannot mention a user who cannot view the record',
99
+ 'errors.E_COMMENT_NOT_FOUND': 'Comment not found',
100
+ 'errors.E_TAGS.1': 'Tags must be a list of at most 20 tags',
101
+ 'errors.E_TAGS.2': 'A tag may contain only letters, numbers and spaces, up to 60 characters',
102
+ 'errors.E_MENTION.2': 'Mentions must be a list of at most 20 users',
103
+ 'errors.E_MENTION.3': 'The user identifier is invalid',
104
+ 'errors.E_ACTIVITY_DATE': 'Invalid date',
105
+ 'errors.E_LAST_ADMIN': 'This change would remove the last active system administrator. Assign another administrator first.',
106
+ 'errors.E_SELF_ADMIN_ACCESS': 'You cannot remove system administration access from your own account. Ask another administrator to change it.',
107
+ 'errors.E_MAIL_TEST_COOLDOWN': 'Wait a moment before sending the test email again',
108
+ 'errors.E_MAIL_TEST_SEND': 'The test email could not be sent. Check the mail settings and try again.',
109
+ 'errors.E_MAIL_TEST_SEND.authentication': 'The mail server rejected the username or password. Check SMTP_USERNAME and SMTP_PASSWORD, and use an app password if your provider requires one.',
110
+ 'errors.E_MAIL_TEST_SEND.connection': 'The mail server refused the connection. Check SMTP_HOST and SMTP_PORT, and make sure the firewall allows the port.',
111
+ 'errors.E_MAIL_TEST_SEND.host_not_found': 'The mail server could not be found. Check the spelling of SMTP_HOST.',
112
+ 'errors.E_MAIL_TEST_SEND.tls': 'The encrypted connection to the mail server failed. Use SMTP_SECURE=true with port 465, or SMTP_SECURE=false with port 587.',
113
+ 'errors.E_MAIL_TEST_SEND.timeout': 'The connection to the mail server timed out. Check SMTP_HOST and SMTP_PORT, and make sure the server allows outgoing connections.',
114
+ 'errors.E_MAIL_TEST_SEND.sender_rejected': 'The mail server rejected the sender address. Use an address verified with your provider in MAIL_FROM_ADDRESS.',
115
+ 'errors.E_MAIL_TEST_SEND.recipient_rejected': 'The mail server rejected the recipient address. Check your account email and try again.',
116
+ 'errors.E_MAIL_TEST_SEND.password_unreadable': 'The saved mail password cannot be opened, usually after APP_KEY changed. Enter the password again in the mail tab, then try again.',
117
+ 'errors.E_MAIL_NOT_CONFIGURED': 'The mail configuration is incomplete. Open “Mail setup”, complete the missing variables, then restart the server.',
118
+ 'errors.E_MAIL_TEST_ANSWER': 'Choose whether the message arrived or not',
119
+ 'errors.E_MAIL_TEST_STALE': 'This test can no longer be confirmed. Send a new test message.',
120
+ 'errors.E_TEMPLATE_SUBJECT': 'The subject is required and must not exceed 200 characters',
121
+ 'errors.E_TEMPLATE_BODY': 'The message body is required and must not exceed 4000 characters',
122
+ 'errors.E_TEMPLATE_NOT_FOUND': 'Template not found',
123
+ // Print templates (ADR 048).
124
+ 'errors.E_PRINT_TEMPLATE_NOT_FOUND': 'Print template not found',
125
+ 'errors.E_PRINT_TEMPLATE_LABEL': 'The template name is required and must not exceed 200 characters',
126
+ 'errors.E_PRINT_TEMPLATE_BODY.1': 'The template body is required',
127
+ 'errors.E_PRINT_TEMPLATE_BODY.2': 'Nothing is left of the template body after removing disallowed tags',
128
+ 'errors.E_PRINT_TEMPLATE_PAPER': 'Choose a valid paper size and orientation',
129
+ 'errors.E_PRINT_TEMPLATE_TEXT': 'The header and footer must not exceed 500 characters each',
130
+ 'errors.E_PRINT_TEMPLATE_KEY': 'The template key uses lower-case letters, digits and underscores and starts with a letter',
131
+ 'errors.E_PRINT_TEMPLATE_KEY_TAKEN': 'This key is used by a template defined in the system',
132
+ 'errors.E_PRINT_PREVIEW_EMPTY': 'There is no record available to you to preview the template',
133
+ 'errors.E_PRINT_LINE_LIMIT': 'The document has more lines than can be printed (1000 lines)',
134
+ 'errors.E_PRINT_TEMPLATE_CONFLICT': 'Another administrator changed this template after you opened it. Reopen it and apply your edit again.',
135
+ 'errors.E_PRINT_TEMPLATE_EXISTS': 'A print template with this key already exists for this resource',
136
+ 'flash.print_templates.saved': 'Print template saved',
137
+ 'flash.print_templates.versioned': 'A new version of the print template was saved',
138
+ 'errors.E_NOTIFICATION_NOT_FOUND': 'Notification not found',
139
+ 'errors.E_ORG_NOT_FOUND': 'Parent unit not found',
140
+ 'errors.E_ORG_HAS_CHILDREN': 'Move the child units first',
141
+ 'errors.E_ORG_HAS_MEMBERS': 'Remove the unit members and its scoped roles first',
142
+ 'errors.E_ROLE_NAME': 'The role name is required (up to 100 characters)',
143
+ 'errors.E_ROLE_KEY': 'The role key uses lowercase English letters, numbers and underscores, and starts with a letter (such as project_manager)',
144
+ 'errors.E_ROLE_LEVEL': 'The permission level is a number from 0 to 9',
145
+ 'errors.E_ROLE_EXISTS': 'A role with this name already exists',
146
+ 'errors.E_ROLE_KEY_EXISTS': 'A role with this key already exists',
147
+ 'errors.E_ROLE_KEY_FIXED': 'The role key cannot change once set because workflows and modules depend on it',
148
+ 'errors.E_BOOTSTRAP_ROLE': 'The base system administrator role name is protected to restore access when needed',
149
+ 'errors.E_ROLE_IN_USE': 'A role assigned to users cannot be deleted',
150
+ 'errors.E_RULE_NOT_FOUND': 'Rule not found',
151
+ 'errors.E_RULE_SUBJECT': 'Unknown entity',
152
+ 'errors.E_RULE_ACTION': 'The action is not available for this entity',
153
+ 'errors.E_RULE_CONDITIONS.1': 'Conditions require a specific entity',
154
+ 'errors.E_RULE_CONDITIONS.2': 'Conditions must be an object',
155
+ 'errors.E_RULE_CONDITIONS.3': 'orgPath is reserved for the role scope',
156
+ 'errors.E_RULE_CONDITIONS.4': 'The current user accepts only the equals, not equals and in list operators',
157
+ 'errors.E_RULE_FIELDS.1': 'A field list requires a specific entity',
158
+ 'errors.E_RULE_FIELDS.2': 'The field list is invalid',
159
+ 'errors.E_ROLE_NOT_FOUND': 'Role not found',
160
+ 'errors.E_VIEW_NAME': 'The view name is required and must not exceed 60 characters',
161
+ 'errors.E_VIEW_LIMIT.1': 'This entity has reached the maximum number of shared views',
162
+ 'errors.E_VIEW_LIMIT.2': 'You have reached the maximum number of saved views for this entity',
163
+ 'errors.E_VIEW_NOT_FOUND': 'Saved view not found',
164
+ 'errors.E_FORBIDDEN.4': 'You do not have permission for this entity',
165
+ 'errors.E_SETTING_JSON': 'The value must be valid JSON',
166
+ 'errors.E_SETTING_KEY': 'The key starts with a letter and contains only letters, numbers and dots',
167
+ 'errors.E_SETTING_SCOPE.1': 'Unknown scope',
168
+ 'errors.E_SETTING_SCOPE.2': 'Interface preferences are set at the system level',
169
+ 'errors.E_SETTING_READ_ONLY': 'This operational key is read-only',
170
+ 'errors.E_SETTING_NOT_FOUND': 'Setting not found',
171
+ 'errors.E_SETTING_SCOPE.3': 'The scope identifier is required',
172
+ 'errors.E_SETUP_COOLDOWN.1': 'Wait a moment before checking again',
173
+ 'errors.E_SETUP_CHECK_FAILED': 'The check failed. Review the service settings and connection, then try again.',
174
+ 'errors.E_SETUP_COOLDOWN.2': 'Wait a minute before sending the test notification again',
175
+ 'errors.E_UI_PREFERENCES': 'Choose a valid calendar and set the close confirmation and transition options',
176
+ 'errors.E_ROLE_ASSIGNED': 'This role is already assigned',
177
+ 'errors.E_ROLE_NOT_ASSIGNED': 'Assignment not found',
178
+ 'errors.E_MEMBERSHIP_EXISTS': 'The user is already a member of this unit',
179
+ 'errors.E_MEMBERSHIP_NOT_FOUND': 'Membership not found',
180
+ 'errors.E_SELF_DISABLE': 'You cannot disable your own account',
181
+ 'errors.E_USER_NOT_FOUND': 'User not found',
182
+ 'errors.E_INVITATION_INVALID': 'The invitation is invalid or has expired. Ask the administrator for a new invitation.',
183
+ 'errors.E_INVITATION_INPUT': 'Enter a valid name and email address',
184
+ 'errors.E_FORBIDDEN.5': 'You do not have permission to invite users',
185
+ 'errors.E_USER_EXISTS': 'An account with this email already exists',
186
+ 'errors.E_INVITATION_WAIT': 'Wait a minute before resending the invitation',
187
+ 'errors.E_INVITATION_DELIVERY': 'The invitation could not be sent. Check the mail settings and try again.',
188
+ 'errors.E_PASSWORD': 'The password must be 8 to 64 characters',
189
+ 'errors.E_FORBIDDEN.6': 'You do not have permission to add to this entity',
190
+ 'errors.E_IMPORT_FILE.1': 'The file is empty',
191
+ 'errors.E_IMPORT_FILE.2': 'The file is larger than 5 MB',
192
+ 'errors.E_IMPORT_FILE.3': 'The file must have a header row (100 columns at most)',
193
+ 'errors.E_IMPORT_STATE': 'Processing of this batch has already started',
194
+ 'errors.E_IMPORT_MAPPING.1': 'The column mapping is invalid',
195
+ 'errors.E_IMPORT_MAPPING.2': 'Column not found',
196
+ 'errors.E_IMPORT_NOT_FOUND': 'Batch not found',
197
+ 'errors.E_INBOUND_KEY.1': 'A source with this key already exists',
198
+ 'errors.E_INBOUND_NOT_FOUND': 'Source not found',
199
+ 'errors.E_INBOUND_ACTIVE': 'The receiving state must be true or false',
200
+ 'errors.E_INBOUND_DELIVERY_NOT_FOUND': 'Delivery not found',
201
+ 'errors.E_INBOUND_KEY.2': 'The key uses lowercase English letters, numbers and underscores, and starts with a letter (such as github)',
202
+ 'errors.E_INBOUND_NAME': 'The name is required and must not exceed 100 characters',
203
+ 'errors.E_INBOUND_ALGORITHM': 'The algorithm is sha256 or sha512',
204
+ 'errors.E_INBOUND_DEDUPE': 'Duplicate content prevention must be true or false',
205
+ 'errors.E_INBOUND_HEADER': 'The signature prefix is invalid',
206
+ 'errors.E_WEBHOOK_NOT_FOUND': 'Webhook not found',
207
+ 'errors.E_DELIVERY_NOT_FOUND': 'No failed attempt has this identifier',
208
+ 'errors.E_WEBHOOK_EVENTS': 'Choose at least one known event',
209
+ 'errors.E_WEBHOOK_URL.1': 'Internal network addresses are not allowed',
210
+ 'errors.E_WEBHOOK_URL.2': 'The URL is invalid',
211
+ 'errors.E_WEBHOOK_URL.3': 'The URL must start with https://',
212
+ 'errors.E_WEBHOOK_URL.4': 'The URL is not allowed',
213
+ 'errors.E_CONSTRAINT': 'Check the values and related records',
214
+ 'errors.E_INTERNAL': 'The operation could not be completed',
215
+ 'errors.E_WORKFLOW_DECISION': 'The decision is invalid',
216
+ 'errors.E_WORKFLOW_NOT_FOUND.1': 'Workflow not found',
217
+ 'errors.E_WORKFLOW_STATE': 'No approval is required from you at this step',
218
+ 'errors.E_WORKFLOW_COMMENT': 'Write a note for the decision',
219
+ 'errors.E_WORKFLOW_NOT_FOUND.2': 'No failed workflow has this identifier',
220
+ 'flash.account_sessions_controller.1': 'Your current session has ended. Sign in again when needed.',
221
+ 'flash.account_sessions_controller.2': 'The session has ended.',
222
+ 'errors.E_JOB_NOT_FOUND': 'Job not found',
223
+ 'errors.E_JOB_NOT_FAILED': 'Only failed jobs can be retried',
224
+ 'errors.E_SETUP_SERVICE': 'Unknown service',
225
+ 'errors.E_SETUP_CONFIRM': 'Identity confirmation is required',
226
+ 'errors.E_SELF_IMPERSONATE': 'You cannot impersonate your own account',
227
+ 'errors.E_ALREADY_IMPERSONATING': 'End the current impersonation first',
228
+ 'errors.E_USER_DISABLED': 'A disabled account cannot be impersonated',
229
+ 'errors.E_IMPERSONATE_ADMIN': 'Another administrator account cannot be impersonated',
230
+ 'errors.E_NOT_IMPERSONATING': 'No impersonation is active',
231
+ 'errors.E_IMPERSONATOR_REVOKED': 'The administrator account is no longer available',
232
+ 'flash.admin_sessions_controller.1': 'The session has ended and its owner will be asked to sign in again.',
233
+ 'flash.admin_sessions_controller.2': 'The session does not exist or has already ended.',
234
+ 'errors.E_IMPERSONATING': 'An access token cannot be created while impersonating',
235
+ 'errors.E_TOKEN_NAME': 'The token name is required and must not exceed 60 characters',
236
+ 'errors.E_TOKEN_EXPIRY': 'The validity period is between 1 and 365 days',
237
+ 'errors.E_TOKEN_LIMIT': 'You have reached the maximum number of tokens (20)',
238
+ 'errors.E_TOKEN_NOT_FOUND': 'Token not found',
239
+ 'errors.E_NOT_FOUND.3': 'Attachment not found',
240
+ 'errors.E_UPLOAD_GRANT': 'The upload permission has expired or is not yours',
241
+ 'errors.E_FORBIDDEN.7': 'You do not have permission to upload an attachment to this field',
242
+ 'errors.E_UPLOAD_LIMIT': 'You have many uploaded files not yet saved to a record. Save the open records or wait until they are cleaned up.',
243
+ 'errors.E_FILE_REQUIRED': 'Choose a file to upload',
244
+ 'errors.E_AVATAR_TYPE': 'The profile picture must be a PNG or WebP image',
245
+ 'errors.E_AVATAR_TYPE.animated': 'The profile picture must be a still image',
246
+ 'errors.E_AVATAR_CORRUPT': 'The image file is damaged or incomplete',
247
+ 'errors.E_AVATAR_SIZE': 'The profile picture is larger than 1 MB',
248
+ 'errors.E_AVATAR_DIMENSIONS': 'The profile picture must be between 32 and 512 pixels on each side',
249
+ 'errors.E_AVATAR_REQUIRED': 'Choose an image to upload',
250
+ 'errors.E_AVATAR_IMPERSONATING': 'The profile picture cannot be changed while impersonating',
251
+ 'flash.avatar.updated': 'The profile picture was saved.',
252
+ 'flash.avatar.removed': 'The profile picture was removed.',
253
+ 'errors.E_ATTACHMENT_FILE_MISSING': 'The attachment file is not available in storage',
254
+ 'flash.password_reset_controller.1': 'If the email is registered with us, you will receive a message with a reset link within minutes.',
255
+ 'flash.password_reset_controller.2': 'The reset link is invalid or has expired. Request a new link.',
256
+ 'flash.password_reset_controller.3': 'Your password has been changed. Sign in with the new password.',
257
+ 'errors.E_PDF_UNAVAILABLE': 'PDF conversion is not enabled; print from the browser instead',
258
+ 'flash.profile_controller.1': 'Profile saved.',
259
+ 'flash.profile_controller.2': 'Your password has been changed and your other sessions and access tokens have ended.',
260
+ 'errors.E_PAGE_OVERRIDE': 'This entity has a custom page',
261
+ 'flash.user_invitations_controller.1': 'The invitation has been emailed. It can be resent after a minute, which cancels the previous link.',
262
+ 'flash.user_invitations_controller.2': 'Your account has been created. Sign in with your new password; the administrator assigns your work permissions.',
263
+ 'errors.E_BAD_CSRF_TOKEN': 'The request has expired. Refresh the page and try again.',
264
+ 'errors.E_UNAUTHORIZED_ACCESS': 'Sign in to continue.',
265
+ 'errors.E_FORBIDDEN.8': 'This area is for administrators only',
266
+ 'errors.E_ACCOUNT_DISABLED': 'This account is disabled',
267
+ 'errors.E_TOKEN_SCOPE': 'The token scope does not allow this request',
268
+ 'errors.E_UNAUTHORIZED': 'Sign in first',
269
+ 'errors.E_STREAM_REQUEST': 'The live connection request is invalid',
270
+ 'errors.E_ATTACHMENT.5': 'The attachment does not exist or is not yours',
271
+ 'errors.E_VIEW_QUERY.1': 'The view definition is invalid',
272
+ 'errors.E_VIEW_QUERY.2': 'The search text is invalid',
273
+ 'errors.E_VIEW_QUERY.3': 'This entity does not support text search',
274
+ 'errors.E_VIEW_QUERY.4': 'The sort field is not supported',
275
+ 'errors.E_VIEW_QUERY.5': 'The sort direction is invalid',
276
+ 'errors.E_VIEW_QUERY.6': 'A sort direction needs a sort field',
277
+ 'errors.E_VIEW_QUERY.7': 'The view filter is invalid',
278
+ 'errors.E_ROUTE_NOT_FOUND.1': 'Page not found',
279
+ 'errors.E_ROUTE_NOT_FOUND.2': 'Session not found',
280
+ 'errors.E_FORBIDDEN.9': 'You are not authorized to access this page',
281
+ 'errors.parentView': 'Saving {child} requires permission to view {parent}',
282
+ 'errors.E_FORBIDDEN.10': 'Sharing a view requires permission to edit this resource',
283
+ 'errors.E_TOO_MANY_REQUESTS': 'Too many attempts in a short time. Wait a minute and try again.',
284
+ 'errors.E_IMPORT_FILE.4': 'Choose a CSV file',
285
+ 'errors.E_NOT_FOUND.4': 'The identifier is invalid',
286
+ 'flash.session_controller.1': 'The email or password is incorrect',
287
+ 'flash.session_controller.2': 'This account is disabled. Contact the system administrator.',
288
+ 'flash.auth_middleware.1': 'This session has ended. Sign in again.',
289
+ 'flash.oauth_controller.1': 'Sign-in through the provider failed. If you have an account, sign in with your password or contact the system administrator.',
290
+ 'flash.oauth_controller.2': 'You cancelled the sign-in before granting permission.',
291
+ 'flash.oauth_controller.3': 'The sign-in request has expired. Try again.',
292
+ 'flash.oauth_controller.4': 'Sign-in requires an email address verified by the provider.',
293
+ 'flash.oauth_controller.5': 'An account with this email has not been verified yet. Sign in with your password, or reset your password from the email link, then try again.',
294
+ 'flash.new_account_controller.1': 'Your sign-up request has been received. If the email was available, your account has been created and you can sign in now; if it was already registered or invited, sign in or use the invitation or password reset link.',
295
+ 'flash.account_sessions_controller.3': 'There are no other sessions.',
296
+ 'flash.profile_controller.3': 'The current password is incorrect',
297
+ 'flash.jobs_controller.1': 'The job was returned to the queue',
298
+ 'flash.notifications_controller.1': 'Notification marked as read',
299
+ 'flash.notifications_controller.2': 'All notifications marked as read',
300
+ 'flash.org_units_controller.1': 'Unit added',
301
+ 'flash.org_units_controller.2': 'Renamed',
302
+ 'flash.org_units_controller.3': 'Unit moved',
303
+ 'flash.org_units_controller.4': 'Unit deleted',
304
+ 'flash.roles_controller.1': 'Role created',
305
+ 'flash.roles_controller.2': 'Role updated',
306
+ 'flash.roles_controller.3': 'Role deleted',
307
+ 'flash.roles_controller.4': 'Rule saved',
308
+ 'flash.roles_controller.5': 'Rule deleted',
309
+ 'flash.settings_controller.1': 'The send request was accepted. Check your inbox and confirm the message arrived.',
310
+ 'flash.settings_controller.2': 'Your confirmation that the message arrived was recorded',
311
+ 'flash.settings_controller.3': 'Recorded that the message did not arrive. Check the spam folder and the mail settings.',
312
+ 'flash.settings_controller.4': 'Setting saved',
313
+ 'flash.settings_controller.5': 'Setting deleted',
314
+ 'flash.setup_controller.1': 'The service check passed',
315
+ 'flash.setup_controller.2': 'The current identity was approved',
316
+ 'flash.setup_controller.3': 'The test notification was created. Open the notifications and mark it as read.',
317
+ 'flash.templates_controller.1': 'Template saved',
318
+ 'flash.templates_controller.2': 'The template was restored to its default text',
319
+ 'flash.users_controller.1': 'Role assigned',
320
+ 'flash.users_controller.2': 'Role removed',
321
+ 'flash.users_controller.3': 'User added to the unit',
322
+ 'flash.users_controller.4': 'Membership removed',
323
+ 'flash.users_controller.5': 'Account disabled',
324
+ 'flash.users_controller.6': 'Account enabled',
325
+ 'flash.users_controller.7': 'The user sessions and access tokens have ended',
326
+ 'flash.users_controller.8': 'Access tokens revoked',
327
+ 'flash.users_controller.9': 'You are now browsing as the user',
328
+ 'flash.users_controller.10': 'You are back in your account',
329
+ 'flash.language.saved': 'Interface language saved.',
330
+ 'errors.E_EXPORT_LIMIT': 'The matching records exceed the export limit (5000 records). Narrow the filters and try again.',
331
+ 'errors.E_BULK.1': 'Select between 1 and 100 records for a bulk action',
332
+ 'errors.E_BULK.2': 'Unknown bulk action',
333
+ 'errors.E_BULK_ROW': 'The action could not be completed for this record',
334
+ 'errors.E_NOT_FOUND.5': 'Dashboard not found',
335
+ 'errors.E_DOCUMENT_LOCKED.2': 'The document is submitted or cancelled and does not accept this action',
336
+ 'errors.E_DOCUMENT_STATE': 'The document state does not allow this action',
337
+ 'list.bulk.delete': 'Delete',
338
+ 'list.bulk.deleteConfirm': 'Delete the selected records? They move to the deleted records and can be restored.',
339
+ 'list.bulk.restore': 'Restore',
340
+ 'list.bulk.submit': 'Submit',
341
+ 'list.bulk.submitConfirm': 'Submit the selected documents? Submitted documents cannot be edited.',
342
+ 'list.bulk.cancel': 'Cancel submission',
343
+ 'list.bulk.cancelConfirm': 'Cancel the submission of the selected documents?',
344
+ 'list.value.yes': 'Yes',
345
+ 'list.value.no': 'No',
346
+ 'list.value.none': 'Not set',
347
+ 'list.value.unavailable': 'Record not available',
348
+ 'list.status.0': 'Draft',
349
+ 'list.status.1': 'Submitted',
350
+ 'list.status.2': 'Cancelled',
351
+ ...englishInterfaceMessages,
352
+ });
@@ -0,0 +1,3 @@
1
+ import type { arabicInterfaceMessages } from './ar_ui.js';
2
+ /** English interface strings; see ar_ui.ts. */
3
+ export declare const englishInterfaceMessages: Partial<Record<keyof typeof arabicInterfaceMessages, string>>;