Skip to content

Instantly share code, notes, and snippets.

View PhantomKunai's full-sized avatar

PhantomKunai PhantomKunai

  • India
  • 05:27 (UTC +05:30)
View GitHub Profile
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 109, in <module>
main()
File "/home/erp/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
click.Group(commands=commands)(prog_name="bench")
File "/home/erp/frappe-bench/env/lib/python3.10/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
@PhantomKunai
PhantomKunai / translate.py
Created July 20, 2021 18:56
Translation code for reference.
import glob
import json
import time
import os
import sys
from google.cloud import translate_v2 as translate
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r'GCP.json'
translateClient = translate.Client()