feat(i18n): provide LOCALE_ID and NgLocalization
This commit is contained in:
committed by
Vikram Subramanian
parent
4df48b202c
commit
ce4eae65a7
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {LOCALE_ID} from '@angular/core';
|
||||
import {beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '../testing/testing_internal';
|
||||
|
||||
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'); }));
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user