fluent-web
A web component that uses Project Fluent for localization.
Locale en-US | Locale pl |
---|---|
![]() |
![]() |
Basic Usage:
JavaScript is just one way to make messages
import flt from "@fluent/dedent";
const messages = [
"en-US",
flt`
hello = Hello, Fluent!
`,
];
HTML:
<fluent-text messages="messages" messageId="hello"></fluent-text>
Result:
Hello, Fluent!
For how to build messages, see the Fluent docs.
Examples:
- Elm, this is used for the interactive demo
- Svelte
- Vanilla HTML & JS
Other:
src/index.js
until then.
Note: No npm package is published yet so feel free to clone this repo or the clone See the Docs for more details.