UNPKG

1.47 kBJavaScriptView Raw
1var __extends = (this && this.__extends) || (function () {
2 var extendStatics = Object.setPrototypeOf ||
3 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4 function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
5 return function (d, b) {
6 extendStatics(d, b);
7 function __() { this.constructor = d; }
8 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
9 };
10})();
11import { Injectable } from "@angular/core";
12var TranslateCompiler = (function () {
13 function TranslateCompiler() {
14 }
15 return TranslateCompiler;
16}());
17export { TranslateCompiler };
18/**
19 * This compiler is just a placeholder that does nothing, in case you don't need a compiler at all
20 */
21var TranslateFakeCompiler = (function (_super) {
22 __extends(TranslateFakeCompiler, _super);
23 function TranslateFakeCompiler() {
24 return _super !== null && _super.apply(this, arguments) || this;
25 }
26 TranslateFakeCompiler.prototype.compile = function (value, lang) {
27 return value;
28 };
29 TranslateFakeCompiler.prototype.compileTranslations = function (translations, lang) {
30 return translations;
31 };
32 return TranslateFakeCompiler;
33}(TranslateCompiler));
34export { TranslateFakeCompiler };
35TranslateFakeCompiler.decorators = [
36 { type: Injectable },
37];
38/** @nocollapse */
39TranslateFakeCompiler.ctorParameters = function () { return []; };