@chocolab/i18n
TypeScript icon, indicating that this package has built-in type declarations

1.0.4-alpha.0 • Public • Published


deps dev-deps chat Maintainability Codacy Badge License: GPL v3 npm version npm size npm downloads npm vulnerabilities


@chocolab/i18n

Load dynamically our string, in we language.

Install

yarn add @chocolab/i18n

Usage

import locale from '@chocolab/i18n'

// loading locales
locale.set('en', 'cow', 'cow')
locale.set('es', 'cow', 'vaca')

// getting locales, with browser in english
locale.all() // returns { cow: 'cow' }
locale.one('cow') // returns 'cow'

Maintainers


jefer94

Readme

Keywords

none

Package Sidebar

Install

npm i @chocolab/i18n

Weekly Downloads

1

Version

1.0.4-alpha.0

License

MIT

Unpacked Size

9.75 kB

Total Files

9

Last publish

Collaborators

  • jefer94