Skip to content

Kyome22/RunCatLocalization

Repository files navigation

RunCatLocalization

Manage RunCat localization srtings.

RunCat uses SystemInfoKit, so localization of this library is also required.

Note

This repository does not accept requests or inquiries for RunCat.
Please send your inquiries by email, along with information about your environment and the steps to reproduce the issue.

Supported languages

  • Chinese, Simplified
  • English (primary)
  • French
  • German
  • Japanese
  • Korean

Requirements

  • Development with Xcode 16.4+
  • Written in Swift 6.1
  • Compatible with macOS 14.0+

How to Contribute

  1. Edit Sources/RunCatLocalization/RCLLanguage.swift

    public enum RCLLanguage: Sendable, Identifiable {
        case automatic
        case chineseSimplified
        case english
        case french
        case german
        case japanese
        case korean
    +   case newLanguage
    
        ︙
    
        public var locale: Locale {
            switch self {
            case .automatic:
                Locale.current
            case .chineseSimplified:
                Locale(languageCode: .chinese, script: .hanSimplified)
            case .english:
                Locale(languageCode: .english)
            case .french:
                Locale(languageCode: .french)
            case .german:
                Locale(languageCode: .german)
            case .japanese:
                Locale(languageCode: .japanese)
            case .korean:
                Locale(languageCode: .korean)
    +       case .newLanguege:
    +           Locale(languageCode: .newLanguageCode)
            }
        }
    
        ︙
    
        public static let allCases: [RCLLanguage] = [
            .chineseSimplified,
            .english,
            .french,
            .german,
            .japanese,
            .korean,
    +       .newLanguage,
        ]
    }
  2. Add Locale to xcstrings files in Sources/RunCatLocalization/Resources

  3. Edit those xcstrings files

Runner Names Translation Reference

https://kyome22.github.io/RunCatLocalization/

When contributing translations for runner names, please refer to this page to ensure appropriate translations that match each runner's characteristics. The page displays all runner names with their images and current translations, making it easier to understand the context and provide suitable translations.

Notes

Please use wording that follows Apple platform conventions. And refer to the Apple Style Guide and Apple Localization Terms Glossary for word choice.

LICENSE

Apache License Version 2.0

About

Manage RunCat localization srtings.

Resources

License

Stars

Watchers

Forks

Contributors 5

Languages