-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmessages.ts
More file actions
47 lines (40 loc) · 1.86 KB
/
Copy pathmessages.ts
File metadata and controls
47 lines (40 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
/**
* Activity summary verb templates (framework#3039).
*
* Keys are single-segment on purpose: both i18n implementations (the core
* memory fallback and service-i18n's FileI18nAdapter) resolve dot-notation
* keys by walking NESTED objects, so a flat record key containing a dot
* (`'activity.created'`) would never resolve — `messages.activityCreated`
* does. Interpolation uses the shared `{{param}}` convention.
*/
import type { TranslationData } from '@objectstack/spec/system';
type Messages = NonNullable<TranslationData['messages']>;
export const enMessages: Messages = {
activityCreated: 'Created {{object}} "{{label}}"',
activityUpdated: 'Updated {{object}} "{{label}}"',
activityDeleted: 'Deleted {{object}} "{{label}}"',
mentionedYou: '{{actor}} mentioned you',
mentionedYouAnonymous: 'You were mentioned',
};
export const zhCNMessages: Messages = {
activityCreated: '创建了 {{object}} "{{label}}"',
activityUpdated: '更新了 {{object}} "{{label}}"',
activityDeleted: '删除了 {{object}} "{{label}}"',
mentionedYou: '{{actor}} 提到了你',
mentionedYouAnonymous: '有人提到了你',
};
export const jaJPMessages: Messages = {
activityCreated: '{{object}}「{{label}}」を作成しました',
activityUpdated: '{{object}}「{{label}}」を更新しました',
activityDeleted: '{{object}}「{{label}}」を削除しました',
mentionedYou: '{{actor}}さんがあなたをメンションしました',
mentionedYouAnonymous: 'あなたがメンションされました',
};
export const esESMessages: Messages = {
activityCreated: 'Creó {{object}} "{{label}}"',
activityUpdated: 'Actualizó {{object}} "{{label}}"',
activityDeleted: 'Eliminó {{object}} "{{label}}"',
mentionedYou: '{{actor}} te mencionó',
mentionedYouAnonymous: 'Te han mencionado',
};