Skip to content

Commit

Permalink
Merge pull request #28 from SuperY/master
Browse files Browse the repository at this point in the history
fix: When using Tuist, make sure that xcstrings files can be compiled…
  • Loading branch information
benedom authored Jan 11, 2025
2 parents 454d0a0 + f0264c3 commit d07b190
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions Sources/SwiftyCrop/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@
"state" : "translated",
"value" : "Скасувати"
}
},
"zh" : {
"stringUnit" : {
"state" : "translated",
"value" : "取消"
}
}
}
},
Expand Down Expand Up @@ -152,6 +158,12 @@
"state" : "translated",
"value" : "Переміщення та масштабування"
}
},
"zh" : {
"stringUnit" : {
"state" : "translated",
"value" : "移动·缩放"
}
}
}
},
Expand Down Expand Up @@ -229,6 +241,12 @@
"state" : "translated",
"value" : "Зберегти"
}
},
"zh" : {
"stringUnit" : {
"state" : "translated",
"value" : "保存"
}
}
}
}
Expand Down

0 comments on commit d07b190

Please sign in to comment.