Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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