@uxland/uxl-localization
TypeScript icon, indicating that this package has built-in type declarations

4.0.3 • Public • Published

UXL Localization npm version

Build Status Statements Branches Functions Lines
Build Status Statements Branches Functions Lines

Installation

npm i @uxland/uxl-localization

usage

const locales = ca: {
		[moduleName]: {}
	},
	en: {
		[moduleName]: {}
	},
	es: {
        [moduleName]: {
            key:  'Esto es la cadena'
        }
    }
props.localize(`${moduleName}.key`)

With arguments

const locales = ca: {
		[moduleName]: {}
	},
	en: {
		[moduleName]: {}
	},
	es: {
        [moduleName]: {
            order:  'Pedido con id {id}'
        }
    }
props.localize(`${moduleName}.key`, 'id', '12345');

Readme

Keywords

Package Sidebar

Install

npm i @uxland/uxl-localization

Weekly Downloads

0

Version

4.0.3

License

Apache-2.0

Unpacked Size

33.1 kB

Total Files

42

Last publish

Collaborators

  • danielcabiscol
  • uxland-admin