UNPKG

svelte-lang

Version:

svelte-lang is an i18n library for Svelte that simplifies multilingual support. It offers a straightforward API for managing translations, supports parameterized strings, and integrates with Svelte stores for reactive language handling. Features include a

7 lines (6 loc) 241 B
import { t, p } from '../../../i18n/index.js'; export const de = { app: t `svelte-lang`, 'Something went wrong': t `Etwas ist schief gelaufen`, 'Welcome $firstName $lastName': t `Willkommen ${p('firstName')} ${p('lastName')}` };