0.1.0 • Published 8 years ago
djn-transpiler v0.1.0
djn-transpiler
Each module has it's own localization file as javascript object that gets merged into an array with json objects for each language.
Getting Started
npm install --save-dev djn-transpiler
import djnTranspiler from 'djn-transpiler'
const transpilerData = djnTranspiler({
translations: ['en', 'sv'],
src: '/.. full path to js files ../',
initialStateOut: '/.. full path ../initialstate.js',
dataOut: '/.. full path ../data.json'
})
const { initialState, data } = transpilerData:
console.log(initialState, data)
error reporting
Error reporting helps to ensure translation is complete all langauges.
note
This package should only be used in development environment.
Author
- Daniel Nyström - scubadjn
License
This project is licensed under the MIT License - see the LICENSE.md file for details
0.1.0
8 years ago