mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-16 16:14:28 -04:00
Fix translation command
This commit is contained in:
parent
e8531f3faf
commit
3e3fc7ad66
4 changed files with 45 additions and 34 deletions
|
@ -90,7 +90,7 @@ def create_command(commands, concat=False):
|
|||
|
||||
|
||||
async def translate(language, json_output=False):
|
||||
async with HonAPI() as hon:
|
||||
async with HonAPI(anonymous=True) as hon:
|
||||
keys = await hon.translation_keys(language)
|
||||
if json_output:
|
||||
print(json.dumps(keys, indent=4))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue