阿拉伯數字 ↔ 國字大寫(公文/合約/支票場景)。 direction='arabic_to_chinese' (預設) 或 'chinese_to_arabic'。
參數
| 參數 | 型別 | 說明 |
|---|---|---|
| value * | string | — |
| direction | "arabic_to_chinese" | "chinese_to_arabic" | — |
原始 JSON schema
{
"properties": {
"value": {
"title": "Value",
"type": "string"
},
"direction": {
"default": "arabic_to_chinese",
"enum": [
"arabic_to_chinese",
"chinese_to_arabic"
],
"title": "Direction",
"type": "string"
}
},
"required": [
"value"
],
"title": "format_chinese_numeralsArguments",
"type": "object",
"additionalProperties": false
}呼叫方式
起手式——參數見上表
tw_format_chinese_numerals({ value: "…" })