https://github.com/ddddxxx/swiftyopencc
Swift port of OpenCC for conversion between Traditional and Simplified Chinese
https://github.com/ddddxxx/swiftyopencc
chinese-translation opencc simplified-chinese swift swifty traditional-chinese
Last synced: about 1 year ago
JSON representation
Swift port of OpenCC for conversion between Traditional and Simplified Chinese
- Host: GitHub
- URL: https://github.com/ddddxxx/swiftyopencc
- Owner: ddddxxx
- License: mit
- Created: 2017-03-09T08:40:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T05:27:53.000Z (about 5 years ago)
- Last Synced: 2025-03-15T20:33:12.707Z (over 1 year ago)
- Topics: chinese-translation, opencc, simplified-chinese, swift, swifty, traditional-chinese
- Language: Swift
- Homepage:
- Size: 2.61 MB
- Stars: 206
- Watchers: 7
- Forks: 30
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swifty Open Chinese Convert
[](https://github.com/ddddxxx/SwiftyOpenCC/actions)

[](https://codebeat.co/projects/github-com-ddddxxx-swiftyopencc-master)
Swift port of [Open Chinese Convert](https://github.com/BYVoid/OpenCC)
## Requirements
- macOS 10.10+ / iOS 8.0+ / tvOS 9.0+ / watchOS 2.0+
- Swift 5.0
## Usage
### Quick Start
```swift
import OpenCC
let str = "鼠标里面的硅二极管坏了,导致光标分辨率降低。"
let converter = try! ChineseConverter(option: [.traditionalize, .twStandard, .twIdiom])
converter.convert(str)
// 滑鼠裡面的矽二極體壞了,導致游標解析度降低。
```
## Documentation
[Github Pages](http://ddddxxx.github.io/SwiftyOpenCC) (100% Documented)
## License
SwiftyOpenCC is available under the MIT license. See the [LICENSE file](LICENSE).