[fix]: Translator fix
This commit is contained in:
parent
d8d8597ade
commit
ab23d93500
@ -32,12 +32,9 @@ def translate(string, region):
|
|||||||
|
|
||||||
async def get_text(inter, location, string):
|
async def get_text(inter, location, string):
|
||||||
data = await inter.translate(
|
data = await inter.translate(
|
||||||
app_commands.locale_str(string),
|
string=app_commands.locale_str(string),
|
||||||
locale=inter.locale,
|
locale=inter.locale,
|
||||||
data=app_commands.TranslationContext(
|
data=location
|
||||||
trans_loc.other,
|
|
||||||
location
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
return data or string
|
return data or string
|
||||||
|
Reference in New Issue
Block a user