@ngx-translate/http-loader

  • Version 6.0.0
  • Published
  • 15 kB
  • 1 dependency
  • MIT license

Install

npm i @ngx-translate/http-loader
yarn add @ngx-translate/http-loader
pnpm add @ngx-translate/http-loader

Overview

A loader for ngx-translate that loads translations using http

Index

Classes

class TranslateHttpLoader

class TranslateHttpLoader implements TranslateLoader {}

    constructor

    constructor(http: any, prefix?: string, suffix?: string);

      property prefix

      prefix: string;

        property suffix

        suffix: string;

          method getTranslation

          getTranslation: (lang: string) => any;
          • Gets the translations from the server

          Package Files (2)

          Dependencies (1)

          Dev Dependencies (0)

          No dev dependencies.

          Peer Dependencies (3)

          Badge

          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@ngx-translate/http-loader.

          • Markdown
            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@ngx-translate/http-loader)
          • HTML
            <a href="https://www.jsdocs.io/package/@ngx-translate/http-loader"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>