Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | import type { AstroComponentFactory } from "astro/runtime/server/index.js";
export interface TransProps {
/**
* Translation template. Placeholders use `{{name}}` and are filled by Astro slots with the same name.
* When there is only one placeholder, the default slot can be used instead.
*
* @example
* ```astro
* <Trans message="a{{b}}c">
* <strong>B</strong>
* </Trans>
* ```
*/
message: string;
}
/**
* Insert Astro slots into the translation message.
*
* @example
* ```astro
* <Trans message="a{{b}}c{{d}}e">
* <h1 slot="b">B</h1>
* <p slot="d">D</p>
* </Trans>
* ```
*
* Outputs:
*
* ```html
* a<h1>B</h1>c<p>D</p>e
* ```
*
* The default slot can be used when there is only one placeholder.
*
* @example
* ```astro
* <Trans message="a{{b}}c">
* <h1>B</h1>
* </Trans>
* ```
*
* Outputs:
*
* ```html
* a<h1>B</h1>c
* ```
*/
export declare const Trans: AstroComponentFactory & ((props: TransProps) => unknown);
|