Socket
Book a DemoInstallSign in
Socket

i18next-parrot-backend

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-parrot-backend

This is a i18next plugin backend

0.1.0
npmnpm
Version published
Maintainers
1
Created
Source

i18next-parrot-backend

This is a simple i18next backend to be used when you have a parrot instance.

Getting started

Source can be installed doing this :

$ npm install i18next-parrot-backend
$ yarn add i18next-parrot-backend

Using it then is quite straightfoward :

import i18next from 'i18next';
import parrotBackend from 'i18next-parrot-backend';

i18next
.use(parrotBackend)
.init(i18nextOptions)

Backend Options

The following options are available :

{
  // Your backend URL
  url: 'https://some.url',
  client_id: 'your client id',
  client_secret: 'your client secret',
  project: 'project'
}

Please pass the options using the preferred way, using the i18next.init.

import i18next from 'i18next';
import parrotBackend from 'i18next-parrot-backend';

i18next
.use(parrotBackend)
.init({
  backend: options,
  ...
})

You can also use the other methods :

import ParrotBackend from 'i18next-parrot-backend';

// construction
const instance = new ParrotBackend(null, options);
// or init
const instance = new ParrotBackend();
instance.init(options);

License

MIT

FAQs

Package last updated on 03 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.