lingui-phraseapp

0.0.3 • Public • Published

lingui-phraseapp

This is a package which helps you to use lingui together with PhraseApp In-Context Editor

Installation

npm install lingui-phraseapp

Usage

You need to init the Editor and transform your catalogue to proper format. For that you have initializePhraseAppEditor(config) and transformCatalog(catalog, config) functions.

import { initializePhraseAppEditor, transformCatalog } from 'lingui-phrase';
import catalog from "./locales/en/messages";

const config = {
  projectId: "<YOUR_PROJECT_ID>",
  autoLowercase: false,
  phraseEnabled: true
};

initializePhraseAppEditor(config);
const catalogInEditorFormat = transformCatalog(catalog, config);
const i18n = setupI18n({ catalogs: catalogInEditorFormat })
...

Readme

Keywords

none

Package Sidebar

Install

npm i lingui-phraseapp

Weekly Downloads

1

Version

0.0.3

License

ISC

Unpacked Size

3.63 kB

Total Files

3

Last publish

Collaborators

  • omaiboroda