https://github.com/g-off/stringray
macOS command line tool for manipulating and validating strings files
https://github.com/g-off/stringray
ios macos strings stringsdict swift
Last synced: 4 months ago
JSON representation
macOS command line tool for manipulating and validating strings files
- Host: GitHub
- URL: https://github.com/g-off/stringray
- Owner: g-Off
- License: mit
- Created: 2018-11-05T00:36:21.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2022-10-13T15:07:45.000Z (over 3 years ago)
- Last Synced: 2026-01-14T14:33:04.814Z (6 months ago)
- Topics: ios, macos, strings, stringsdict, swift
- Language: Swift
- Size: 86.9 KB
- Stars: 6
- Watchers: 0
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# stringray
macOS command line tool for manipulating and validating strings files
## Usage
**Sort** a table by key:
```
stringray sort /path/to/base.lproj/Table.strings
````
**Move** strings where the keys prefix matches a given string (or strings with multiple `-p` args passed)
```
stringray move /path/to/original.lproj/Table.strings /path/to/new.lproj/Table.strings -p cells.title
````
**Rename** string keys where the prefix matches a given string (`-p` arg) with the replacement key prefix string (`-r` arg)
```
stringray rename /path/to/original.lproj/Table.strings -p cells.title -r labels.title
````
**Lint** a strings table or list the lint rules:
```
stringray lint -i /path/to/original.lproj/Table.strings
stringray lint -l
````
## Installing
If you have Homebrew installed then the tool is available via `brew install g-Off/tools/stringray`
## Building
Use `make` to build or `make xcode` to generate the Xcode project.