1.0.2 • Published 23 days ago

@orangybot/translationsengine v1.0.2

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
23 days ago

Orangy's TranslationsEngine package.

This is Orangy's official package to load message translations from your translations files.

:white_check_mark: Easy to use :white_check_mark: Fast :white_check_mark: Open source

How to use

//ES6:
import { OrangyTranslationsEngine } from "@orangybot/translationsengine";
import Fs from "fs";

const Engine = new OrangyTranslationsEngine(
  "./translations", //Translations folder
  true, //Logs?
  "id", //Your translations ID key
  "content", //Your translations content key
  "en" //Default language
);

const Translation = Engine.GetTranslation(
  "mycooltitle", //The translation ID
  "Titles", //The translation category
  "it" //The translation language
);

//CommonJS:
const { OrangyTranslationsEngine } = require("@orangybot/translationsengine");
const Fs = require("fs");

const Engine = new OrangyTranslationsEngine(
  "./translations", //Translations folder
  true, //Logs?
  "id", //Your translations ID key
  "content", //Your translations content key
  "en" //Default language
);

const Translation = Engine.GetTranslation(
  "mycooltitle", //The translation ID
  "Titles", //The translation category
  "it" //The translation language
);
1.0.2

23 days ago

1.0.1

4 months ago

1.0.0-5

1 year ago

1.0.0-4

1 year ago

1.0.0-3

1 year ago

1.0.0-2

1 year ago

1.0.0-1

1 year ago

1.0.0

1 year ago