lion/packages/localize
CircleCI 94b87c80f5 chore: release new versions
- @lion/ajax@0.4.0
 - babel-plugin-extend-docs@0.2.0
 - @lion/button@0.7.0
 - @lion/calendar@0.9.0
 - @lion/checkbox-group@0.10.0
 - @lion/dialog@0.7.0
 - @lion/fieldset@0.13.0
 - @lion/form-core@0.1.0
 - @lion/form-integrations@0.1.0
 - @lion/form@0.6.0
 - @lion/icon@0.6.0
 - @lion/input-amount@0.7.0
 - @lion/input-date@0.7.0
 - @lion/input-datepicker@0.14.0
 - @lion/input-email@0.8.0
 - @lion/input-iban@0.9.0
 - @lion/input-range@0.4.0
 - @lion/input@0.7.0
 - @lion/localize@0.11.0
 - @lion/overlays@0.16.0
 - @lion/radio-group@0.10.0
 - @lion/select-rich@0.18.0
 - @lion/select@0.7.0
 - @lion/steps@0.5.0
 - @lion/switch@0.10.0
 - @lion/tabs@0.4.0
 - @lion/textarea@0.7.0
 - @lion/tooltip@0.11.0
 - @lion/validate-messages@0.1.0
2020-05-29 15:03:48 +00:00
..
_docs chore: updated dep versions and made compatible 2020-05-29 17:01:15 +02:00
docs feat: use markdown javascript (mdjs) for documentation 2020-05-29 17:01:15 +02:00
src feat: use singleton manager to support nested npm installations 2020-05-18 15:25:21 +02:00
test fix(localization): force TR currency code at the end (#641) 2020-04-29 10:05:06 +02:00
test-helpers fix: public test-helpers 2019-07-30 15:50:53 +02:00
CHANGELOG.md chore: release new versions 2020-05-29 15:03:48 +00:00
index.js fix(input-amount): normalize added for currency label (#618) 2020-03-04 17:33:09 +01:00
package.json chore: release new versions 2020-05-29 15:03:48 +00:00
README.md chore: updated dep versions and made compatible 2020-05-29 17:01:15 +02:00
test-helpers.js fix: public test-helpers 2019-07-30 15:50:53 +02:00

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';