1.1.0 • Published 1 month ago

@startinblox/component-fc-ui v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

Boilerplate

Table of Contents

  1. Introduction
  2. Installation
  3. Development
  4. Tests
  5. Storybook
  6. Build
  7. License

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

License

MIT