mix live_svelte_gettext.setup (LiveSvelteGettext v0.2.0)

View Source

Quick reference task for LiveSvelteGettext setup.

Usage

$ mix live_svelte_gettext.setup

This task provides a quick reminder of the installation steps.

Setup is Simple!

  1. Install the NPM package:

    npm install live-svelte-gettext
    
  2. Add <.svelte_translations /> to your template

  3. Use 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.