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 customS2TPhrases
customS2TPhrases(config: PhrasesConfig): void

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

Examples

Example 1

customS2TPhrases([
 ['友谊万岁', '友誼萬歲'],
 ['王后''王后'],
])

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 { customS2TPhrases } from "@raise/han-convert";
or

Import directly with a jsr specifier

import { customS2TPhrases } 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 { customS2TPhrases } 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 { customS2TPhrases } from "@raise/han-convert";

Add Package

vlt install jsr:@raise/han-convert

Import symbol

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

Add Package

npx jsr add @raise/han-convert

Import symbol

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

Add Package

bunx jsr add @raise/han-convert

Import symbol

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