UNPKG

svelte-i18n-lingui

Version:

Add i18n to Svelte/Sveltekit projects using Lingui, using message as the catalog id

72 lines (71 loc) 1.85 kB
export default LegacyT; type LegacyT = SvelteComponent<$$__sveltets_2_PropsWithChildren<{ msg: string; ctx?: string; cmt?: string; }, { default: {}; '1': {}; '2': {}; '3': {}; '4': {}; }>, { [evt: string]: CustomEvent<any>; }, { default: {}; '1': {}; '2': {}; '3': {}; '4': {}; }> & { $$bindings?: string; }; /** * 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 LegacyT: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{ msg: string; ctx?: string; cmt?: string; }, { default: {}; '1': {}; '2': {}; '3': {}; '4': {}; }>, { [evt: string]: CustomEvent<any>; }, { default: {}; '1': {}; '2': {}; '3': {}; '4': {}; }, {}, string>; type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends { default: any; } ? Props extends Record<string, never> ? any : { children?: any; } : {}); interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> { new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & { $$bindings?: Bindings; } & Exports; (internal: unknown, props: Props & { $$events?: Events; $$slots?: Slots; }): Exports & { $set?: any; $on?: any; }; z_$$bindings?: Bindings; }