diff --git a/Package.swift b/Package.swift index d233735..59ee436 100644 --- a/Package.swift +++ b/Package.swift @@ -19,7 +19,10 @@ let package = Package( .target( name: "SwiftyCrop", path: "Sources", - resources: [.copy("PrivacyInfo.xcprivacy")] + resources: [ + .copy("PrivacyInfo.xcprivacy"), + .process("SwiftyCrop/Resources/Localizable.xcstrings"), + ] ), .testTarget( name: "SwiftyCropTests", diff --git a/README.md b/README.md index 00b8f30..fb5826f 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ The following languages are supported & localized: - 🇧🇷 Brazilian Portuguese - 🇰🇷 Korean - 🇯🇵 Japanese +- 🇨🇳 Chinese The localization file can be found in `Sources/SwiftyCrop/Resources`. @@ -220,6 +221,8 @@ Thanks to [@yhirano](https://github.com/yhirano) for adding the japanese localiz Thanks to [@yefimtsev](https://github.com/yefimtsev) for adding the ability to customize fonts and colors 🖼️ +Thanks to [@SuperY](https://github.com/SuperY) for adding the chinese localization 🇨🇳 + ## ✍️ Author Benedikt Betz diff --git a/Sources/SwiftyCrop/Resources/Localizable.xcstrings b/Sources/SwiftyCrop/Resources/Localizable.xcstrings index 70c560d..73240db 100644 --- a/Sources/SwiftyCrop/Resources/Localizable.xcstrings +++ b/Sources/SwiftyCrop/Resources/Localizable.xcstrings @@ -75,6 +75,12 @@ "state" : "translated", "value" : "Скасувати" } + }, + "zh" : { + "stringUnit" : { + "state" : "translated", + "value" : "取消" + } } } }, @@ -152,6 +158,12 @@ "state" : "translated", "value" : "Переміщення та масштабування" } + }, + "zh" : { + "stringUnit" : { + "state" : "translated", + "value" : "移动·缩放" + } } } }, @@ -229,6 +241,12 @@ "state" : "translated", "value" : "Зберегти" } + }, + "zh" : { + "stringUnit" : { + "state" : "translated", + "value" : "保存" + } } } }