
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@ni/xliff-to-json-converter
Advanced tools
A utility to convert translation files from XLIFF to JSON for Angular localization
The @ni/xliff-to-json-converter
library converts XLIFF translation files to Angular's JSON format so that they can be loaded at runtime in Angular apps.
Install in your Angular app's devDependencies
:
npm install -D @ni/xliff-to-json-converter
Add scripts to your app's package.json
to convert translated XLIFF files to JSON.
"scripts": {
"i18n:convert": "npm run i18n:convert:de && npm run i18n:convert:ja && npm run i18n:convert:zh",
"i18n:convert:de": "xliff-to-json-converter --source src/locales/messages.de.xlf --destination src/locales/messages.de.json",
"i18n:convert:ja": "xliff-to-json-converter --source src/locales/messages.ja.xlf --destination src/locales/messages.ja.json",
"i18n:convert:zh": "xliff-to-json-converter --source src/locales/messages.zh.xlf --destination src/locales/messages.zh.json",
},
Ensure those converted files are generated at build time and not checked in to source.
NI employees can see more info about our recommended Angular localization toolchain in the NI internal wiki.
See CONTRIBUTING.md for instructions to make changes to the library.
This library is forked from talque/xliff-to-angular-json with additions including auto-testing, linting, and some small functionality changes. Thanks to its main contributor vbraun for the starting point!
FAQs
A utility to convert translation files from XLIFF to JSON for Angular localization
The npm package @ni/xliff-to-json-converter receives a total of 763 weekly downloads. As such, @ni/xliff-to-json-converter popularity was classified as not popular.
We found that @ni/xliff-to-json-converter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.