Localization client library for lit-html

Usage no npm install needed!

<script type="module">
  import litLocalize from 'https://cdn.skypack.dev/@lit/localize';



Published on NPM Test status

Lit Localize provides localization/internationalization support for Lit templates. See lit.dev for full documentation.

This is the repo for @lit/localize, the package provides the library that runs in the browser and contains msg and other utilities.

See also @lit/localize-tools, the package that provides the lit-localize command-line tool for extracting messages and building localized apps.


npm i @lit/localize


render() {
  return msg(html`Hello <b>World</b>`);


Full documentation is available on lit.dev.