config_event 事件添加多语言切换时间间隔配置 #1

Closed
opened 2024-11-07 15:56:46 +08:00 by yunhorn · 1 comment
Owner

image

前端将根据该字段实现特定时间间隔切换多语言文案的效果.

https://smartoilets.net/tab/home/twsc/4A/male 这个页面已经实现了多语言切换的效果, 确认一下这个时间间隔的值是如何获取的? 如果是前端本地写死的值,那么应该将该值作为默认值,然后添加一个 从 config_event 事件获取配置值的逻辑.

另外,以前 config_event 有一个 refreshI18NConfig 的字段, 这个字段也迁移到了 i18n 这个 key下,统一管理, 需要将之前的逻辑迭代一下, 改为使用 i18n.refreshI18NConfig

![image](/attachments/54978f1f-4b84-4358-9267-3a546b14af5e) 前端将根据该字段实现特定时间间隔切换多语言文案的效果. https://smartoilets.net/tab/home/twsc/4A/male 这个页面已经实现了多语言切换的效果, 确认一下这个时间间隔的值是如何获取的? 如果是前端本地写死的值,那么应该将该值作为默认值,然后添加一个 从 config_event 事件获取配置值的逻辑. 另外,以前 config_event 有一个 refreshI18NConfig 的字段, 这个字段也迁移到了 i18n 这个 key下,统一管理, 需要将之前的逻辑迭代一下, 改为使用 i18n.refreshI18NConfig
jeff was assigned by yunhorn 2024-11-07 15:56:46 +08:00
Owner

已修改

已修改
jeff added the
done-waiting-confirmed
label 2024-11-24 01:00:57 +08:00
jeff closed this issue 2025-05-05 22:07:26 +08:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#1
No description provided.