mirror of https://github.com/abpframework/abp.git
committed by
GitHub
7 changed files with 57 additions and 10 deletions
|
After Width: | Height: | Size: 19 KiB |
@ -1,4 +1,15 @@ |
|||
import { InjectionToken } from '@angular/core'; |
|||
import { ABP } from '../models/common'; |
|||
import differentLocales from '../constants/different-locales'; |
|||
|
|||
export const CORE_OPTIONS = new InjectionToken<ABP.Root>('CORE_OPTIONS'); |
|||
|
|||
export function coreOptionsFactory({ |
|||
cultureNameToLocaleFileNameMapping: localeNameMap = {}, |
|||
...options |
|||
}: ABP.Root) { |
|||
return { |
|||
...options, |
|||
cultureNameToLocaleFileNameMapping: { ...differentLocales, ...localeNameMap }, |
|||
} as ABP.Root; |
|||
} |
|||
|
|||
Loading…
Reference in new issue