Files
NapCatQQ/.pnpm-store/v3/files/f7/6fddf98ac1eda3aa13effae9f9c0ea5ffb764c225561bb740a8a08298149680b833a78736ef0402ce272ee97f8025276c377f9de6928a2f74b3d0534c4e952
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

24 lines
871 B
Plaintext

import { FormatXMLElementFn, PrimitiveType } from "intl-messageformat/src/formatters";
export type LocalizedStrings = {
[lang: string]: {
[key: string]: string;
};
};
/**
* Stores a mapping of localized strings. Can be used to find the
* closest available string for a given locale.
*/
export class MessageDictionary {
constructor(messages: LocalizedStrings, defaultLocale?: string);
getStringForLocale(key: string, locale: string): string;
}
/**
* Formats ICU Message strings to create localized strings from a MessageDictionary.
*/
export class MessageFormatter {
constructor(locale: string, messages: MessageDictionary);
format<T = void>(key: string, variables: Record<string, PrimitiveType | T | FormatXMLElementFn<T, string | T | (string | T)[]>> | undefined): string | T | (string | T)[];
}
//# sourceMappingURL=types.d.ts.map