fix(i18n): change default locale from `en_US` to `en-US` (#11103)

This commit is contained in:
Victor Berchet 2016-08-26 10:30:10 -07:00 committed by GitHub
parent f25c97671a
commit b9647b7347
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ export function _keyValueDiffersFactory() {
ViewUtils,
{provide: IterableDiffers, useFactory: _iterableDiffersFactory},
{provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory},
{provide: LOCALE_ID, useValue: 'en_US'},
{provide: LOCALE_ID, useValue: 'en-US'},
]
})
export class ApplicationModule {

View File

@ -11,7 +11,7 @@ import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, injec
export function main() {
describe('Application module', () => {
it('should set the default locale to "en_US"',
inject([LOCALE_ID], (defaultLocale: string) => { expect(defaultLocale).toEqual('en_US'); }));
it('should set the default locale to "en-US"',
inject([LOCALE_ID], (defaultLocale: string) => { expect(defaultLocale).toEqual('en-US'); }));
});
}