Files
Signal-Desktop/ts/types/I18N.ts
2020-07-30 13:27:44 -07:00

19 lines
343 B
TypeScript

export type LocaleMessagesType = {
[key: string]: {
message: string;
description?: string;
};
};
export type ReplacementValuesType<T> = {
[key: string]: T;
};
export type LocaleType = {
i18n: (
key: string,
placeholders: Array<string> | ReplacementValuesType<string>
) => string;
messages: LocaleMessagesType;
};