Skip to content

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

Notifications You must be signed in to change notification settings

bikcrum/Android-String-Translator-GCP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages