LocalizationCommand
Command Line for localization
Install / Use
/learn @yusanlou/LocalizationCommandREADME
localizationCommand description
Command Line for localization (Supported OC and swift) , Instead of genstrings。
Usage:
The simplest way to install the localizationCommand command-line tool is via Homebrew. If you already have Homebrew installed, just type
> brew update
> brew tap BackNotGod/localizationCommand && brew install localizationCommand
or
> git clone https://github.com/BackNotGod/localizationCommand.git
> cd localizationCommand
> ./install.sh
How to use it ?
localizationcommand -h
-h, --help:
Prints a help message.
-e, --exceptPath:
exceptPath paths which should not search in.
-p, --projectPath:
projectPath paths which should search in.
-v, --version:
version.
-a, --append:
append to the file context.
-r, --replace:
replace to the file context.
So,if you want to scan for your iOS project with localizationCommand, For example:
localizationcommand -p "Your pro path" -e "paths you don`t wanna scan for"
And,localizationCommand support two model to write to Localizable.strings file (default is replace model):
-a, --append:
append to the file context.
-r, --replace:
replace to the file context.
Then,localizationCommand can wirte the additional infomation to Localizable.strings file , like this:
/* EXTableViewCell : "comment" */
"xxx" = "xxxx";
if your NSLocalizedString(key: String, comment: String)->String is Ambiguous ,At the end of commandline ,it will print:
NSObject+RACSelectorSignal.m:
"A race condition occurred implementing %@ on class %@"
RACSignal+Operations.m:
"No matching signal found for value %@"
More info
http://www.jianshu.com/p/a9ec43123860
License
localizationCommand is released under the MIT license. See LICENSE for details.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
