mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 15:40:22 +00:00
- add i18n/closure directory with closure i18n files and update-closure.sh script to update them - generate.sh script runs node.js scripts that extract localization rules from the closure library, transform them to a more suitable format and dumps them into i18n/locale directory as angular's $locale services - update Rakefile to copy i18n files to build/ and pkg/ dirs - copy i18n stuff during rake build - e2e tests for several locales
14 lines
638 B
JavaScript
14 lines
638 B
JavaScript
var util = require('../src/util.js');
|
|
|
|
describe('findLocaleId', function() {
|
|
it('should find localeId', function() {
|
|
expect(util.findLocaleId('', 'num')).toBeUndefined();
|
|
expect(util.findLocaleId('aa', 'datetime')).toBeUndefined();
|
|
expect(util.findLocaleId('aa', 'randomType')).toBeUndefined();
|
|
expect(util.findLocaleId('NumberFormatSymbols_en', 'datetime')).toBeUndefined();
|
|
expect(util.findLocaleId('DateTimeSymbols_en', 'num')).toBeUndefined();
|
|
|
|
expect(util.findLocaleId('DateTimeSymbols_en', 'datetime')).toBe('en');
|
|
expect(util.findLocaleId('NumberFormatSymbols_en_US', 'num')).toBe('en_US');
|
|
});
|
|
});
|