0.1.1 • Published 8 years ago

@masch/ui5-i18n-finder v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

ui5-i18n-finder

Reads your views and finds all the translations that should exist.

installation

$ npm install @masch/ui5-i18n-finder

example

const Finder = require('./src');
const finder = new Finder('./testdata');
finder.search((keys) => {
    console.log(keys); // prints all used translations keys
});

what it does not do

This lib does not try to read you .properties files to figure out which keys are actually missing. Doing so is a job for another tool which should/could use this library.

TODO

  • make model name configurable
  • proper error reporting
  • support other view types
    • JS Views
    • JSON Views
    • HTML Views