
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
minimal-intl
Advanced tools
Minmal Intl is meant to be the simplest possible, typesafe solution to add support for multiple languages to your typescript application. It is not meant to be a feature complete localization library and won't replace current major libraries.
npm install minimal-intl
In a file, e.g. in your lib/intl/index.ts, initialize your intl utility. Provide keys for all your translation files as well as the default locale.
import { initIntl } from "minimal-intl";
import de from "./de.json";
import en from "./en.json";
export const intl = initIntl({ en, de }, "en");
A locale file should be a normal json file and can contain nested keys.
{
"option": "an option",
"nested": {
"key": "nested key with {{placeholder}}",
}
}
You can then use the intl object anywhere in your application.
// ...
<span>
Some Test {intl.get("nested.key", { placeholder: 123 })} Text
</span>
// ...
FAQs
Minimal, simple, typesafe react intl package
We found that minimal-intl 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.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.