mirror of
https://github.com/bitbaum/chatkit.git
synced 2026-12-04 05:30:16 +01:00
Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 Co-authored-by: Claude <noreply@anthropic.com>
195 lines
7.4 KiB
JavaScript
195 lines
7.4 KiB
JavaScript
export const DEFAULT_MESSENGER_LABELS = {
|
||
title: "Messages",
|
||
newConversation: "New",
|
||
search: "Search conversations",
|
||
searchPlaceholder: "Name or message",
|
||
filter: "Which conversations",
|
||
filterAll: "All",
|
||
filterUnread: "Unread",
|
||
listEmpty: "No conversations yet.",
|
||
listEmptyAction: "Start a conversation",
|
||
noMatch: "No conversation matches “{query}”.",
|
||
noUnread: "Nothing unread.",
|
||
listFailed: "Your conversations could not be loaded.",
|
||
retry: "Try again",
|
||
loading: "Loading",
|
||
unread: "{n} unread",
|
||
conversations: "Conversations",
|
||
pickOne: "Choose a conversation, or start a new one.",
|
||
back: "Back to conversations",
|
||
online: "Online",
|
||
people: "{n} people",
|
||
agentHere: "{name} is here",
|
||
more: "More",
|
||
leave: "Delete conversation",
|
||
leaveConfirm: "Delete it for you? The others keep theirs.",
|
||
leaveFailed: "The conversation could not be deleted. Try again.",
|
||
thread: "Conversation with {name}",
|
||
threadEmpty: "No messages yet. Say hello.",
|
||
threadFailed: "The messages could not be loaded.",
|
||
agentHint: "Type {mention} to bring {name} in. Everyone here sees its answer.",
|
||
agentDirect: "{name} answers every message here.",
|
||
loadOlder: "Earlier messages",
|
||
loadingOlder: "Loading earlier messages",
|
||
olderFailed: "Earlier messages could not be loaded. Try again",
|
||
newMessages: "New",
|
||
jump: "Jump to the latest message",
|
||
you: "You",
|
||
edited: "edited",
|
||
sending: "Sending",
|
||
sent: "Sent",
|
||
delivered: "Delivered",
|
||
read: "Read",
|
||
deleted: "This message was deleted",
|
||
deletedByYou: "You deleted this message",
|
||
notSent: "Not sent.",
|
||
retrySend: "Try again",
|
||
discard: "Delete",
|
||
agent: "Agent",
|
||
onBehalfOf: "for {name}",
|
||
thinking: "{name} is thinking…",
|
||
agentQuiet: "{name} has not answered. Ask again in a moment.",
|
||
dismiss: "Dismiss",
|
||
typing: {
|
||
one: "{name} is typing…",
|
||
two: "{a} and {b} are typing…",
|
||
several: "Several people are typing…",
|
||
},
|
||
reconnecting: "Reconnecting…",
|
||
offline: "You are offline. New messages will show when you are back.",
|
||
placeholder: "Message",
|
||
composer: "Write a message",
|
||
send: "Send message",
|
||
attach: "Add a photo, video or file",
|
||
askAgent: "Ask {name}",
|
||
cannotWrite: "You can no longer write in this conversation.",
|
||
editing: "Editing your message",
|
||
cancel: "Cancel",
|
||
waitForUploads: "Wait for the upload to finish",
|
||
voiceMessage: "Voice message",
|
||
voiceHint: "Or tap the waveform when the box is empty",
|
||
voiceStart: "Start recording",
|
||
voiceStop: "Stop recording",
|
||
voiceRecording: "Recording {time}",
|
||
voiceFailed: "The microphone could not be opened. Allow it for this site and try again.",
|
||
voiceTake: "Your recording",
|
||
voiceAgain: "Record again",
|
||
voiceAdd: "Add to message",
|
||
voiceRecord: "Record a voice message",
|
||
voiceRecordingHint: "Send, or delete to cancel",
|
||
voiceDiscard: "Delete recording",
|
||
voiceSend: "Send voice message",
|
||
voicePlay: "Play voice message",
|
||
voicePause: "Pause",
|
||
voicePosition: "Position in the voice message",
|
||
voiceSpeed: "Playback speed: {speed}×",
|
||
voiceUnplayable: "Cannot be played here",
|
||
voiceTooShort: "That was too short to send. Tap the waveform and speak a little longer.",
|
||
sendFailed: "The message was not sent. It is still in the box; try again.",
|
||
editFailed: "The change was not saved. Try again.",
|
||
removeFailed: "The message could not be deleted. Try again.",
|
||
uploading: "Uploading {name}",
|
||
uploadFailed: "{name} could not be uploaded.",
|
||
retryUpload: "Try again",
|
||
removeUpload: (name) => `Remove ${name}`,
|
||
refusal: {
|
||
type: "{name} cannot be sent here.",
|
||
size: "{name} is too large (max {max}).",
|
||
count: "Up to {max} files in one message.",
|
||
quota: "Your storage is full ({used} of {quota}). Delete older files to send new ones.",
|
||
empty: "{name} is empty.",
|
||
},
|
||
preview: {
|
||
you: "You: ",
|
||
photo: "Photo",
|
||
photos: "{n} photos",
|
||
video: "Video",
|
||
audio: "Voice message",
|
||
file: "File",
|
||
attachments: "{n} attachments",
|
||
empty: "No messages yet",
|
||
},
|
||
download: "Download",
|
||
open: "Open {name}",
|
||
playVideo: "Play video",
|
||
viewer: "Photos and videos",
|
||
close: "Close",
|
||
previous: "Previous",
|
||
next: "Next",
|
||
position: "{i} of {n}",
|
||
unavailable: "This file is no longer available.",
|
||
emptyMessage: "This message could not be shown.",
|
||
actions: "Message",
|
||
reply: "Reply",
|
||
replyingTo: "Replying to {name}",
|
||
quoted: "Go to the message this answers",
|
||
react: "React with {emoji}",
|
||
reactionCount: "{emoji}, {n}",
|
||
reactFailed: "That reaction was not saved. Try again.",
|
||
amount: "Amount",
|
||
note: "Note (optional)",
|
||
amountInvalid: "Enter an amount above zero.",
|
||
copy: "Copy text",
|
||
edit: "Edit",
|
||
remove: "Delete for everyone",
|
||
removeConfirm: "Delete for everyone",
|
||
voiceTextShow: "Show text",
|
||
voiceTextHide: "Hide text",
|
||
voiceTextLoading: "Turning it into text…",
|
||
voiceTextEmpty: "Nothing was heard in this voice message.",
|
||
voiceTextFailed: "Could not turn this into text. Try again.",
|
||
forward: "Forward",
|
||
forwardTitle: "Forward to",
|
||
forwardSearch: "Search conversations",
|
||
forwardSend: "Send to {n}",
|
||
forwardDone: "Forwarded.",
|
||
forwardFailed: "The message could not be forwarded. Try again.",
|
||
forwarded: "Forwarded",
|
||
pin: "Pin",
|
||
unpin: "Unpin",
|
||
mute: "Mute",
|
||
unmute: "Unmute",
|
||
pinned: "Pinned",
|
||
muted: "Muted",
|
||
settingFailed: "That did not save. Try again.",
|
||
hide: "Delete for me",
|
||
hideConfirm: "Delete for me",
|
||
info: "Info",
|
||
infoTitle: "Message info",
|
||
readAt: "Read {time}",
|
||
deliveredAt: "Delivered {time}",
|
||
notDelivered: "Not delivered yet",
|
||
infoFailed: "Could not load who received this. Try again.",
|
||
editHistory: "Before it was edited",
|
||
editedUntil: "Until {time}",
|
||
newTitle: "New conversation",
|
||
peopleSearch: "Search people",
|
||
peoplePlaceholder: "Name or @handle",
|
||
peopleHint: "Type a name to find someone.",
|
||
peopleEmpty: "Nobody found.",
|
||
peopleFailed: "People could not be searched. Try again.",
|
||
searchMessages: "Search this conversation",
|
||
searchMessagesPlaceholder: "A word in a message",
|
||
searchMessagesHint: "Type a word to find a message.",
|
||
searchMessagesEmpty: "No message has that.",
|
||
searchMessagesFailed: "The conversation could not be searched. Try again.",
|
||
searchTooFar: "That message is too far back to open here.",
|
||
start: "Start conversation",
|
||
startFailed: "The conversation could not be opened. Try again.",
|
||
days: { today: "Today", yesterday: "Yesterday" },
|
||
titles: { self: "Notes to self", more: "{names} and {n} more" },
|
||
};
|
||
export function messengerLabels(overrides) {
|
||
if (!overrides)
|
||
return DEFAULT_MESSENGER_LABELS;
|
||
return {
|
||
...DEFAULT_MESSENGER_LABELS,
|
||
...overrides,
|
||
typing: { ...DEFAULT_MESSENGER_LABELS.typing, ...overrides.typing },
|
||
refusal: { ...DEFAULT_MESSENGER_LABELS.refusal, ...overrides.refusal },
|
||
preview: { ...DEFAULT_MESSENGER_LABELS.preview, ...overrides.preview },
|
||
days: { ...DEFAULT_MESSENGER_LABELS.days, ...overrides.days },
|
||
titles: { ...DEFAULT_MESSENGER_LABELS.titles, ...overrides.titles },
|
||
};
|
||
}
|
||
//# sourceMappingURL=messenger-labels.js.map
|