0.0.2 • Published 8 years ago

ypo-lexer-i18next v0.0.2

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
8 years ago

Build Status NPM

ypo-lexer-i18next

ypo-lexer-i18next is a lexer used for converting the i18next v2 file format to the YPO file format. It basically translated a JSON file into tokens that then can be further processed by the ypo-parser.

The main use for this package lies with ypo-cli.

Releases

See the changelog for more information.

Limitations

  • There is no support for interval plurals or arrays or trees

Project Site

The project site, see (2) under resources below, provides more insight into the project, including test coverage reports and API documentation.

Contributing

You are very welcome to propose changes and report bugs, or even provide pull requests on github.

See the contributing guidelines for more information.

Contributors

Building

See build process and the available build targets for more information on how to build this.

See also development dependencies and on how to deal with them.

Installation

npm --save ypo-lexer-i18next

Runtime Dependencies

The dependencies denoted in italics need to be provided by the using project.

Usage

import Lexer from 'ypo-lexer-i18next';

let lexer = new Lexer();
for (let token of lexer.tokenize('./locales/en/translation.json'))
{
    console.log(token.toString());
}

Resources