Skip to content

Commit ce98828

Browse files
authored
Update README.md
1 parent 94d6194 commit ce98828

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
1-
# googletrans
1+
# Google Translate API for Python
2+
3+
This is a Python library that provides an interface to the Google Translate API.
4+
5+
## Installation
6+
7+
You can install this library using pip:
8+
9+
```bash
10+
pip3 install googletrans-python
11+
```
12+
13+
## Usage
14+
15+
```python
16+
import googletrans as gt
17+
18+
# Translate text from English to Korean
19+
print(gt.translate("Hello, How are you?", "ko"))
20+
21+
# Translate text from English to Japanese
22+
print(gt.translate("Hello, How are you?", "ja"))
23+
24+
# Translate text from English to French
25+
print(gt.translate("Hello, How are you?", "fr"))
26+
```
27+
28+
```bash
29+
안녕하세요. 어떻게 지내세요?
30+
こんにちは元気ですか?
31+
Bonjour comment allez-vous?
32+
```

0 commit comments

Comments
 (0)