svelte-i18n-lingui
Version:
Add i18n to Svelte/Sveltekit projects using Lingui, using message as the catalog id
13 lines (12 loc) • 365 B
TypeScript
/**
* @type {ExtractorType}
*/
export const svelteExtractor: ExtractorType;
/**
* @type {ExtractorType}
*/
export const jstsExtractor: ExtractorType;
export type ExtractorType = {
match(filename: string): boolean;
extract(filename: string, code: string, onMessageExtracted: (msg: ExtractedMessage) => void, ctx?: ExtractorCtx): Promise<void> | void;
};