From 04a21165a72e19796865d909ed145bfdab8d3237 Mon Sep 17 00:00:00 2001 From: Andreas Loew Date: Wed, 4 Dec 2024 14:07:56 +0100 Subject: [PATCH] #1505 Fixed Typo in InjectionToken --- projects/ngx-translate/src/lib/translate.service.ts | 4 ++-- projects/ngx-translate/src/public-api.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/ngx-translate/src/lib/translate.service.ts b/projects/ngx-translate/src/lib/translate.service.ts index c9047c5..e08a276 100644 --- a/projects/ngx-translate/src/lib/translate.service.ts +++ b/projects/ngx-translate/src/lib/translate.service.ts @@ -8,7 +8,7 @@ import {InterpolateFunction, TranslateParser} from "./translate.parser"; import {TranslateStore} from "./translate.store"; import {getValue, isDefined, isArray, isString, mergeDeep, setValue, isDict} from "./util"; -export const ISOALTE_TRANSLATE_SERVICE = new InjectionToken('ISOALTE_TRANSLATE_SERVICE'); +export const ISOLATE_TRANSLATE_SERVICE = new InjectionToken('ISOLATE_TRANSLATE_SERVICE'); export const USE_DEFAULT_LANG = new InjectionToken('USE_DEFAULT_LANG'); export const DEFAULT_LANGUAGE = new InjectionToken('DEFAULT_LANGUAGE'); export const USE_EXTEND = new InjectionToken('USE_EXTEND'); @@ -187,7 +187,7 @@ export class TranslateService { public parser: TranslateParser, public missingTranslationHandler: MissingTranslationHandler, @Inject(USE_DEFAULT_LANG) private useDefaultLang = true, - @Inject(ISOALTE_TRANSLATE_SERVICE) isolate = false, + @Inject(ISOLATE_TRANSLATE_SERVICE) isolate = false, @Inject(USE_EXTEND) private extend = false, @Inject(DEFAULT_LANGUAGE) defaultLanguage: string ) diff --git a/projects/ngx-translate/src/public-api.ts b/projects/ngx-translate/src/public-api.ts index 32bf6df..811a1f1 100644 --- a/projects/ngx-translate/src/public-api.ts +++ b/projects/ngx-translate/src/public-api.ts @@ -10,7 +10,7 @@ import { USE_DEFAULT_LANG, DEFAULT_LANGUAGE, USE_EXTEND, - ISOALTE_TRANSLATE_SERVICE, + ISOLATE_TRANSLATE_SERVICE, TranslateService } from "./lib/translate.service"; @@ -46,7 +46,7 @@ export const provideTranslateService = (config: TranslateModuleConfig = {}): Env config.parser || {provide: TranslateParser, useClass: TranslateDefaultParser}, config.missingTranslationHandler || {provide: MissingTranslationHandler, useClass: FakeMissingTranslationHandler}, TranslateStore, - {provide: ISOALTE_TRANSLATE_SERVICE, useValue: config.isolate}, + {provide: ISOLATE_TRANSLATE_SERVICE, useValue: config.isolate}, {provide: USE_DEFAULT_LANG, useValue: config.useDefaultLang}, {provide: USE_EXTEND, useValue: config.extend}, {provide: DEFAULT_LANGUAGE, useValue: config.defaultLanguage}, @@ -78,7 +78,7 @@ export class TranslateModule { config.parser || {provide: TranslateParser, useClass: TranslateDefaultParser}, config.missingTranslationHandler || {provide: MissingTranslationHandler, useClass: FakeMissingTranslationHandler}, TranslateStore, - {provide: ISOALTE_TRANSLATE_SERVICE, useValue: config.isolate}, + {provide: ISOLATE_TRANSLATE_SERVICE, useValue: config.isolate}, {provide: USE_DEFAULT_LANG, useValue: config.useDefaultLang}, {provide: USE_EXTEND, useValue: config.extend}, {provide: DEFAULT_LANGUAGE, useValue: config.defaultLanguage}, @@ -98,7 +98,7 @@ export class TranslateModule { config.compiler || {provide: TranslateCompiler, useClass: TranslateFakeCompiler}, config.parser || {provide: TranslateParser, useClass: TranslateDefaultParser}, config.missingTranslationHandler || {provide: MissingTranslationHandler, useClass: FakeMissingTranslationHandler}, - {provide: ISOALTE_TRANSLATE_SERVICE, useValue: config.isolate}, + {provide: ISOLATE_TRANSLATE_SERVICE, useValue: config.isolate}, {provide: USE_DEFAULT_LANG, useValue: config.useDefaultLang}, {provide: USE_EXTEND, useValue: config.extend}, {provide: DEFAULT_LANGUAGE, useValue: config.defaultLanguage},