claude-code-kr 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/patches/fragile.js +7 -0
- package/package.json +1 -1
package/lib/patches/fragile.js
CHANGED
|
@@ -104,6 +104,13 @@ const patches = [
|
|
|
104
104
|
// formatDuration — mostSignificantOnly (상태줄 간략 표시)
|
|
105
105
|
[/return`\$\{([\w$]+)\}d`;if\(([\w$]+)>0\)return`\$\{\2\}h`;if\(([\w$]+)>0\)return`\$\{\3\}m`;return`\$\{([\w$]+)\}s`/,
|
|
106
106
|
'return`${$1}일`;if($2>0)return`${$2}시간`;if($3>0)return`${$3}분`;return`${$4}초`'],
|
|
107
|
+
|
|
108
|
+
// formatNumber compact — "1.3k" → "1.3천", "1.3M" → "130만", "1B" → "10억"
|
|
109
|
+
// Intl.NumberFormat의 locale을 ko로 바꿈
|
|
110
|
+
['new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1})',
|
|
111
|
+
'new Intl.NumberFormat("ko",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1})'],
|
|
112
|
+
['new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0})',
|
|
113
|
+
'new Intl.NumberFormat("ko",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0})'],
|
|
107
114
|
];
|
|
108
115
|
|
|
109
116
|
module.exports = patches;
|