Client

References for @dico/client

@dico/client is the library that makes working with dico easy.

Scripts

dico-fetch

It's a script that reads your dico.config.json file to fetch your dico in order to create or update your dico.data.json file.

Read more about it in the installing the client section ->

Exports

createDico

A function to create $dico and $dicoI18n.

const { $dico, $dicoI18n } = createDico(data);

DicoError

Dico error class, useful to type check thrown errors.

I18nManager

$dicoI18n class, useful for type checking.

currentLocale

Current locale of $dicoI18n instance.

setLocale(locale)

Set current locale of $dicoI18n instance.

DicoDataJSON (TypeScript)

Interface of the dico.data.json file.

CreateInfiniteDicoData (TypeScript)

Interface of $dico.


On point with the client? Browse the CLI references ->

Edit this page on GitHub Updated at Wed, Jun 30, 2021