Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ivy): allow the locale to be set via a global property
The ivy compile time inlining tools work on the code after it has been compiled and bundled (potentially minified and mangled). It is only at this point in the processing that the current locale can be specified. The cleanest way for the tooling to provide this locale value is by setting a well-known global property (e.g. `ɵNG_LOCALE_ID`) which is then read at runtime by Angular and provided as the `LOCALE_ID` token and also passed to the ivy machinery via `setLocaleId()`. // FW-1639 See angular/angular-cli#15896
- Loading branch information
1 parent
ec482da
commit 4a66c14
Showing
2 changed files
with
73 additions
and
7 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