svelte-i18n-lingui
Version:
Add i18n to Svelte/Sveltekit projects using Lingui, using message as the catalog id
24 lines (23 loc) • 722 B
TypeScript
export default T;
/**
* A translation component used to support interpolation.
* If there is no need to interleave elements or components inside a message,
* the `t` store should be used instead for simplicity and consistency.
*
* - Usage:
* ```svelte
* <T msg="Click # for more information" ctx="if any" cmt="if any">
* <a href="https://example.com">{$t`here`}`</a>
* </T>
* ```
*/
declare const T: import("svelte").Component<{
msg: string;
ctx?: string;
cmt?: string;
children?: import("svelte").Snippet<[]>;
second?: import("svelte").Snippet<[]>;
third?: import("svelte").Snippet<[]>;
fourth?: import("svelte").Snippet<[]>;
fifth?: import("svelte").Snippet<[]>;
}, {}, "">;