Skip to content

OmarCastro/its-i18n

Repository files navigation

its-i18n

Code Coverage Test results License

A library used to apply i18n on html automatically

Documentation

You can find the full documentation on the github page.

This readme will the basic on how to get started in nodejs

Getting started

install the module using npm

npm install its-i18n

And then use it and register as a webcomponent

import element from 'its-i18n'

customElements.define('i18n-container', element)

Examples

You can see the examples on the github page and interact with them

Contributing

TLDR version of https://omarcastro.github.io/its-i18n/contributing:

  • Have NodeJs & Git installed
git clone https://github.com/OmarCastro/its-i18n.git
cd its-i18n
npm run dev:open

npm ci runs automatically when npm run dev:open (or any of the npm scripts) when node_modules is absent on, if you do not wish to open the browser, run npm run dev instead

Playground

You can play with the library by going to the playground/ folder of by using an online IDE