Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
broccoli-i18n-compiler
Advanced tools
The broccoli-i18n-compile plugin compiles .json
files into Ember.I18n translations files
This plugin assumes the language files are a flat json with the name of the file
ie en.json
or pt-BR.json
You should end up with js files: i18n-en.js
and i18n-pt-BR.js
if(typeof Translations === 'undefined') { var Translations = {} };
Translations.locale = 'da';
Translations.translations = Translations.translations || {};
Translations.translations = _.extend(Translations.translations, {
"totally": "Kerl",
"good": "Wir sind"
... removed for brevity
});
Add code to package.json file in the dev dependancies.
npm install broccoli-i18n-compiler
var i18nCompiler = require('broccoli-i18n-compiler');
var languages = i18nCompiler('i18n', {
outputFolder: 'application/public/js'
});
inputTree
: Trees that act as the source
options
: A hash of options.
Options avaliable: outputFolder
var appTranslations = emberI18nPrecompile("i18n", {outputFolder: 'js'});
npm test
Fork this repository and submit a pull request.
FAQs
i18n compiler plugin for Broccoli
The npm package broccoli-i18n-compiler receives a total of 0 weekly downloads. As such, broccoli-i18n-compiler popularity was classified as not popular.
We found that broccoli-i18n-compiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.