Giter VIP home page Giter VIP logo

localizationcommand's Introduction

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.

localizationcommand's People

Contributors

yusanlou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.