Skip to content

celian-m/SwiftLocalizator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SwiftLocalizator

Localizator helps you to manage translation in your mobile apps

Requirements

To use the Localizator, you must be running Mac OS X, and having swift installed.

$swift -v
Apple Swift version 4.2.1

Download

Download the latest Localizator Release here

Usage

Configuration

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

Locale Object

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>

Run

$./Localizator localizator.plist

Tip

Webloc

Use $./Localizator localizator.plist -w to generate a shortcut to your drive file

Shortcut

  • Copy the Localizator binary into /Library/Localizator/Localizator
  • Export the new PATH as $export PATH=$PATH:/Library/Localizator ( could be pasted in ~/.bash_profile )
  • Run $Localizator from anywhere

Mac OS BigSur

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

About

Localizator helps you to manage translation in your mobile apps

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors