How to change the correct language name
In Class Crew, I can see there is a parameter named langague. And it's default value is 'en'. So if I want to change to support Chinese, what's the correct value for Chinese to define here?
language: str = Field( default="en", description="Language used for the crew, defaults to English.", )
I tried to change it to 'zh' but it failed with below error. Could someone help look into this issue?
crew = Crew( agents=[ city_selector_agent, local_expert_agent, travel_concierge_agent ], tasks=[identify_task, gather_task, plan_task], language='zh', verbose=True )
ERROR:
2024-08-28 16:12:22.267 Uncaught app exception
Traceback (most recent call last):
File "/home/beck_z/.conda/envs/beck_zb/lib/python3.11/site-packages/crewai/utilities/i18n.py", line 24, in load_translation
with open(prompts_path, "r") as f:
^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/beck_z/.conda/envs/beck_zb/lib/python3.11/site-packages/crewai/utilities/../translations/zh.json'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/beck_z/.conda/envs/beck_zb/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
result = func()
^^^^^^
File "/home/beck_z/.conda/envs/beck_zb/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
exec(code, module.dict)
File "/home/beck_z/crewAI-examples/trip_planner/trip_planner_chn.py", line 126, in
FileNotFoundError: [Errno 2] No such file or directory: '/home/beck_z/.conda/envs/beck_zb/lib/python3.11/site-packages/crewai/utilities/../translations/zh.json
This file is missing
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stale for 5 days with no activity.