Coder Social home page Coder Social logo

private-google-translate's Introduction

Private Google Translate

Private Google Translate provides private translation environment on Google Cloud Platform.

  • Using Translation API Advanced
  • Running on GAE or Cloud Run, so you can have dedicated translation with pay as you go.
  • Easy to create, delete and confirm Glossary.

Setup on GAE

  1. Enable Translation API
gcloud services enable translate.googleapis.com
  1. Create Google Cloud Storage Bucket.
gsutil mb gs://<BUCKET_NAME_FOR_STORE_GLOSSARY>
  1. Update app.yaml with your <YOUR_PROJECT_ID> and <BUCKET_NAME_FOR_STORE_GLOSSARY>
runtime: python37
service: parivate-google-translate
env_variables:
  PROJECT_ID: '<YOUR_PROJECT_ID>'
  BUCKET_NAME: '<BUCKET_NAME_FOR_STORE_GLOSSARY>'
entrypoint: gunicorn -b :8080 app:app
  1. Deploy to GAE
gcloud app deploy
  1. Setup Firewall

Setup on CloudRun

  1. Enable Translation API
gcloud services enable translate.googleapis.com
  1. Create Google Cloud Storage Bucket.
gsutil mb gs://<BUCKET_NAME_FOR_STORE_GLOSSARY>
  1. At your local environment(or Cloudshell), you need to make docker images as following command.
docker build -t gcr.io/<YOUR_PROJECT_ID>/private-google-translate:v1 .
  1. Push docker image to Google Container Registry
docker push gcr.io/<YOUR_PROJECT_ID>/private-google-translate:v1
  1. Deploy Cloud Run with environment variables
gcloud run deploy gcr.io/<YOUR_PROJECT_ID>/private-google-translate:v1 --platform=managed --port=8080 --set-env-vars=PROJECT_ID=<YOUR_PROJECT_ID>,BUCKET_NAME=<BUCKET_NAME_FOR_STORE_GLOSSARY> --project <YOUR_PROJECT_ID> --region us-central1

private-google-translate's People

Contributors

yutako0217 avatar yutty-ykawahara avatar dependabot[bot] avatar

Stargazers

 avatar BNO-koizumi 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.