import { Story, Meta, html } from '@open-wc/demoing-storybook';
import { render } from '@lion/core';
import { localize, formatNumber, formatDate } from '../index.js';
# Translate Text
Is meant to translate text into multiple languages.
In it's simplest form it is a function that returns the translated text for a `namespace` + `key`.
```js
localize.msg('lit-html-example:body'); // for en-GB: I am from England
localize.msg('lit-html-example:body'); // for nl-NL: Ik kom uit Nederland
// ...
```
## Web Component
For use in a web component we have `LocalizeMixin` that lets you define namespaces and awaits loading of those translations.
```js
class MessageExample extends LocalizeMixin(LitElement) {
render() {
return html`
${localize.msg('lit-html-example:body')}
`;
}
}
```
For a full overview of all the features, please checkout the [Localize System Overview](?path=/docs/localize-system-overview--page).