Simple devtool to help with different language files, keep them tidy and up to date.
- Install the tool: npm install --save-dev ngx-translate-assistant
- Add a script to your package.json to easily using it:
{
"scripts": {
"edit-translate": "ngxta"
}
}
- create the config file (.ngxtarc.json at beside your package.json):
[
{
"groupName": "Form page",
"baseKey": "form-page",
"files": [
"src/app/form/locale/form-page.en.json",
"src/app/form/locale/form-page.fr.json"
]
},
{
"groupName": "About page",
"files": [
"src/app/about/locale/about-page.en.json",
"src/app/about/locale/about-page.fr.json"
]
}
]
Note: this is an example about what you can do
- start it: npm run ngxta
- go to http://localhost:3578