mix live_svelte_gettext.setup (LiveSvelteGettext v0.2.0)
View SourceQuick reference task for LiveSvelteGettext setup.
Usage
$ mix live_svelte_gettext.setup
This task provides a quick reminder of the installation steps.
Setup is Simple!
Install the NPM package:
npm install live-svelte-gettextAdd
<.svelte_translations />to your templateUse translations in your Svelte components:
import { gettext } from 'live-svelte-gettext' gettext("Hello, world!")
That's it! No hook registration or manual initialization needed. Translations automatically initialize on first use.