Add SI-like currency format directive?

オープン
#71 コメント 18 件 リアクション 23 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

  • #81 @davinov による — マージされずにクローズ

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
backend

調査の方向性

Start with the discussion of localized currency suffixes and the closed pull request #81 to understand the prior proposal and thread outcome. The issue asks whether SI-style currency formatting should use localized billion abbreviations; the desired behavior and localization scope need a decision before implementation can be scoped.

索引モデルが issue の本文から書いたものです。

説明

When I execute the following:

[5,10,15,20].map(v => format('$.1s')(v * 1E9))

it returns:

["$5G", "$10G", "$20G", "$20G"]

However, to me it would make more sense if the combination of SI and currency would not result in G for giga, but B for billion, preferably localized.

Is support for this planned? Thanks.

主要言語
JavaScript
スター
643
フォーク
107
平均マージ
6時間 25分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

d3/d3-format のほかの issue

d3/d3-format の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。