@labor-digital/bits-translator
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

LABOR - Bits - Translator

Even with the premise, that most of your translations will come directly from your server rendering engine, there will be the need to translate labels in your javascript. Either in an external library, or the text in a modal window you simply can not provide everything via HTML (or, you can, but you should not want to...).

For that reason this plugin offers an ultra-lightweight translation provider that is designed to work in tandem with you server template engine.

Installation

Install the plugin through npm:

npm install @labor-digital/bits-translator

Register it in your plugin section:

import {BitApp} from '@labor-digital/bits';
import {TranslatorPlugin} from '@labor-digital/bits-translator';

new BitApp({
    bits: { /* ... */},
    plugins: [
        new TranslatorPlugin()
    ]
});

Documentation

The documentation can be found here.

Postcardware

You're free to use this package, but if it makes it to your production environment, we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: LABOR.digital - Fischtorplatz 21 - 55116 Mainz, Germany.

We publish all received postcards on our company website.

Readme

Keywords

none

Package Sidebar

Install

npm i @labor-digital/bits-translator

Weekly Downloads

3

Version

1.1.2

License

Apache-2.0

Unpacked Size

173 kB

Total Files

36

Last publish

Collaborators

  • labor-digital