Skip to main content
Home

Built and signed on GitHub Actions

中文繁简体转换, 内置字库,零依赖,支持任何运行时。

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (2.3.0)
function customT2SPhrases
customT2SPhrases(config: PhrasesConfig): void

添加 自定义 繁体转简体 短语集合

Examples

Example 1

customT2SPhrases([
  ['酒逢知己千鍾少', '酒逢知己千锺少'],
  ['雖覆能復', '虽覆能复'],
])

Parameters

config: PhrasesConfig
  • 短语集合 [['繁体短语', '简体短语'], ...]

Return Type

void

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@raise/han-convert

Import symbol

import { customT2SPhrases } from "@raise/han-convert";
or

Import directly with a jsr specifier

import { customT2SPhrases } from "jsr:@raise/han-convert";

Add Package

pnpm i jsr:@raise/han-convert
or (using pnpm 10.8 or older)
pnpm dlx jsr add @raise/han-convert

Import symbol

import { customT2SPhrases } from "@raise/han-convert";

Add Package

yarn add jsr:@raise/han-convert
or (using Yarn 4.8 or older)
yarn dlx jsr add @raise/han-convert

Import symbol

import { customT2SPhrases } from "@raise/han-convert";

Add Package

vlt install jsr:@raise/han-convert

Import symbol

import { customT2SPhrases } from "@raise/han-convert";

Add Package

npx jsr add @raise/han-convert

Import symbol

import { customT2SPhrases } from "@raise/han-convert";

Add Package

bunx jsr add @raise/han-convert

Import symbol

import { customT2SPhrases } from "@raise/han-convert";