Localizator helps you to manage translation in your mobile apps
To use the Localizator, you must be running Mac OS X, and having swift installed.
$swift -v
Apple Swift version 4.2.1
Download the latest Localizator Release here
The localizator is managed by a .plist file.
You can download here a sample of the localizator.plist file.
| key | type | mandatory | value |
|---|---|---|---|
| accounts | [String] | true | List of account to use for authentication |
| fileId | String | true | Id of your Google Drive file |
| gid | String | false | gid of your Google Drive file ( only if you need to use a secondary tab of the Google sheet |
| platform | String | true | Choose your platform ( ios | android | yml) |
| path | String | true | Path for your files generation |
| skipRows | Int | true | Number of row to skip ( may be your table headers ) |
| keyColumn | Int | true | Index of the column containing the keys |
| commentColumn | Int | true | Index for comments. They will be inserted into the generated files. use -1 to exclude comments |
| locales | [ { String : Any }] | true | Array of object describing your drive file. See plist sample |
The locale object used in the locales key should looks like :
<dict>
<key>overrideColumn</key> <!-- optionnal -->
<integer>2</integer> <!-- Provide a fallback column -->
<key>subpath</key>
<string>values</string> <!-- Will be appended to {path} -->
<key>column</key> <!-- The column index -->
<integer>3</integer>
</dict>$./Localizator localizator.plist
Use $./Localizator localizator.plist -w to generate a shortcut to your drive file
- Copy the
Localizatorbinary into/Library/Localizator/Localizator - Export the new PATH as
$export PATH=$PATH:/Library/Localizator( could be pasted in~/.bash_profile) - Run
$Localizatorfrom anywhere
If you encouter issue while opening the Localizator bynary due to "Untrusted Developper" (and if you trust me) you can unlock following : https://support.apple.com/fr-fr/guide/mac-help/mh40616/mac