Coder Social home page Coder Social logo

matthew-siu / i18n-googlesheet-translator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 478 KB

This is a Google Apps Script for converting spreadsheet to iOS and Android localisation file.

JavaScript 100.00%
i18n google-apps-script spreadsheet ios-localization android-localization localization android-localizable-strings ios-localizable excel internationalization

i18n-googlesheet-translator's Introduction

i18n-googlesheet-translater

The application is used for converting the spreadsheet to native iOS (.strings) and Android (.xml) localization files by Google Apps Script.

Setup

  1. Create or open a spreadsheet in Google Sheets.

  2. Add Google Apps Script Add-on. You may follow this link to finish the installation: https://developers.google.com/apps-script/guides/sheets/functions

  3. Add scripts. Copy and paste the code in main.gs and i18n-utils.gs to the script. setup1

  4. Select the function you want to execute and click Run. setup2

  5. If you want to customize some buttons linking to those functions, you may follow this link: https://www.benlcollins.com/apps-script/google-sheets-button/. setup3

Outputs

After clicking Run or your custom button, you would have the i18n translation for

  • Android format: .xml output1

  • iOS format: .strings output2

Each column represents a localized script. Copy and paste to your project.

Attentions

  • Follow this pattern to edit the localization. format1

  • You can create and edit more than one spreadsheet.

  • Avoid naming the sheet with the word "i18n-". This is the exported sheet name for the corresponding OS.

  • The program will take the number of language in first spreadsheet as the reference.

i18n-googlesheet-translator's People

Contributors

matthew-siu avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kennethlzh2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.