Ninja Pumpkin Mutants

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

    3.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');

    Install

    npm i @uxland/uxl-localization

    DownloadsWeekly Downloads

    20

    Version

    3.0.3

    License

    Apache-2.0

    Unpacked Size

    140 kB

    Total Files

    59

    Last publish

    Collaborators

    • avizcaino
    • uxland-admin