Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyome22/runcatlocalization
Manage RunCat localization srtings.
https://github.com/kyome22/runcatlocalization
Last synced: 3 months ago
JSON representation
Manage RunCat localization srtings.
- Host: GitHub
- URL: https://github.com/kyome22/runcatlocalization
- Owner: Kyome22
- License: apache-2.0
- Created: 2024-03-30T16:34:53.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-08T05:52:34.000Z (9 months ago)
- Last Synced: 2024-04-08T07:21:32.935Z (9 months ago)
- Language: Swift
- Homepage:
- Size: 909 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RunCatLocalization
Manage RunCat localization srtings.
RunCat uses [SystemInfoKit](https://github.com/Kyome22/SystemInfoKit), so localization of this library is also required.
## Supported languages
- English (primary)
- Japanese
- Korean## Check Strings with GUI
First, run the shell script below.
```sh
$ sh generate-strings.sh
$ open StringsChecker/StringsChecker.xcodeproj
```Build & Run StringsChecker project.
## How to Contribute
1. Edit Sources/RunCatLocalization/RCLLanguage.swift
```diff swift
public enum RCLLanguage: String, Identifiable {
case automatic
case english = "en"
case japanese = "ja"
case korean = "ko"
+ case newLanguage = "new language code"οΈ
public var label: String {
return switch self {
case .automatic: ""
case .english: "πΊπΈ English"
case .japanese: "π―π΅ ζ₯ζ¬θͺ"
case .korean: "π°π· νκ΅μ΄"
+ case .newLanguage = "π New Language"
}
}
public static let allCases: [RCLLanguage] = [
.english,
.japanese,
.korean,
+ .newLanguage
]
}
```
2. Add Locale to xcstrings files in Sources/RunCatLocalization/Resources
3. Edit those xcstrings files
4. Add Locale to StringsChecker Target
## LICENSE
Apache License Version 2.0