g-off / stringray Goto Github PK
View Code? Open in Web Editor NEWmacOS command line tool for manipulating and validating strings files
License: MIT License
macOS command line tool for manipulating and validating strings files
License: MIT License
A percent sign in a translated string needs to be escaped as %%
, a lint to rule detect a single `% on its own should be added.
Having a lint rule that could detect strings such as:
Look for strings where a (NS)NumberFormatter
with currency or percentage style would be better suited
Update the list of functionality that stringray provides...
Move/rename/sort should also work on the stringsdict
file
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>
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.
For example:
en: "%1$@ mentioned you on %2$@ at %3$@"
fr: "%1$@ mentioné youé oné %1$@ até %1$@"
The FR case should produce a lint error
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.