layui/examples
morning-star d96ad79960
feat(i18n): 国际化支持 (#2698)
* wip(i18n): laydate 国际化

* wip(i18n): colorpicker 国际化

* wip(i18n): laypage 国际化

* fix

* update code

* wip(i18n): 修改国际化消息对象结构

* wip(i18n): update

* wip(i18n): code 国际化

* wip(i18n): dropdown 国际化

* wip(i18n): flow 国际化

* wip(i18n): form 国际化

* wip(i18n): layer 国际化

* wip(i18n): table 国际化

* wip(i18n): transfer 国际化

* wip(i18n): tree 国际化

* wip(i18n): treeTable 控制台提示统一为英文

* wip(i18n): upload 国际化

* wip(i18n): util 国际化

* wip(i18n): update code

* wip(i18n): update code

* wip(i18n): fix

* wip(i18n): 优化 $t 代码细节

* wip(i18n): 修复 laydate lang

* wip(i18n): 改进 upload i18n key

* wip(i18n): 修复打包后 laydate 和 layer 异常

* wip(i18n): 移除国际化消息中的 `lay` 命名空间

* refactor(i18n): 改进国际化支持

* wip(i18n): 修复 table text.none 切换 locale 无效问题

* style(laydate): 优化逗号格式

* chore(laydate): 优化部分提示

* chore(i18n): 优化演示中部分国际化消息

* refactor: 剔除 laydate 单独版的判断逻辑

为接下来全面支持国际化做铺垫

* wip(i18n): 为 laydate 重新添加完整国际化的支持

* i18n(laydate): 优化 lang() 方法中的逻辑

* chore(util): 删除未使用的代码

* chore(i18n): 优化注释

* docs(i18n): 新增国际化文档(beta)

note: 由于时间关系,本次提交仅为初版,该文档尚未完成

* wip(docs): 完善 i18n 文档

* fix(i18n): 修复 laypage 变量定义前使用

* wip(i18n): 转义翻译结果

* fix(i18n): 修复 table 排序 key 无效

* wip(i18n): 优化获取对象中指定路径值的性能

* wip(i18n): 删除 $t 可变长参数重载

* chore(i18n): 删除不必要的注释

* refactor(i18n): laydate 国际化方案迁移至 i18n.$t (#2745)

* wip(i18n): 改进 laydate i18nMsg key

* update code

* wip(i18n): 改进 laydate 面板中的日期格式处理

* wip(i18n): 改进 util.toDateString meridiem

遵循 CLDR day periods 标准

* update code

* wip(docs): 优化 i18n 文档示例

* docs(i18n): 优化正式文档

* docs(i18n): 优化部分文案

* docs(i18n): 优化示例

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
2025-09-08 10:31:02 +08:00
..
extends feat: 新增 扩展任意外部模块的支持,及大量底层优化 2025-03-14 18:42:30 +08:00
i18n feat(i18n): 国际化支持 (#2698) 2025-09-08 10:31:02 +08:00
introduce chore: 新增 relase 工作流中的压缩包附件 2023-12-16 23:39:36 +08:00
json perf(treeTable): 改进 flatToTree (#1912) 2024-05-20 11:58:48 +08:00
pr-preview ci: 使用 pkg-pr-new 预发布 PR 并生成预览模板 (#2175) 2024-08-20 00:01:36 +08:00
all.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
base.html 剔除 examples 部分文件多余空格 2023-11-06 08:47:59 +08:00
button.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
carousel.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
code.html test: 更新示例外部资源 CDN 路径 2024-10-09 00:29:16 +08:00
collapse.html refactor(collapse): 重构折叠面板组件 (#2734) 2025-06-22 22:10:35 +08:00
colorpicker.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
dropdown.html fix: 修复 dropdown 在 head 标签引入组件库时无法弹出的问题 (#2356) 2024-11-25 18:47:55 +08:00
element.html refactor(collapse): 重构折叠面板组件 (#2734) 2025-06-22 22:10:35 +08:00
element.nav.html 更新 nav 用例 2023-10-25 09:05:17 +08:00
element.tab.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
extend.html feat: 新增 扩展任意外部模块的支持,及大量底层优化 2025-03-14 18:42:30 +08:00
flow.html 剔除 examples 部分文件多余空格 2023-11-06 08:47:59 +08:00
form.html fix(form): 修复 select 组件的字符转义问题 (#2661) 2025-05-06 15:33:31 +08:00
i18n.html feat(i18n): 国际化支持 (#2698) 2025-09-08 10:31:02 +08:00
laydate.html chore: 简单分支同步 (#1523) 2023-12-31 23:51:27 +08:00
layer.html test: 更新示例外部资源 CDN 路径 2024-10-09 00:29:16 +08:00
layout-admin.html chore: 优化 .layui-body 和 .layui-text 样式细节 (#2395) 2024-12-20 16:09:42 +08:00
layout-grid.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
laypage.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
laytpl.html feat: 重构 laytpl,增强对更多复杂模板结构的解析能力 (#2577) 2025-03-27 23:55:04 +08:00
menu.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
rate.html refactor: 重构 rate 组件,由 component 模块构建 (#2626) 2025-04-14 00:21:29 +08:00
responsive.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
slider.html feat(silder): 新增提示文本始终显示控制属性 (#1520) 2024-01-03 17:25:48 +08:00
table-static.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
table-test-border.html test: 更新示例外部资源 CDN 路径 2024-10-09 00:29:16 +08:00
table-test.html refactor(table): 重构 table.setRowChecked() 方法 (#2146) 2024-08-16 21:53:20 +08:00
table.html test: 更新示例外部资源 CDN 路径 2024-10-09 00:29:16 +08:00
tabs.html fix(tabs): 优化 close 方法在标签顺序打乱时传入 lay-id 的支持 (#2690) 2025-06-17 15:09:36 +08:00
text.md.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
transfer.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
tree.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
treeTable-async.html feat(treeTable): expandNode 新增 done 回调 (#2721) 2025-06-17 15:10:16 +08:00
treeTable-crud.html test: 更新示例外部资源 CDN 路径 2024-10-09 00:29:16 +08:00
treeTable-test-reloadData.html fix(treeTable): 修复重载数据时,指定参数 scrollPos: 'fixed' 无效的问题 (#1892) 2024-05-17 19:13:01 +08:00
treeTable.html fix: 修复 nav 在 IE 中的兼容性问题 (#2415) 2024-12-20 16:28:15 +08:00
upload.html style: 清理代码多余空白符 (#2606) 2025-03-31 00:08:14 +08:00
util.html feat(util): `util.toDateString` 规范化字符串日期 (#2543) 2025-03-10 14:32:39 +08:00