Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

ypo-lexer-i18next

0.0.2 • Public • Published

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

Install

npm i ypo-lexer-i18next

DownloadsWeekly Downloads

2

Version

0.0.2

License

Apache-2.0

Last publish

Collaborators

  • avatar