mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 11:19:26 +08:00
fix: translate task to cn name through right dict path
This commit is contained in:
2
alas.py
2
alas.py
@@ -959,7 +959,7 @@ class AzurLaneAutoScript(AzurLaneAutoScript):
|
|||||||
|
|
||||||
def get_task_name(self, task):
|
def get_task_name(self, task):
|
||||||
try:
|
try:
|
||||||
return read_file(filepath_i18n('zh-CN'))[task]["_info"]["name"]
|
return read_file(filepath_i18n('zh-CN'))["Task"][task]["name"]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return task
|
return task
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user