@emartech/angular-translate
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -6,4 +6,3 @@ import { ModuleWithProviders, Provider } from '@angular/core'; | ||
import * as i3 from "./lib/translate-chunk.pipe"; | ||
export * from './lib/service'; | ||
export * from './lib/pipe'; | ||
export * from './lib'; | ||
export declare type Translations = { | ||
@@ -10,0 +9,0 @@ [name: string]: string; |
@@ -15,16 +15,17 @@ "use strict"; | ||
const core_1 = require("@angular/core"); | ||
const pipe_1 = require("./lib/pipe"); | ||
const translate_part_pipe_1 = require("./lib/translate-part.pipe"); | ||
const translate_chunk_pipe_1 = require("./lib/translate-chunk.pipe"); | ||
const service_1 = require("./lib/service"); | ||
const lib_1 = require("./lib"); | ||
const i0 = require("@angular/core"); | ||
__exportStar(require("./lib/service"), exports); | ||
__exportStar(require("./lib/pipe"), exports); | ||
function translationsFactory() { return {}; } | ||
__exportStar(require("./lib"), exports); | ||
function translationsFactory() { | ||
return {}; | ||
} | ||
exports.translationsFactory = translationsFactory; | ||
class TranslateModule { | ||
static forRoot(providedTranslations = { provide: 'translations', useFactory: translationsFactory }) { | ||
static forRoot(providedTranslations = { | ||
provide: 'translations', | ||
useFactory: translationsFactory, | ||
}) { | ||
return { | ||
ngModule: TranslateModule, | ||
providers: [service_1.TranslateService, providedTranslations] | ||
providers: [lib_1.TranslateService, providedTranslations], | ||
}; | ||
@@ -37,9 +38,9 @@ } | ||
TranslateModule.ɵinj = i0.ɵɵdefineInjector({}); | ||
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TranslateModule, { declarations: [pipe_1.TranslatePipe, translate_part_pipe_1.TranslatePartPipe, translate_chunk_pipe_1.TranslateChunkPipe], exports: [pipe_1.TranslatePipe, translate_part_pipe_1.TranslatePartPipe, translate_chunk_pipe_1.TranslateChunkPipe] }); })(); | ||
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(TranslateModule, { declarations: [lib_1.TranslatePipe, lib_1.TranslatePartPipe, lib_1.TranslateChunkPipe], exports: [lib_1.TranslatePipe, lib_1.TranslatePartPipe, lib_1.TranslateChunkPipe] }); })(); | ||
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TranslateModule, [{ | ||
type: core_1.NgModule, | ||
args: [{ | ||
declarations: [pipe_1.TranslatePipe, translate_part_pipe_1.TranslatePartPipe, translate_chunk_pipe_1.TranslateChunkPipe], | ||
exports: [pipe_1.TranslatePipe, translate_part_pipe_1.TranslatePartPipe, translate_chunk_pipe_1.TranslateChunkPipe] | ||
declarations: [lib_1.TranslatePipe, lib_1.TranslatePartPipe, lib_1.TranslateChunkPipe], | ||
exports: [lib_1.TranslatePipe, lib_1.TranslatePartPipe, lib_1.TranslateChunkPipe], | ||
}] | ||
}], null, null); })(); |
@@ -56,3 +56,3 @@ { | ||
}, | ||
"version": "3.0.0" | ||
"version": "3.1.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15350
18
288