Title: Currency pipe is not working in compliance with the localization settings. · Issue #16591 · angular/angular · GitHub
Open Graph Title: Currency pipe is not working in compliance with the localization settings. · Issue #16591 · angular/angular
X Title: Currency pipe is not working in compliance with the localization settings. · Issue #16591 · angular/angular
Description: I'm submitting a bug report. Current behavior USD 12,30 Expected behavior I configure the LOCALE_ID provider to the Dutch language on the app module level. My purpose it to use the currency pipe and have the number text converted to this...
Open Graph Description: I'm submitting a bug report. Current behavior USD 12,30 Expected behavior I configure the LOCALE_ID provider to the Dutch language on the app module level. My purpose it to use the currency pipe an...
X Description: I'm submitting a bug report. Current behavior USD 12,30 Expected behavior I configure the LOCALE_ID provider to the Dutch language on the app module level. My purpose it to use the currency pip...
Opengraph URL: https://github.com/angular/angular/issues/16591
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Currency pipe is not working in compliance with the localization settings.","articleBody":"**I'm submitting a** bug report.\r\n\r\n**Current behavior**\r\n\r\n`USD 12,30`\r\n\r\n**Expected behavior**\r\n\r\nI configure the LOCALE_ID provider to the Dutch language on the app module level. \r\nMy purpose it to use the currency pipe and have the number text converted to this:\r\n\r\n`€ 12,30`\r\n\r\nAs mentioned on the [documentation for the currency pipe](https://angular.io/docs/ts/latest/api/common/index/CurrencyPipe-pipe.html), I expect\r\nto see the currency sign rather than the currency code.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\n\r\nI configure the localization at the app module level.\r\n\r\n```\r\n@NgModule({\r\n imports: [ BrowserModule ],\r\n declarations: [ AppComponent ],\r\n providers: [\r\n { provide: LOCALE_ID, useValue: 'nl' }\r\n ],\r\n bootstrap: [ AppComponent ]\r\n})\r\n\r\nexport class AppModule { }\r\n```\r\n\r\nI'm using the currency pipe on my component.\r\n\r\n```\r\n@Component({\r\n selector: 'my-app',\r\n template: '\u003ch1>{{title}}\u003c/h1>' +\r\n '\u003cdiv>{{convertNumber | currency}}\u003c/div>',\r\n})\r\n\r\nexport class AppComponent {\r\n title = 'Currency Pipe Test';\r\n convertNumber = '12.30';\r\n}\r\n```\r\n\r\nFor the working example, please check this [plnkr link](https://plnkr.co/edit/0lh50OHED5d8CBEifEUW?p=preview).\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n\r\nApparently, the localization file for Dutch language is wrong. I can't find the\r\nlocation of this localization file. If I can, I would like to fix it.\r\n\r\n**Please tell us about your environment:**\r\n-\r\n\r\n* **Angular version:** 4.0.X\r\n\r\n* **Browser:** [all ]\r\n \r\n* **Language:** [all |TypeScript ]\r\n\r\n* **Node (for AoT issues):** `\r\nv6.10.0\r\n","author":{"url":"https://github.com/frontconnect","@type":"Person","name":"frontconnect"},"datePublished":"2017-05-05T19:30:40Z","url":"https://github.com/angular/angular/issues/16591"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5ad425b4-4e6b-4611-a272-50e96af252df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0A8:311640:1ACE5DB:2213592:6B015102 |
| html-safe-nonce | 023e2c2bc7df51a999f93bd9d6d29beff412d9f6561302d4568e81c41aacd931 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEE4OjMxMTY0MDoxQUNFNURCOjIyMTM1OTI6NkIwMTUxMDIiLCJ2aXNpdG9yX2lkIjoiNzIzOTc1NTM4MTcwMDkwNzI2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 744464d662991cb5ca2d3e3713687b783734e8eaff5bee2528af5825b817ce93 |
| hovercard-subject-tag | issue:226670007 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/16591/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1403eb0da2d82b85ddebd01bc383d365e7a68b9b582dda74fe79c252975d21d5/angular/angular/issues/16591 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1403eb0da2d82b85ddebd01bc383d365e7a68b9b582dda74fe79c252975d21d5/angular/angular/issues/16591 |
| og:image:alt | I'm submitting a bug report. Current behavior USD 12,30 Expected behavior I configure the LOCALE_ID provider to the Dutch language on the app module level. My purpose it to use the currency pipe an... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | frontconnect |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width