![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
@kano/i18n
Advanced tools
Readme
Provide a simple message DB managment and localization function.
Add to your project using yarn add @kano/i18n
;
Im port and use as follow
import { _, setDefaultLang, addSupportedLanguage } from '@kano/i18n/index.js';
// Add the supported langauges before using any other functions
addSupportedLanguage('de-DE');
// Set the default language, will be used if the browser is configured to use a non supported language
setDefaultLang('en-GB');
// Use the _ function to resolve all messages. Provide a fallback that will be used to generate
// the default language file
const message = _('UPDATE_NOW', 'Update now');
Once all the strings in your codebase has been tokenized using the _
function, you can generate a language file using the provided tool.
Example:
i18n-generator ./code/**/*.js
Will print all keys and their default values from the codebase. Run i18n-generator --help
to see all options
FAQs
Provide a simple message DB managment and localization function.
The npm package @kano/i18n receives a total of 3 weekly downloads. As such, @kano/i18n popularity was classified as not popular.
We found that @kano/i18n demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 21 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.