Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

This is a web component to exploit i18next.

<kwc-i18next>

A web component used to manage internationalization – replaces kwc-i18n

Install

Install the component using Bower:

$ bower install kwc-i18next --save

Or download as ZIP.

Usage

1 – Import polyfill:

<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>

2 – Import custom element:

<link rel="import" href="bower_components/kwc-i18next/kwc-i18next.html">

3 – Start using it!

<kwc-i18next property="value"></kwc-i18next>

Documentation

See docs for options, children selector, methods, events and styles.

Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

1 – Install bower & gulp:

$ npm install -g bower gulp
$ npm install gulp

2 – Install local dependencies:

$ bower install
$ npm install

3 – Start development server and open http://localhost:8000/components/kwc-i18next/.

$ gulp dev

4 - build and minify file

$ gulp build
$ gulp verify # test minified file

History

For detailed changelog, check Releases.

License

MIT

About

A web component used to manage internationalization – replaces kwc-i18n

Resources

License

Packages

No packages published