mirror of https://github.com/abpframework/abp
resolves #4867pull/4868/head
parent
7a90fbefce
commit
c0230b7ccc
@ -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