Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 4 months 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T05:27:53.000Z (almost 4 years ago)
- Last Synced: 2024-10-28T12:55:24.867Z (4 months ago)
- Topics: chinese-translation, opencc, simplified-chinese, swift, swifty, traditional-chinese
- Language: Swift
- Homepage:
- Size: 2.61 MB
- Stars: 199
- Watchers: 8
- 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 OpenCClet 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).