pretty-ngx-translate
Version:
The internationalization (i18n) library for Angular 2+
40 lines (39 loc) • 1.47 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { Injectable } from "@angular/core";
var TranslateCompiler = (function () {
function TranslateCompiler() {
}
return TranslateCompiler;
}());
export { TranslateCompiler };
/**
* This compiler is just a placeholder that does nothing, in case you don't need a compiler at all
*/
var TranslateFakeCompiler = (function (_super) {
__extends(TranslateFakeCompiler, _super);
function TranslateFakeCompiler() {
return _super !== null && _super.apply(this, arguments) || this;
}
TranslateFakeCompiler.prototype.compile = function (value, lang) {
return value;
};
TranslateFakeCompiler.prototype.compileTranslations = function (translations, lang) {
return translations;
};
return TranslateFakeCompiler;
}(TranslateCompiler));
export { TranslateFakeCompiler };
TranslateFakeCompiler.decorators = [
{ type: Injectable },
];
/** @nocollapse */
TranslateFakeCompiler.ctorParameters = function () { return []; };