fix(i18n): change default locale from `en_US` to `en-US` (#11103)
This commit is contained in:
parent
f25c97671a
commit
b9647b7347
|
@ -40,7 +40,7 @@ export function _keyValueDiffersFactory() {
|
||||||
ViewUtils,
|
ViewUtils,
|
||||||
{provide: IterableDiffers, useFactory: _iterableDiffersFactory},
|
{provide: IterableDiffers, useFactory: _iterableDiffersFactory},
|
||||||
{provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory},
|
{provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory},
|
||||||
{provide: LOCALE_ID, useValue: 'en_US'},
|
{provide: LOCALE_ID, useValue: 'en-US'},
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class ApplicationModule {
|
export class ApplicationModule {
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, injec
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
describe('Application module', () => {
|
describe('Application module', () => {
|
||||||
it('should set the default locale to "en_US"',
|
it('should set the default locale to "en-US"',
|
||||||
inject([LOCALE_ID], (defaultLocale: string) => { expect(defaultLocale).toEqual('en_US'); }));
|
inject([LOCALE_ID], (defaultLocale: string) => { expect(defaultLocale).toEqual('en-US'); }));
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue