mix live_svelte_gettext.install (LiveSvelteGettext v0.2.0)
View SourceInstalls LiveSvelteGettext in your Phoenix application.
Usage
$ mix igniter.install live_svelte_gettext
This installer will:
- Detect your Gettext backend automatically
- Detect your Svelte directory (or prompt if multiple found)
- Create a SvelteStrings module with the correct configuration
- Add
import LiveSvelteGettext.Componentsto your web module - Add application configuration to config/config.exs
- Provide next steps for completing the installation
Options
--gettext-backend- Manually specify the Gettext backend module (e.g., MyAppWeb.Gettext)--svelte-path- Manually specify the Svelte directory path (e.g., assets/svelte)--module-name- Specify the name for the SvelteStrings module (default: detected from Gettext backend)
Examples
# Automatic detection
$ mix igniter.install live_svelte_gettext
# Manual configuration
$ mix igniter.install live_svelte_gettext --gettext-backend MyAppWeb.Gettext --svelte-path assets/svelteAfter Installation
You can optionally install the npm package or use the bundled files:
# Option A: Install from npm (recommended)
npm install live-svelte-gettext
# Option B: Use bundled files (no installation needed)
# Available at deps/live_svelte_gettext/assets/dist/