mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-12 23:33:43 +08:00
feat: implement locale switching between Simplified and Traditional Chinese with opencc-js
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
declare module 'opencc-js' {
|
||||
interface ConverterOptions {
|
||||
from: 'cn' | 'tw' | 'twp' | 'hk' | 'jp';
|
||||
to: 'cn' | 'tw' | 'twp' | 'hk' | 'jp';
|
||||
}
|
||||
|
||||
export function Converter(options: ConverterOptions): (text: string) => string;
|
||||
export function HTMLConverter(
|
||||
converter: (text: string) => string,
|
||||
rootNode: HTMLElement,
|
||||
fromLangTag: string,
|
||||
toLangTag: string
|
||||
): void;
|
||||
}
|
||||
Reference in New Issue
Block a user