Skip to content

Commit 18631e9

Browse files
committed
2 parents 1e9b60e + 8d29f56 commit 18631e9

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,19 @@ See the Python package [BardAPI](https://github.com/dsdanielpark/Bard-API) for m
109109

110110
print(1/0)
111111
```
112+
113+
*Other languages* <br>
114+
The bardapi package, starting from version 0.1.9, utilizes the translation feature from the Python package called googletrans. This allows users to receive debugging assistance in various languages, which can be helpful for students or beginners in Python. It provides a small but valuable aid to overcome language barriers and understand error messages in different languages, enabling users to find solutions. This update opens up opportunities for more people to start programming and receive support in problem-solving.
115+
```python
116+
import cocoder.ipython
117+
import os
118+
os.environ['_BARD_API_KEY'] = 'xxxxxxxxxxx'
119+
os.environ["_BARD_ADVICE_LANG"]='arabic'
120+
# os.environ['_PROMPT_COMMAND'] = "You can make customized prompt in here."
121+
122+
print(1/0)
123+
```
124+
112125

113126

114127
# Python
@@ -135,7 +148,7 @@ See the Python package [BardAPI](https://github.com/dsdanielpark/Bard-API) for m
135148
from cocoder import ExceptPyCocoder
136149
import os, sys
137150
os.environ['_BARD_API_KEY'] = 'xxxxxxx'
138-
# os.environ["_BARD_ADVICE_LANG"]='ko','jp'
151+
# os.environ["_BARD_ADVICE_LANG"]='ko','jp','arabic' etc.
139152
# os.environ['_PROMPT_COMMAND']="You can make customized prompt in here."
140153

141154
sys.excepthook = ExceptPyCocoder()

0 commit comments

Comments
 (0)