Pipe broken because of undefined LOCALE_ID


#1

If I try to use the currency pipe I got an exception and the whole template is not rendered. The exception is caused because LOCALE_ID is undefined.

In browser everthing works fine because LOCALE_ID is set to a default value (“en-US”) but on device it is undefined. I tried to set the default value manually described here: http://stackoverflow.com/a/39344889 but the function (e.g. settingsService.getLanguage()) is never called.


#2

Android or iOS and which version? The CurrencyPipe docs do say

WARNING: this pipe uses the Internationalization API which is not yet available in all browsers and may require a polyfill.


#3

Thank you. I will create my own pipe for date, currency etc.