Coder Social home page Coder Social logo

nacto1 / android-string-translator-gcp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bikcrum/android-string-translator-gcp

0.0 1.0 0.0 3 KB

This is ready-made translator for android strings. Provide the input file and copy the generated directories into res/ in android project.

Python 100.00%

android-string-translator-gcp's Introduction

Translator for Android string resource

How to bulk translate?

Prerequisites

  1. Must have python version 3
  2. Must have billing enabled in Google Cloud Platform (GCP)
  3. Install this python package (if not installed).
    1. bs4
  4. Install the google client translation library pip install --upgrade google-cloud-translate

Steps:

  1. Goto GCP console (https://console.cloud.google.com/) then under IAM & Admin click Service accounts.
  2. Create service account and assign a role as project owner.
  3. Create key which will be downloaded into your computer.
  4. Clone and go to the project directory
  5. Put service account there and rename to project-service-account.json
  6. Use this command python translator-for-android.py <source-string-file> <languages list>
  7. Example python translator-for-android.py strings.xml fr or python translator-for-android.py strings.xml fr,de,nl
  8. To translate to all available languages just provide source string in the command
  9. After above operation you will get new translated file(s) in current directory

android-string-translator-gcp's People

Contributors

bikcrum avatar

Watchers

 avatar

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.