Skip to content

Commit

Permalink
Merge remote-tracking branch 'gorayan/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorayan-sub committed Aug 17, 2021
2 parents 48ecda2 + d8152d5 commit a1f989e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# yaml-translater
Google Cloud Translation APIを使ったYamlファイル翻訳するPythonスクリプト
## Setup
サービスアカウントキーの設定(windows)
```
setx GOOGLE_APPLICATION_CREDENTIALS <json_key_path> -m
```
[公式ドキュメント](https://cloud.google.com/translate/docs/setup)
## Requirements
* Python 3.9
* pyyaml 5.4.1
* google-cloud-translate 2.0.1
## Example
before
```
a: Hello
b:
a: Good Night
b: I am Fine
c:
- What are you doing?
- a: Hey Guys!
b: We have a gift for you
```
after
```
a: こんにちは
b:
a: おやすみ
b: 私は元気です
c:
- 何してるの?
- a: やあみんな!
b: 私たちはあなたへの贈り物を持っています
```

0 comments on commit a1f989e

Please sign in to comment.