Skip to content

Commit 361d01b

Browse files
committed
[SeaORM] 中文
1 parent 1facb9d commit 361d01b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+267
-263
lines changed

SeaORM/docusaurus.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const versions = require('./versions.json');
22

3+
const locale = process.env.DOCUSAURUS_CURRENT_LOCALE ?? 'en';
4+
35
function getNextMinorVersionName() {
46
const lastVersion = versions[0];
57
let majorVersion = parseInt(lastVersion.split('.')[0]);
@@ -168,7 +170,9 @@ module.exports = {
168170
},
169171
announcementBar: {
170172
id: 'sea-orm-bar',
171-
content: '🐚 <a href="https://www.sea-ql.org/sea-orm-pro/">SeaORM Pro</a> is an admin panel for SeaORM! It\'s free to use, and allows you to create professional admin panels easily.',
173+
content: locale === 'zh-CN'
174+
? '🐚 <a href="https://www.sea-ql.org/sea-orm-pro/">SeaORM Pro</a> 是 SeaORM 的管理面板!免费使用,轻松创建专业的后台管理界面。'
175+
: '🐚 <a href="https://www.sea-ql.org/sea-orm-pro/">SeaORM Pro</a> is an admin panel for SeaORM! It\'s free to use, and allows you to create professional admin panels easily.',
172176
isCloseable: false,
173177
},
174178
},

SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"description": "The label for category Internal Design in sidebar tutorialSidebar"
5757
},
5858
"sidebar.tutorialSidebar.category.What's Next": {
59-
"message": "下一步",
59+
"message": "未来",
6060
"description": "The label for category What's Next in sidebar tutorialSidebar"
6161
}
6262
}

SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current/01-index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@
7676

7777
6.4 [复杂关联](06-relation/04-complex-relations.md)
7878

79-
6.5 [Model Loader](06-relation/06-model-loader.md)
79+
6.5 [模型加载器](06-relation/06-model-loader.md)
8080

81-
6.6 [Entity Loader](06-relation/07-entity-loader.md)
81+
6.6 [实体批量加载器](06-relation/07-entity-loader.md)
8282

83-
6.7 [烘焙店 Schema 示例](06-relation/08-bakery-schema.md)
83+
6.7 [烘焙店架构示例](06-relation/08-bakery-schema.md)
8484

8585
6.8 [嵌套查询](06-relation/09-nested-selects.md)
8686

@@ -104,7 +104,7 @@
104104

105105
8.3 [聚合函数](08-advanced-query/03-aggregate-function.md)
106106

107-
8.4 [自定义 Join 条件](08-advanced-query/04-custom-join-condition.md)
107+
8.4 [自定义连接条件](08-advanced-query/04-custom-join-condition.md)
108108

109109
8.5 [子查询](08-advanced-query/05-subquery.md)
110110

@@ -116,7 +116,7 @@
116116

117117
8.9 [错误处理](08-advanced-query/09-error-handling.md)
118118

119-
8.10 [高级 Join](08-advanced-query/10-advanced-joins.md)
119+
8.10 [高级连接](08-advanced-query/10-advanced-joins.md)
120120

121121
9. 模式语句
122122

@@ -130,13 +130,13 @@
130130

131131
10.1 [🧭 Seaography](10-graph-ql/01-seaography-intro.md)
132132

133-
10.2 [快速开始](10-graph-ql/02-getting-started.md)
133+
10.2 [快速入门](10-graph-ql/02-getting-started.md)
134134

135135
11. 管理面板
136136

137137
11.1 [🖥️ SeaORM Pro](11-sea-orm-pro/01-sea-orm-pro-intro.md)
138138

139-
11.2 [快速开始](11-sea-orm-pro/02-getting-started.md)
139+
11.2 [快速入门](11-sea-orm-pro/02-getting-started.md)
140140

141141
11.3 [基于角色的访问控制](11-sea-orm-pro/03-role-based-access-control.md)
142142

@@ -148,7 +148,7 @@
148148

149149
13. 内部设计
150150

151-
13.1 [Trait 与类型](13-internal-design/01-trait-and-type.md)
151+
13.1 [特征与类型](13-internal-design/01-trait-and-type.md)
152152

153153
13.2 [派生宏](13-internal-design/02-derive-macro.md)
154154

@@ -158,6 +158,6 @@
158158

159159
13.5 [展开的 Entity 格式](13-internal-design/05-expanded-entity-format.md)
160160

161-
14. 下一步
161+
14. 未来
162162

163-
14.1 [下一步](14-whats-next/01-whats-next.md)
163+
14.1 [未来](14-whats-next/01-whats-next.md)

SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current/01-introduction/01-sea-orm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ SeaORM 致力于帮助你享受以上优势,同时避免 Rust 编程中的常
1818

1919
每个表对应 SeaORM 中的一个 [`Entity`](04-generate-entity/02-entity-format.md#entity),用于对相关表执行 `CRUD`(创建、读取、更新、删除)操作。
2020

21-
`Entity` trait 提供了一组 API,让你在运行时检查其属性:[`Column`](04-generate-entity/02-entity-format.md#column)[`Relation`](04-generate-entity/02-entity-format.md#relation)[`PrimaryKey`](04-generate-entity/02-entity-format.md#primary-key)
21+
`Entity` 特征提供了一组 API,让你在运行时检查其属性:[`Column`](04-generate-entity/02-entity-format.md#column)[`Relation`](04-generate-entity/02-entity-format.md#relation)[`PrimaryKey`](04-generate-entity/02-entity-format.md#primary-key)
2222

2323
每个表有多个列,在 SeaORM 中称为字段(field)。
2424

SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current/01-introduction/02-whats-new.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,37 @@ SeaORM 2.0 是项目历史上最重要的版本,包含了破坏性变更、新
44

55
SeaORM 2.0 概览:
66

7-
+ [SeaORM 2.0 全面介绍 (英文)](https://www.sea-ql.org/blog/2025-12-05-sea-orm-2.0/)
7+
+ [SeaORM 2.0 全面介绍](https://www.sea-ql.org/blog/2025-12-05-sea-orm-2.0/)
88

99
从 SeaORM 1.0 迁移到 2.0:
1010

11-
+ [SeaORM 2.0 迁移指南 (英文)](https://www.sea-ql.org/blog/2026-01-12-sea-orm-2.0/)
11+
+ [SeaORM 2.0 迁移指南](https://www.sea-ql.org/blog/2026-01-12-sea-orm-2.0/)
1212

1313
掌握 SeaORM 2.0 新功能:
1414

15-
+ [SeaORM 2.0:新 Entity 格式 (英文)](https://www.sea-ql.org/blog/2025-10-20-sea-orm-2.0/)
16-
+ [SeaORM 2.0:Entity 优先工作流程 (英文)](https://www.sea-ql.org/blog/2025-10-30-sea-orm-2.0/)
17-
+ [SeaORM 2.0:嵌套 ActiveModel (英文)](https://www.sea-ql.org/blog/2025-11-25-sea-orm-2.0/)
15+
+ [SeaORM 2.0:新 Entity 格式](https://www.sea-ql.org/blog/2025-10-20-sea-orm-2.0/)
16+
+ [SeaORM 2.0:Entity 优先工作流程](https://www.sea-ql.org/blog/2025-10-30-sea-orm-2.0/)
17+
+ [SeaORM 2.0:嵌套 ActiveModel](https://www.sea-ql.org/blog/2025-11-25-sea-orm-2.0/)
1818

1919
深入细节:
2020

21-
+ [SeaORM 2.0:强类型 Column (英文)](https://www.sea-ql.org/blog/2025-11-11-sea-orm-2.0/)
22-
+ [我们如何让 SeaORM 支持同步 (英文)](https://www.sea-ql.org/blog/2025-12-12-sea-orm-2.0/)
23-
+ [SeaORM 2.0 先睹为快 (英文)](https://www.sea-ql.org/blog/2025-09-16-sea-orm-2.0/)
24-
+ [SeaORM 2.0:更近一步 (英文)](https://www.sea-ql.org/blog/2025-09-24-sea-orm-2.0/)
21+
+ [SeaORM 2.0:强类型 Column](https://www.sea-ql.org/blog/2025-11-11-sea-orm-2.0/)
22+
+ [我们如何让 SeaORM 支持同步](https://www.sea-ql.org/blog/2025-12-12-sea-orm-2.0/)
23+
+ [SeaORM 2.0 先睹为快](https://www.sea-ql.org/blog/2025-09-16-sea-orm-2.0/)
24+
+ [SeaORM 2.0:更近一步](https://www.sea-ql.org/blog/2025-09-24-sea-orm-2.0/)
2525

2626
新集成:
2727

28-
+ [SeaORM 现已支持 Arrow 和 Parquet (英文)](https://www.sea-ql.org/blog/2026-02-22-sea-orm-arrow/)
29-
+ [教程:用 SQLite 实现可恢复的 Pi Spigot (英文)](https://www.sea-ql.org/blog/2026-02-28-sea-orm-sync/)
30-
+ [SeaORM 2.0 支持 SQL Server (英文)](https://www.sea-ql.org/blog/2026-02-25-sea-orm-x/)
28+
+ [SeaORM 现已支持 Arrow 和 Parquet](https://www.sea-ql.org/blog/2026-02-22-sea-orm-arrow/)
29+
+ [教程:用 SQLite 实现可恢复的 Pi Spigot](https://www.sea-ql.org/blog/2026-02-28-sea-orm-sync/)
30+
+ [SeaORM 2.0 支持 SQL Server](https://www.sea-ql.org/blog/2026-02-25-sea-orm-x/)
3131

3232
Rust 全栈应用:
3333

34-
+ [Seaography 2.0:强大且可扩展的 GraphQL 框架 (英文)](https://www.sea-ql.org/blog/2025-10-08-seaography/)
35-
+ [SeaORM Pro 2.0 新特性 (英文)](https://www.sea-ql.org/blog/2025-11-21-whats-new-in-seaormpro-2.0/)
36-
+ [SeaORM 2.0 中的基于角色的访问控制 (英文)](https://www.sea-ql.org/blog/2025-09-30-sea-orm-rbac/)
34+
+ [Seaography 2.0:强大且可扩展的 GraphQL 框架](https://www.sea-ql.org/blog/2025-10-08-seaography/)
35+
+ [SeaORM Pro 2.0 新特性](https://www.sea-ql.org/blog/2025-11-21-whats-new-in-seaormpro-2.0/)
36+
+ [SeaORM 2.0 中的基于角色的访问控制](https://www.sea-ql.org/blog/2025-09-30-sea-orm-rbac/)
3737

3838
SeaQuery 变更:
3939

40-
+ [通往 SeaQuery 1.0 之路 (英文)](https://www.sea-ql.org/blog/2025-08-30-sea-query-1.0/)
40+
+ [通往 SeaQuery 1.0 之路](https://www.sea-ql.org/blog/2025-08-30-sea-query-1.0/)

SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current/02-install-and-config/01-database-and-async-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sea-orm = { version = "2.0.0-rc", features = [ <DATABASE_DRIVER>, <ASYNC_RUNTIME
2525

2626
:::tip SQL Server (MSSQL) backend
2727

28-
MSSQL 驱动的安装和配置请参阅[此处 (英文)](https://www.sea-ql.org/SeaORM-X/docs/install-and-config/database-and-async-runtime/)
28+
MSSQL 驱动的安装和配置请参阅[此处](https://www.sea-ql.org/SeaORM-X/docs/install-and-config/database-and-async-runtime/)
2929

3030
:::
3131

SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current/03-migration/01-setting-up-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ cargo install sea-orm-cli@^2.0.0-rc
3939

4040
:::tip SQL Server (MSSQL) backend
4141

42-
支持 MSSQL 的 `sea-orm-cli` 安装说明请参阅[此处 (英文)](https://www.sea-ql.org/SeaORM-X/docs/migration/setting-up-migration/)
42+
支持 MSSQL 的 `sea-orm-cli` 安装说明请参阅[此处](https://www.sea-ql.org/SeaORM-X/docs/migration/setting-up-migration/)
4343

4444
:::
4545

SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current/03-migration/03-running-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ migration::Migrator::up(&db, None).await?;
9595

9696
:::tip SQL Server (MSSQL) backend
9797

98-
在任意 MSSQL schema 上运行迁移的配置请参阅[此处 (英文)](https://www.sea-ql.org/SeaORM-X/docs/migration/running-migration/)
98+
在任意 MSSQL schema 上运行迁移的配置请参阅[此处](https://www.sea-ql.org/SeaORM-X/docs/migration/running-migration/)
9999

100100
:::
101101

SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current/04-generate-entity/01-sea-orm-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cargo install sea-orm-cli@^2.0.0-rc
88

99
:::tip SQL Server (MSSQL) 后端
1010

11-
有关支持 MSSQL 的 `sea-orm-cli` 的安装和使用方法,请参阅[此处 (英文)](https://www.sea-ql.org/SeaORM-X/docs/generate-entity/sea-orm-cli/)
11+
有关支持 MSSQL 的 `sea-orm-cli` 的安装和使用方法,请参阅[此处](https://www.sea-ql.org/SeaORM-X/docs/generate-entity/sea-orm-cli/)
1212

1313
:::
1414

@@ -56,7 +56,7 @@ sea-orm-cli generate entity -h
5656
- `--ignore-tables`:跳过为指定表生成 entity 文件(默认:`seaql_migrations`
5757
- `--compact-format`:生成[紧凑格式](04-generate-entity/02-entity-format.md)的 entity 文件(默认:true)
5858
- `--expanded-format`:生成[展开格式](13-internal-design/05-expanded-entity-format.md)的 entity 文件
59-
- `--with-serde`:自动为 entity 派生 serde 的 Serialize / Deserialize trait`none``serialize``deserialize``both`)(默认:`none`
59+
- `--with-serde`:自动为 entity 派生 serde 的 Serialize / Deserialize 特征`none``serialize``deserialize``both`)(默认:`none`
6060
- `--serde-skip-deserializing-primary-key`:为主键字段生成带有 `#[serde(skip_deserializing)]` 标记的 entity 模型
6161
- `--serde-skip-hidden-column`:为隐藏列(列名以 `_` 开头)字段生成带有 `#[serde(skip)]` 标记的 entity 模型
6262
- `--date-time-crate`:用于生成 entity 的 datetime crate(`chrono``time`)(默认:`chrono`

SeaORM/i18n/zh-CN/docusaurus-plugin-content-docs/current/04-generate-entity/03-column-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
:::tip SQL Server (MSSQL) 后端
88

9-
MSSQL 的类型映射可在[此处 (英文)](https://www.sea-ql.org/SeaORM-X/docs/generate-entity/entity-structure/)找到。
9+
MSSQL 的类型映射可在[此处](https://www.sea-ql.org/SeaORM-X/docs/generate-entity/entity-structure/)找到。
1010

1111
:::
1212

0 commit comments

Comments
 (0)