Skip to content

corrupt952/xckit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xckit

A command-line tool for managing Xcode String Catalogs (.xcstrings files).

Features

  • List all localization keys with their translation status
  • Find untranslated keys for specific languages
  • Update translations directly from the command line
  • View translation progress and statistics
  • Support for multiple languages

Installation

Download the latest release from the Releases page.

Build from source

go build -o xckit

Usage

List all keys

Show all localization keys with their translation status:

xckit list

Filter keys by prefix:

xckit list --prefix "login"

Find untranslated keys

Find all untranslated keys across all languages:

xckit untranslated

Find untranslated keys for a specific language:

xckit untranslated --lang ja

Filter untranslated keys by prefix:

xckit untranslated --prefix "error"
xckit untranslated --lang ja --prefix "login"

Set translations

Set a translation for a specific key and language:

xckit set --lang ja "hello_world" "こんにちは世界"

View translation status

Get an overview of translation progress for all languages:

xckit status

Specify a custom file

By default, xckit looks for Localizable.xcstrings in the current directory. You can specify a different file:

xckit list -f path/to/your/file.xcstrings

Command Reference

list

Lists all keys with their translation status. Use --lang to filter by language.

untranslated

Shows keys that need translation. Use --lang to check a specific language.

set

Updates a translation for a specific key and language. Requires --lang, key, and value.

status

Displays translation progress summary for all languages.

version

Shows the xckit version.

Examples

# Check translation status
xckit status -f MyApp.xcstrings

# Find missing Japanese translations
xckit untranslated --lang ja -f MyApp.xcstrings

# Add a Japanese translation
xckit set --lang ja "welcome_message" "ようこそ" -f MyApp.xcstrings

# List all keys with their current translations
xckit list -f MyApp.xcstrings

Development

Running tests

make test

Building

make build

Coverage

make coverage

License

See LICENSE file for details.

About

CLI tool for managing Xcode String Catalogs (.xcstrings)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •