
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
@k14v/i18njs
Advanced tools
i18njs it's made to intended simplify and normalize internationalization and make compatible with all kind of javascript environments.
$ npm install --save @k14v/i18njs
const i18n = i18njs({
locales: {
es: {
'esto es una prueba': 'Esto es una prueba',
'Teléfono': 'Teléfono',
'Perro': 'Perro',
},
en: {
'esto es una prueba': 'This is a test',
'Teléfono': 'Phone',
'Perro': 'Dog',
},
de: {
'esto es una prueba': 'Das ist ein Test',
'Teléfono': 'Telefon',
'Perro': 'Hund',
},
},
});
i18n.on('loading', ({ locale }) => {
console.log(`loading locale: ${locale}`);
// output: loading locale:
});
i18n.on('loaded', ({ locale }) => {
console.log(`loaded locale: ${locale}`);
});
i18n.setLocale('en').then(trls => {
console.log(trls.__('esto es una prueba'));
// output: this is a test
console.log(trls.__('Teléfono'));
// output: Phone
});
i18n.setLocale('de').then(trls => {
console.log(i18n.trls.__('esto es una prueba'));
// output: Das ist ein Test
console.log(i18n.trls.__('Teléfono'));
// output: Telefon
});
trls.__('esto es una prueba')
const i18n = i18njs({
locales: {
en: {
'Group': 'Grupo',
'The cow': 'La vaca',
'the fence': 'la valla',
'The rabbit': 'El conejo',
'the table': 'la mesa',
'Sometimes I drink %d beers': {
one: 'A veces me bebo una cerveza',
other: 'A veces me bebo muchas cervezas',
},
'%s jumped over %s, %d times': {
one: '%s saltó por encima de %s, una vez',
other: '%s saltó por encima de %s, %d veces'
}
}
},
});
i18n.trls.__('Sometimes I drink 1 beers')
// A veces me bebo una cerveza
i18n.trls.__('Sometimes I drink 10 beers')
// A veces me bebo muchas cervezas
i18n.trls.__('The cow jumped over the fence, 10 times')
// La vaca saltó por encima de la valla, 10 veces
i18n.trls.__('The rabbit jumped over the table, 1 times')
// El conejo saltó por encima de la mesa, una vez
FAQs
Library to internationalize literals
The npm package @k14v/i18njs receives a total of 18 weekly downloads. As such, @k14v/i18njs popularity was classified as not popular.
We found that @k14v/i18njs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.