• Stars
    star
    185
  • Rank 208,271 (Top 5 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Swift port of OpenCC for conversion between Traditional and Simplified Chinese

Swifty Open Chinese Convert

Github CI Status platforms codebeat badge

Swift port of Open Chinese Convert

Requirements

  • macOS 10.10+ / iOS 8.0+ / tvOS 9.0+ / watchOS 2.0+
  • Swift 5.0

Usage

Quick Start

import OpenCC

let str = "鼠标里面的硅二极管坏了,导致光标分辨率降低。"
let converter = try! ChineseConverter(option: [.traditionalize, .twStandard, .twIdiom])
converter.convert(str)
// 滑鼠裡面的矽二極體壞了,導致游標解析度降低。

Documentation

Github Pages (100% Documented)

License

SwiftyOpenCC is available under the MIT license. See the LICENSE file.