Skip to content

felipesilveira/LocalizationTool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

My image

Localization Tool is made for Google Apps Script platform and provides an easy and efficient way to manage strings for Android and iOS localized apps.

The tool runs as an addon for Google Spreadsheet and creates an extra menu option with the following options: "Import Android/iOS" files and "Generate Localization Files". With those options, you can fill the spreadsheet based on your localization file and/or create the localization files (Android's strings.xml and iOS Localizable.string) based on the data from the spreadsheet.

The Spreadsheet

Localization Tool works on a spreadsheet in the following format:

The spreadsheet should contain one column for the android key, one column for the ios key and an extra column for each supported language, with the language code in the header. Each line in the spreadsheet corresponds to a string to be generated in the localization files.

To initialize the header you can use the menu option Localization Tool > Initialize. This option creates the header in the format above.

Generating the localization files

To generate android and iOS files, use the "Generate Localization Files" menu option:

Using this option, the spreadsheet data will be processed and the localization files will be generated in the Google Drive directory called "LocalizationTool":

After the files generation, the script also highlights the strings without translation.

Importing Android/iOS files

You can also fill the spreadsheet based in a localization file from Android or iOS using the function Import. Click on Localization Tool > Import > Import Android File or Import iOS File and then upload the file and select its language:

Installation

The installation of an addon is pretty simple. Just create a new Google Spreadsheet and click on Tools > Script editor.

In the created project, copy the contents of localizationtool.gs. Go back to the spreadsheet and refresh it. The "Localization Tool" menu will appear.

WishList (or next features)

  • Support for android string-array and plurals.
  • Settings (So the user will be able to select the directory where the files will be generated.
  • Duplicate strings checker
  • Windows Phone support.

Send your ideas for [email protected]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published