chore: add more language supports

This commit is contained in:
Junyan Qin
2026-03-28 20:48:36 +08:00
parent 99e2976826
commit dddfa8ac79
14 changed files with 3758 additions and 0 deletions

View File

@@ -25,6 +25,15 @@ class I18nString(pydantic.BaseModel):
ja_JP: typing.Optional[str] = None
"""日文"""
th_TH: typing.Optional[str] = None
"""泰文"""
vi_VN: typing.Optional[str] = None
"""越南文"""
es_ES: typing.Optional[str] = None
"""西班牙文"""
def to_dict(self) -> dict:
"""转换为字典"""
dic = {}
@@ -36,6 +45,12 @@ class I18nString(pydantic.BaseModel):
dic['zh_Hant'] = self.zh_Hant
if self.ja_JP is not None:
dic['ja_JP'] = self.ja_JP
if self.th_TH is not None:
dic['th_TH'] = self.th_TH
if self.vi_VN is not None:
dic['vi_VN'] = self.vi_VN
if self.es_ES is not None:
dic['es_ES'] = self.es_ES
return dic