forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor($locale): use en-us as generic built-in locale
Previously there was a custom built en-us locale that was included with angular.js. This made likely that it would get out of sync with the real en-us locale that is generated from the closure library. This change removes that custom one and uses the generated one instead. This also has the benefit of preventing the unwanted caught error on trying to load `ngLocale` during angular bootstrap. Closes angular#12134 Closes angular#8174
- Loading branch information
1 parent
9e492c3
commit 70ce425
Showing
7 changed files
with
33 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* @ngdoc module | ||
* @name ngLocale | ||
* | ||
* @description | ||
* There is a different `ngLocale` module for each of the locales found in the closure library. | ||
* See {@link i18n} | ||
* Each module exposes a `$locale` service, which provides localization rules for various Angular components. | ||
* Right now the only required property of the `$locale` service is: | ||
* | ||
* * `id` – `{string}` – locale id formatted as `languageId-countryId` (e.g. `en-us`) | ||
* | ||
* But most locales expose a number of other useful members such as: | ||
* | ||
* * `DATETIME_FORMATS` property | ||
* * `NUMBER_FORMATS` property | ||
* * `pluralCat` member | ||
*/ |
This file was deleted.
Oops, something went wrong.