Pipe broken because of undefined LOCALE_ID

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.

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.

1 Like

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