Files
chatkit/dist/react/messenger-labels.d.ts

222 lines
6.9 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { MessengerDayLabels, MessengerPreviewLabels, MessengerRefusalLabels, MessengerTitleLabels, MessengerTypingLabels } from "../messenger.js";
/**
* Every word the Messenger shows. English here; a product in another language
* passes its own (`labels`), a few or all. `{token}` is replaced; nothing is
* ever glued together from parts, so each sentence can be translated whole.
*/
export type MessengerLabels = {
title: string;
newConversation: string;
search: string;
searchPlaceholder: string;
filter: string;
filterAll: string;
filterUnread: string;
listEmpty: string;
listEmptyAction: string;
/** "{query}" is what was typed. */
noMatch: string;
noUnread: string;
listFailed: string;
retry: string;
loading: string;
/** For a screen reader, on a row's badge: "{n} unread". */
unread: string;
conversations: string;
/** Beside the list on a wide screen, with nothing open. */
pickOne: string;
back: string;
online: string;
/** "{n} people". */
people: string;
/** "{name} is here": after the people line, so it must be short. */
agentHere: string;
more: string;
leave: string;
leaveConfirm: string;
leaveFailed: string;
/** "Conversation with {name}". */
thread: string;
threadEmpty: string;
threadFailed: string;
/** "Type {mention} to bring {name} in. Everyone here sees its answer." */
agentHint: string;
/** In a conversation with only an agent: "{name} answers every message here." */
agentDirect: string;
loadOlder: string;
loadingOlder: string;
olderFailed: string;
newMessages: string;
jump: string;
you: string;
edited: string;
sending: string;
sent: string;
/** The second grey tick: on the other person's device, not yet read. */
delivered: string;
read: string;
/** Where a message deleted for everyone was. */
deleted: string;
/** The same, for the viewer's own. */
deletedByYou: string;
notSent: string;
retrySend: string;
discard: string;
agent: string;
/** "for {name}". */
onBehalfOf: string;
/** "{name} is thinking…". */
thinking: string;
/** "{name} has not answered. Ask again in a moment." */
agentQuiet: string;
dismiss: string;
typing: MessengerTypingLabels;
reconnecting: string;
offline: string;
placeholder: string;
composer: string;
send: string;
attach: string;
/** "Ask {name}". */
askAgent: string;
cannotWrite: string;
editing: string;
cancel: string;
waitForUploads: string;
voiceMessage: string;
voiceHint: string;
voiceStart: string;
voiceStop: string;
/** "Recording {time}". */
voiceRecording: string;
voiceFailed: string;
voiceTake: string;
voiceAgain: string;
voiceAdd: string;
/** On the box's send slot while the box is empty. */
voiceRecord: string;
/** Under the timer while recording: what the two buttons do. */
voiceRecordingHint: string;
voiceDiscard: string;
voiceSend: string;
voicePlay: string;
voicePause: string;
voicePosition: string;
/** "Playback speed: {speed}×". */
voiceSpeed: string;
voiceUnplayable: string;
voiceTooShort: string;
sendFailed: string;
editFailed: string;
removeFailed: string;
/** "Uploading {name}". */
uploading: string;
/** "{name} could not be uploaded." */
uploadFailed: string;
retryUpload: string;
removeUpload: (name: string) => string;
refusal: MessengerRefusalLabels;
preview: MessengerPreviewLabels;
download: string;
/** "Open {name}". */
open: string;
playVideo: string;
viewer: string;
close: string;
previous: string;
next: string;
/** "{i} of {n}". */
position: string;
unavailable: string;
/** A message with nothing left to draw (no words, files or card): said, never an empty row. */
emptyMessage: string;
actions: string;
reply: string;
/** Above the box while answering: "Replying to {name}". */
replyingTo: string;
/** On a quote whose message is not loaded: a screen reader's name for it. */
quoted: string;
/** "React with {emoji}". */
react: string;
/** On a chip: "{emoji}, {n}". */
reactionCount: string;
reactFailed: string;
/** In the amount sheet of an app's action. */
amount: string;
note: string;
amountInvalid: string;
copy: string;
edit: string;
remove: string;
removeConfirm: string;
/** Under a voice message: show and hide its words. */
voiceTextShow: string;
voiceTextHide: string;
voiceTextLoading: string;
/** Nothing was heard in it. */
voiceTextEmpty: string;
voiceTextFailed: string;
/** Forward a message to other conversations. */
forward: string;
forwardTitle: string;
forwardSearch: string;
/** "Send to {n}". */
forwardSend: string;
forwardDone: string;
forwardFailed: string;
/** Over a message that was sent on from elsewhere. */
forwarded: string;
pin: string;
unpin: string;
mute: string;
unmute: string;
/** For a screen reader, on a row. */
pinned: string;
muted: string;
/** Pin or Mute did not reach the server. */
settingFailed: string;
/** Delete only from the viewer's view. */
hide: string;
hideConfirm: string;
/** The message's details: who received and read it, what it said before. */
info: string;
infoTitle: string;
/** "Read {time}". */
readAt: string;
/** "Delivered {time}". */
deliveredAt: string;
notDelivered: string;
infoFailed: string;
/** Heading over what an edited message said before. */
editHistory: string;
/** "Until {time}": how long a version stood. */
editedUntil: string;
newTitle: string;
peopleSearch: string;
peoplePlaceholder: string;
peopleHint: string;
peopleEmpty: string;
peopleFailed: string;
searchMessages: string;
searchMessagesPlaceholder: string;
searchMessagesHint: string;
searchMessagesEmpty: string;
searchMessagesFailed: string;
/** A found message that is further back than the thread could load. */
searchTooFar: string;
start: string;
startFailed: string;
days: MessengerDayLabels;
titles: MessengerTitleLabels;
};
export declare const DEFAULT_MESSENGER_LABELS: MessengerLabels;
/** Overrides: any label, and any part of the grouped ones. */
export type MessengerLabelOverrides = Partial<Omit<MessengerLabels, "typing" | "refusal" | "preview" | "days" | "titles">> & {
typing?: Partial<MessengerLabels["typing"]>;
refusal?: Partial<MessengerLabels["refusal"]>;
preview?: Partial<MessengerLabels["preview"]>;
days?: Partial<MessengerLabels["days"]>;
titles?: Partial<MessengerLabels["titles"]>;
};
export declare function messengerLabels(overrides?: MessengerLabelOverrides): MessengerLabels;
//# sourceMappingURL=messenger-labels.d.ts.map