Skip to content

Commit

Permalink
Merge pull request #42 from beclab/feat/multi-language
Browse files Browse the repository at this point in the history
fix: multi language
  • Loading branch information
icebergtsn authored Oct 12, 2024
2 parents 070681d + 6c8561a commit c771979
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/i18n/zh-CN/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
entertainment: '娱乐',
social_network: '社交网络',
blockchain: '区块链',
recommendation: '推荐',
recommendation: '推荐算法',
recommend: '推荐',
models: '模型',
large_language_model: '大语言模型',
Expand Down Expand Up @@ -83,7 +83,7 @@ export default {
version_history: '版本历史',
get_a_client: '获取客户端',
dependency: '依赖项',
reference_app: '参考应用',
reference_app: '授权应用',
see_all_version: '查看所有版本',
download: '下载',
no_version_history_desc: '该应用没有版本历史记录'
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/application/AppDetailPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
:name="t('base.language')"
:data="language.toUpperCase()"
:unit="
item && item.locale.length > 0
item && item.locale.length > 1
? `+ ${item.locale.length - 1} more`
: convertLanguageCodeToName(language)
"
Expand Down
2 changes: 1 addition & 1 deletion pkg/apiserver/service/v1/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (h *Handler) menuTypes(req *restful.Request, resp *restful.Response) {
}

menuTypeData.MenuTypes = append(menuTypeData.MenuTypes, models.MenuType{Label: "recommendation", Key: "Recommend", Icon: "sym_r_featured_play_list"})
menuTypeData.I18n.ZhCN.Recommendation = "推荐"
menuTypeData.I18n.ZhCN.Recommendation = "推荐算法"
menuTypeData.I18n.EnUS.Recommendation = "Recommendation"

resp.WriteEntity(models.NewResponse(api.OK, api.Success, menuTypeData))
Expand Down

0 comments on commit c771979

Please sign in to comment.