mirror of https://github.com/abpframework/abp.git
1 changed files with 1 additions and 3 deletions
@ -1,12 +1,10 @@ |
|||
import { InjectionToken } from '@angular/core'; |
|||
import differentLocales from '../constants/different-locales'; |
|||
import { ABP } from '../models/common'; |
|||
|
|||
export const CORE_OPTIONS = new InjectionToken<ABP.Root>('CORE_OPTIONS'); |
|||
|
|||
export function coreOptionsFactory({ cultureNameLocaleFileMap = {}, ...options }: ABP.Root) { |
|||
export function coreOptionsFactory({ ...options }: ABP.Root) { |
|||
return { |
|||
...options, |
|||
cultureNameLocaleFileMap: { ...differentLocales, ...cultureNameLocaleFileMap }, |
|||
} as ABP.Root; |
|||
} |
|||
|
|||
Loading…
Reference in new issue