lion/packages/localize/README.md
2020-05-29 17:01:15 +02:00

1.5 KiB

Localize

export default {
  title: 'Localize/Intro',
};

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.

Live Demo/Documentation

See our storybook for a live demo and documentation

Features

  • Uses es modules
  • Formatting of numbers, amounts
  • Formatting of dates

Further examples can be seen at Features Overview Demo and a more in depth description can be found at Localize System Overview.

Content

Feature Description
Translate Text Load and translate text in multiple languages
Format Numbers Format numbers in multiple languages
Format Dates Format dates in multiple languages

How to use

Installation

npm i --save @lion/localize
import { localize } from '@lion/localize';