i18n - docs translations (#18014)

Created by Github action

Co-authored-by: github-actions <github-actions@twenty.com>
This commit is contained in:
github-actions[bot]
2026-02-17 19:33:21 +01:00
committed by GitHub
parent d7f025157b
commit 3d362e6e01
9 changed files with 82 additions and 82 deletions
@@ -45,19 +45,19 @@ yarn twenty app:dev
从这里您可以:
```bash filename="Terminal"
# 向你的应用添加一个新实体(引导式)
# Add a new entity to your application (guided)
yarn twenty entity:add
# 监听你的应用函数日志
# Watch your application's function logs
yarn twenty function:logs
# 按名称执行一个函数
# Execute a function by name
yarn twenty function:execute -n my-function -p '{"name": "test"}'
# 从当前工作区卸载该应用
# Uninstall the application from the current workspace
yarn twenty app:uninstall
# 显示命令帮助
# Display commands' help
yarn twenty help
```
@@ -139,7 +139,7 @@ export default defineObject({
后续命令将添加更多文件和文件夹:
* `yarn twenty app:dev` 会在 `node_modules/twenty-sdk/generated` 中自动生成类型化 Twenty 客户端。
* `yarn twenty app:dev` will auto-generate a typed API client in `node_modules/twenty-sdk/generated` (typed Twenty client + workspace types).
* `yarn twenty entity:add` 会在 `src/` 下为你的自定义对象、函数、前端组件或角色添加实体定义文件。
## 身份验证
@@ -659,7 +659,7 @@ export default defineFrontComponent({
### 生成的类型化客户端
类型化客户端由 `yarn twenty app:dev` 自动生成,并存储在 `node_modules/twenty-sdk/generated` 中。 在你的函数中使用它:
The typed client is auto-generated by `yarn twenty app:dev` and stored in `node_modules/twenty-sdk/generated` based on your workspace schema. 在你的函数中使用它:
```typescript
import Twenty from '~/generated';
@@ -668,7 +668,7 @@ const client = new Twenty();
const { me } = await client.query({ me: { id: true, displayName: true } });
```
客户端会在运行 `app:dev` 时自动重新生成。
The client is re-generated automatically by `yarn twenty app:dev` whenever your objects or fields change.
#### 逻辑函数中的运行时凭据
@@ -705,13 +705,13 @@ yarn add -D twenty-sdk
}
```
现在你可以通过 `yarn twenty <command>` 运行所有命令,例如 `yarn twenty app:dev``yarn twenty help` 等。
Now you can run all commands via `yarn twenty <command>`, e.g. `yarn twenty app:dev`, `yarn twenty help`, etc.
## 故障排除
* 身份验证错误:运行 `yarn twenty auth:login`,并确保你的 API 密钥具有所需权限。
* 无法连接到服务器:请验证 API URL,并确保 Twenty 服务器可达。
* 类型或客户端缺失/过期:重启 `yarn twenty app:dev`。
* Types or client missing/outdated: restart `yarn twenty app:dev` — it auto-generates the typed client.
* 开发模式未同步:确保 `yarn twenty app:dev` 正在运行,并且你的环境不会忽略变更。
Discord 帮助频道:https://discord.com/channels/1130383047699738754/1130386664812982322