question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Currency pipe formats wrong tg locale

See original GitHub issue

Which @angular/* package(s) are the source of the bug?

common

Is this a regression?

Yes

Description

When use tg (Tajikistan) locale currency symbol should be ‘сомонӣ’ and number formatting with . for fraction part. Example: Should be: 11 111.98 сомонӣ

I get : 11 111,98 сом.

Also in russian and english locale symbol should be ‘сомони’ and ‘somoni’ from right side. But I get from left side.

Russian locale currency TJS should be: 11 111.98 сомони I get:

11 111,98 TJS (should be dot not comma)

English locale should be : 11,111.98 somoni

But I get: TJS11,111.98

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 13.3.7
Node: 16.15.0
Package Manager: yarn 1.22.18
OS: win32 x64

Angular: 13.3.10
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1303.7
@angular-devkit/build-angular   13.3.7
@angular-devkit/core            13.3.7
@angular-devkit/schematics      13.3.7
@angular/cdk                    13.3.8
@angular/cli                    13.3.7
@schematics/angular             13.3.7
rxjs                            6.6.7
typescript                      4.6.3

Anything else?

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ilkhom-Scommented, Jun 7, 2022

Thanks for your answer, It seems problem relies on repo you using. I will write there.

0reactions
angular-automatic-lock-bot[bot]commented, Jul 8, 2022

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - Currency pipe wrong format - Stack Overflow
Using this : providers: [{provide: LOCALE_ID, useValue: 'it-IT'}] formats correctly the currency but I don't want a default LOCALE. So Why this ...
Read more >
CurrencyPipe - Angular
Transforms a number to a currency string, formatted according to locale rules that determine group sizing and separator, decimal-point character, ...
Read more >
Angular currency Filter - W3Schools
The currency filter formats a number to a currency format. By default, the locale currency format is used. Syntax. {{ number | currency...
Read more >
angular 4 Currency pipe don't format numbers correctly ...
[Solved]-angular 4 Currency pipe don't format numbers correctly-angular.js. Search. score:1. You can set the locale-id which you could add to the providers
Read more >
Currency filter - djangosnippets
Formats a number in the local currency format. ... from django import template import locale locale.setlocale(locale.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found