GithubHelp home page GithubHelp logo

g-off / stringray Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 1.0 89 KB

macOS command line tool for manipulating and validating  strings files

License: MIT License

Swift 99.78% Dockerfile 0.22%
macos ios swift strings stringsdict

stringray's People

Contributors

dannbeau avatar g-off avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kudalies

stringray's Issues

Update readme

Update the list of functionality that stringray provides...

Support String Dict files with `NSStringVariableWidthRuleType`

Support .stringdict files with string rule type: NSStringVariableWidthRuleType

See the example below which doesn't load during lint operation.

?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CLAM_CHOWDER</key>
	<dict>
		<key>NSStringVariableWidthRuleType</key>
		<dict>
			<key>1</key>
			<string>Clam Chowder</string>
			<key>25</key>
			<string>New England Clam Chowder</string>
		</dict>
	</dict>
	<key>CHICKEN_NOODLE_SOUP</key>
	<dict>
		<key>NSStringVariableWidthRuleType</key>
		<dict>
			<key>1</key>
			<string>Chicken Noodle</string>
			<key>25</key>
			<string>Chicken Noodle Soup</string>
		</dict>
	</dict>
</dict>
</plist>

Enhance helper text for string lint command

Right now, stringray lint or stringray lint <filepath> does not work.
stringray lint -h only says it has 1 option of --list, -l List available rules and default configuration

Add helper text to indicate usage of stringray lint can include option stringray lint --input and what --input, -i means.

Lint Rule support

  • Check for duplicate keys
  • Check for missing keys in non-base language
  • Check for orphaned keys in non-base language
  • Enforce strings with multiple substitutions use numbered positions

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.