1.1.0 • Published 1 month ago
@startinblox/component-fc-ui v1.1.0
Boilerplate
Table of Contents
Introduction
This is a boilerplate of startin'blox component.
Installation
npm install
Development
npm run watch
Tests
npm run cy:run
or
npm run cy:open
Storybook
npm run storybook
Build
npm run build
Localization
This project uses @lit/localize
for internationalization.
Extracting strings
To extract strings for translation, run:
npm run locale:extract
This command will generate XLIFF files in the locales
directory.
Changing locale
To change the locale, run:
window.setLocale.map((setLocale) => setLocale("your-lang-code"));
Getting current locale
To get the current locale, run:
window.getLocale.map((locale) => console.log(locale));