页面多语言文案获取 #3
Labels
No Label
area/smartpanel
bug
done-waiting-confirmed
kind/feature
page/admin
page/simplepage
page/tab-admin
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: smartoilets-front/projects#3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
从多语言文案接口获取文案内容
https://smartoilets.net/openapi/api/configI18N/info/get?retainAlertTextReplaceCopy=true&siteName=twsc&mode=keyName&type=simplepage(项目name, 例如 simplepage)
可以看到图中黄色大方块的内容需要多语言显示
确认一下动态化命名规范要如何填写,例如
还需要考虑请求需要添加 Bearer token 认证
@liangyuanpeng @yunhorn
已經處理了, 可以驗收一下
是否支持接口 Bearer token 认证 @ginfone 相关命名规范信息都可以更新在这里
命名使用 STS_I18N_ 为前缀?
附近厕所也需要显示多语言名称, 当前似乎没有去获取对应的厕所多语言数据
因为是通用组件,考虑到每次组件使用都需要命名会太繁琐,因此此组件设计为无需组件命名,在需要使用多语言文案的地方,直接使用 {{i18n_key}} 即可。
目前没有添加 bearer token 认证
另外, http API 相关请求都应该有重试机制, 例如重试失败10次
附近厕位, 当前厕位 的多语言文案已增加
厕所名多语言显示需要等待 https://gitea.yunhorn.com/smartoilets-front/projects/issues/8 后验证,目前重叠不太好确认