Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alwatr/i18n

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alwatr/i18n

Elegant powerful translation module (i18n/l10n) with dynamic json storage written in tiny TypeScript, ES module.

  • 0.18.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
85
decreased by-31.45%
Maintainers
1
Weekly downloads
 
Created
Source

@alwatr/i18n

Elegant powerful translation module (i18n/l10n) with dynamic json storage written in tiny TypeScript, ES module.

Example usage

@TODO: update docs from ts files

Initialize

import {initialI18n} from 'https://esm.run/@alwatr/i18n';
initialI18n();

Localize in template string

import {localize} from 'https://esm.run/@alwatr/i18n';

render() {
  return html`
    <p>${localize('Hello_World')}</p>
  `;
}

Keywords

FAQs

Package last updated on 22 Oct 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc