ソースを参照

fix: translatable short number symbol (#17689)

version-14
Ankush Menat 2年前
committed by GitHub
コミット
d9e62303a4
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
2個のファイルの変更5行の追加5行の削除
  1. +4
    -4
      frappe/public/js/frappe/utils/number_systems.js
  2. +1
    -1
      frappe/public/js/frappe/utils/utils.js

+ 4
- 4
frappe/public/js/frappe/utils/number_systems.js ファイルの表示

@@ -2,19 +2,19 @@ export default {
default: [
{
divisor: 1.0e12,
symbol: "T"
symbol: __("T", null, "Number system")
},
{
divisor: 1.0e9,
symbol: "B"
symbol: __("B", null, "Number system")
},
{
divisor: 1.0e6,
symbol: "M"
symbol: __("M", null, "Number system")
},
{
divisor: 1.0e3,
symbol: "K"
symbol: __("K", null, "Number system")
}
],
indian: [


+ 1
- 1
frappe/public/js/frappe/utils/utils.js ファイルの表示

@@ -1311,7 +1311,7 @@ Object.assign(frappe.utils, {
result = no_of_decimals > max_no_of_decimals
? result.toFixed(max_no_of_decimals)
: result;
return result + ' ' + __(map.symbol, null, "Number system");
return result + ' ' + symbol;
}
}



読み込み中…
キャンセル
保存