Skip to content

Commit

Permalink
#1505 Fixed Typo in InjectionToken
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeAndWeb committed Dec 4, 2024
1 parent 5cd8322 commit 04a2116
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions projects/ngx-translate/src/lib/translate.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('ISOALTE_TRANSLATE_SERVICE');
export const ISOLATE_TRANSLATE_SERVICE = new InjectionToken<string>('ISOLATE_TRANSLATE_SERVICE');
export const USE_DEFAULT_LANG = new InjectionToken<string>('USE_DEFAULT_LANG');
export const DEFAULT_LANGUAGE = new InjectionToken<string>('DEFAULT_LANGUAGE');
export const USE_EXTEND = new InjectionToken<string>('USE_EXTEND');
Expand Down Expand Up @@ -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
)
Expand Down
8 changes: 4 additions & 4 deletions projects/ngx-translate/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
USE_DEFAULT_LANG,
DEFAULT_LANGUAGE,
USE_EXTEND,
ISOALTE_TRANSLATE_SERVICE,
ISOLATE_TRANSLATE_SERVICE,
TranslateService
} from "./lib/translate.service";

Expand Down Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand All @@ -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},
Expand Down

0 comments on commit 04a2116

Please sign in to comment.