
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
anytv-i18n
Advanced tools
A module for app internationalization
npm install anytv-i18n@latest --save
Simple example:
'use strict';
const i18n = require('anytv-18n');
i18n.configure({
languages_url: 'http://translations.myapp.com/:project/languages',
translations_url: 'http://translations.myapp.com/:project/:lang.json',
locales_dir: '_locales',
default: 'en',
debug: true
});
i18n.use('freedom_dashboard')
.load();
i18n.trans('zh_TW', 'greetings', {
name: 'Raven!'
});
i18n.trans('non_existent_key'); // empty string
languages_url
url for getting all available languages in json. :project
will be replaced by the project you're using. Exact JSON format:{
"data": {
"languages": [
"en",
"zh",
"zh_TW"
]
}
}
translation_url
url for getting json translations. :project
will be replaced by the project you're using. :lang
will be replaced by the language you're using. Exact format:{
"greetings": "你好 :name",
...
}
locale_dir
directory where the translations will be cached. should be an absolute path with a trailing backslach. example: /home/user/my-app/_locales/
debug
set to true if you want to debuglogger
replaces the default logger
note: Only Winston-like loggers are accepted
Install the tools needed:
npm install grunt -g
npm install --dev
To compile the ES6 source code to ES5:
grunt
To generate the docs:
esdoc -c ./esdoc.json
npm test
npm run coverage
Then open coverage/lcov-report/index.html.
MIT
FAQs
A module for globalization
We found that anytv-i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.