告警多语言文案支持从 I18N 中获取对应字段值 #53

Open
opened 2025-01-03 15:44:23 +08:00 by liangyuanpeng · 1 comment

告警文案希望可以动态从 I18N 中获取对应值, 占位符为 {{ i18n.simplepage.WIP01 }}, 预期前端会从多语言中的 simplepage.WIP01 获取到对应的多语言文案, 具体取哪一个语言取决于当前页面正在显示哪一个语言.

{
    "msg": "success",
    "timestamp": 1735889941599,
    "data": {
        "simplepage": {
            "WIP01": {
                  "en": "Work In Progress",
                "zh": "暫未完成",
                "tw": "暫未完成"
                 }
           }
     }
}
告警文案希望可以动态从 I18N 中获取对应值, 占位符为 {{ i18n.simplepage.WIP01 }}, 预期前端会从多语言中的 simplepage.WIP01 获取到对应的多语言文案, 具体取哪一个语言取决于当前页面正在显示哪一个语言. ```yaml { "msg": "success", "timestamp": 1735889941599, "data": { "simplepage": { "WIP01": { "en": "Work In Progress", "zh": "暫未完成", "tw": "暫未完成" } } } } ```
liangyuanpeng added the
kind/feature
label 2025-01-03 15:44:23 +08:00
Author
Owner

优先级低,暂时先记录着

优先级低,暂时先记录着
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: smartoilets-front/projects#53
No description provided.