Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-translate-loader-parrot

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

angular-translate-loader-parrot

This is a custom loader for angular translate using parrot backend

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

angular-translate-parrot

CircleCI GitHub issues GitHub stars GitHub license npm version

This is a custom loader for angular translate with parrot backend

Warning : This has only been tested in specific cases and might not suit everyone, do not hesitate to make a PR :)

Usage

Install it using yarn or npm :

$ yarn add angular-translate-loader-parrot
$ npm install angular-translate-loader-parrot --save

Then in your angular project :

...
import angularTranslateLoaderParrot from 'angular-translate-loader-parrot';

angular.module('yourApp', [ ..., angularTranslateLoaderParrot ])
...
.config(($translateProvider) => {
  ...
  $translateProvider.use('translateParrotLoader', options);
  ...
})
...

Options

The options are :

{
  // url to the Parrot server
  url: 'https://translate.parrot.com',

  // The client id
  client_id: 'client_id',

  // The client secret
  client_secret: 'client_secret',

  // The project id
  project_id: 'project id in parror',
}

Misc

  • To make it run you have to create a new project in Parrot and add a client to it.
  • If you are using an interceptor, there is an option, skipAuthorization to the request options, use it so you won't erase the Authorization header
  • The token is saved to the local storage, so it's not fetch each time

License

MIT

FAQs

Package last updated on 18 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc