Added support for URLs in strings’ content
Air Strings is a command-line tool for translating localizable strings in Google Sheets.
Tis is usually done in Xcode or AppCode. The preferred format is "key" = "value"; // comment 🤷♂️
"key" = "value"; // comment
The command like airstrings push --path en/Localizable.strings will upload key-value pairs with their comments into the Google spreadsheet.
airstrings push --path en/Localizable.strings
Then you translate strings into any language. By the way, Google Sheets are perfect for collaboration!
Once translation is done, download all strings back using a command like airstrings pull --path ru/Localizable.strings.
airstrings pull --path ru/Localizable.strings
In order to build an executable you need a client identifier and a secret for Google Sheets API. Please follow instructions at https://developers.google.com/sheets/api/guides/authorizing#OAuth2Authorizing to generate something like this:
Once generated, copy and replace string values for CLIENT_ID and CLIENT_SECRET in the following script:
CLIENT_ID
CLIENT_SECRET
git clone git@github.com:CirkusApp/airstrings.git cd airstrings CLIENT_ID=1234567890-abcdefg0987654321.apps.googleusercontent.com CLIENT_SECRET=abcdefgh123456789 echo "GCC_PREPROCESSOR_DEFINITIONS = \$(inherited) \ AIR_GOOGLE_SHEETS_CLIENT_IDENTIFIER=$CLIENT_ID \ AIR_GOOGLE_SHEETS_CLIENT_SECRET=$CLIENT_SECRET" > \ AirSecrets.xcconfig swift package generate-xcodeproj \ --xcconfig-overrides AirSecrets.xcconfig xcodebuild \ -project airstrings.xcodeproj \ -target airstrings \ -configuration Release
At the moment Air Strings is available only after building manually:
build/Release/airstrings <command> [options]
Once the app is ready for public, we’ll probably publish at Brew.
AirStrings.Error.localizedDescription
Makefile
swift build
.xcconfig
-Xcc
brew install airstrings
.strings
.properties
OysterKit
Vadim @Shpakovski.
© 2018 Farmers WIFE S.L.
Air Strings is licensed under MIT License.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Air Strings
Air Strings is a command-line tool for translating localizable strings in Google Sheets.
1. Prepare localization as Localizable.strings
Tis is usually done in Xcode or AppCode. The preferred format is
"key" = "value"; // comment
🤷♂️2. “Push” Localizable.strings to Google Sheets
The command like
airstrings push --path en/Localizable.strings
will upload key-value pairs with their comments into the Google spreadsheet.3. Translate strings using Google Sheets
Then you translate strings into any language. By the way, Google Sheets are perfect for collaboration!
3. “Pull” translations as Localizable.strings
Once translation is done, download all strings back using a command like
airstrings pull --path ru/Localizable.strings
.🎉 Done!
Building
In order to build an executable you need a client identifier and a secret for Google Sheets API. Please follow instructions at https://developers.google.com/sheets/api/guides/authorizing#OAuth2Authorizing to generate something like this:
Once generated, copy and replace string values for
CLIENT_ID
andCLIENT_SECRET
in the following script:Running
At the moment Air Strings is available only after building manually:
Once the app is ready for public, we’ll probably publish at Brew.
Roadmap
AirStrings.Error.localizedDescription
Makefile
withswift build
and.xcconfig
passed via-Xcc
brew install airstrings
.strings
.properties
files usingOysterKit
Thanks
Contact
Vadim @Shpakovski.
Copyright
© 2018 Farmers WIFE S.L.
License
Air Strings is licensed under MIT License.