Skip to content

Commit f7fc2d4

Browse files
CopilotCopilot
andcommitted
Add new translation keys to DETAIL_DEFAULT_TRANSLATIONS
Add all new i18n keys from en.ts to the detail plugin's fallback translations, covering: comments, attachments, diff, discussion, rich text editor, subscription, navigation, activity timeline, and replies sections. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a85b14d commit f7fc2d4

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

packages/plugin-detail/src/useDetailTranslation.ts

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,68 @@ export const DETAIL_DEFAULT_TRANSLATIONS: Record<string, string> = {
102102
'detail.sortBy': 'Sort by',
103103
'detail.filterPlaceholder': 'Filter...',
104104
'detail.highlightFields': 'Key Fields',
105+
// Comments
106+
'detail.comments': 'Comments',
107+
'detail.searchComments': 'Search comments…',
108+
'detail.addCommentPlaceholder': 'Add a comment… (Ctrl+Enter to submit)',
109+
'detail.noMatchingComments': 'No matching comments',
110+
'detail.noCommentsYet': 'No comments yet',
111+
'detail.pinned': 'Pinned',
112+
'detail.pin': 'Pin',
113+
'detail.unpin': 'Unpin',
114+
'detail.justNow': 'just now',
115+
'detail.minutesAgo': '{{count}}m ago',
116+
'detail.hoursAgo': '{{count}}h ago',
117+
'detail.daysAgo': '{{count}}d ago',
118+
// Attachments
119+
'detail.dropFilesToUpload': 'Drop files here or click to upload',
120+
'detail.attachmentCount': '{{count}} attachment',
121+
'detail.attachmentCountPlural': '{{count}} attachments',
122+
'detail.removeAttachment': 'Remove attachment',
123+
// Diff
124+
'detail.unifiedDiff': 'Unified diff',
125+
'detail.sideBySideDiff': 'Side-by-side diff',
126+
'detail.noChanges': 'No changes',
127+
'detail.previousVersion': 'Previous',
128+
'detail.currentVersion': 'Current',
129+
// Discussion
130+
'detail.discussion': 'Discussion',
131+
'detail.showDiscussion': 'Show Discussion ({{count}})',
132+
'detail.hideDiscussion': 'Hide discussion',
133+
// Rich text editor
134+
'detail.bold': 'Bold (Ctrl+B)',
135+
'detail.italic': 'Italic (Ctrl+I)',
136+
'detail.listFormat': 'List',
137+
'detail.inlineCode': 'Inline code',
138+
'detail.mentionSomeone': 'Mention someone',
139+
'detail.preview': 'Preview',
140+
'detail.submitComment': 'Submit (Ctrl+Enter)',
141+
'detail.writeComment': 'Write a comment…',
142+
// Subscription
143+
'detail.subscribedTooltip': 'Subscribed — click to unsubscribe',
144+
'detail.unsubscribedTooltip': 'Subscribe to notifications',
145+
// Navigation
146+
'detail.firstRecord': 'First record (Home)',
147+
'detail.previousRecordKey': 'Previous record (←)',
148+
'detail.nextRecordKey': 'Next record (→)',
149+
'detail.lastRecord': 'Last record (End)',
150+
'detail.noRecords': 'No records',
151+
'detail.searchWhileNavigating': 'Search while navigating',
152+
'detail.searchRecords': 'Search records…',
153+
// Activity timeline
154+
'detail.allActivity': 'All Activity',
155+
'detail.commentsOnly': 'Comments Only',
156+
'detail.fieldChangesFilter': 'Field Changes',
157+
'detail.tasksOnly': 'Tasks Only',
158+
'detail.leaveCommentPlaceholder': 'Leave a comment… (Ctrl+Enter to submit)',
159+
'detail.noActivity': 'No activity recorded',
160+
'detail.loadMore': 'Load more',
161+
'detail.edited': '(edited)',
162+
'detail.via': 'via {{source}}',
163+
// Replies
164+
'detail.replyCount': '{{count}} reply',
165+
'detail.replyCountPlural': '{{count}} replies',
166+
'detail.replyPlaceholder': 'Reply…',
105167
};
106168

107169
/**

0 commit comments

Comments
 (0)