i18n - docs translations (#22297)
Created by Github action Co-authored-by: github-actions <github-actions@twenty.com>
This commit is contained in:
committed by
GitHub
parent
73b0d55350
commit
f470e271fa
+3
-3
@@ -95,9 +95,9 @@ const MyComponent = (props: OwnProps) => {
|
||||
```
|
||||
|
||||
```tsx
|
||||
/* ✅ - Dobré, Explicitně uvádí všechny prop
|
||||
* - Zvyšuje čitelnost a možnost údržby
|
||||
*/
|
||||
/* ✅ - Good, Explicitly lists all props
|
||||
* - Enhances readability and maintainability
|
||||
*/
|
||||
const MyComponent = ({ prop1, prop2, prop3 }: MyComponentProps) => {
|
||||
return <OtherComponent {...{ prop1, prop2, prop3 }} />;
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Tooltip aplikace
|
||||
icon: zpráva
|
||||
icon: message
|
||||
---
|
||||
|
||||
<Frame>
|
||||
@@ -34,7 +34,7 @@ export const MyComponent = () => {
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};},{
|
||||
};
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
||||
@@ -30,7 +30,7 @@ export const MyComponent = () => {
|
||||
/>
|
||||
);
|
||||
};
|
||||
},{
|
||||
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Ikony
|
||||
icon: ikony
|
||||
icon: icons
|
||||
---
|
||||
|
||||
<Frame>
|
||||
|
||||
+4
-4
@@ -68,10 +68,10 @@ const EmailField: React.FC<{
|
||||
```
|
||||
|
||||
```tsx
|
||||
/* ✅ - Gut, ein separater Typ (OwnProps) ist explizit für die
|
||||
* Props der Komponente definiert
|
||||
* - Diese Methode schließt das children-Prop nicht automatisch ein. Wenn
|
||||
* Sie es einbeziehen möchten, müssen Sie es in OwnProps angeben.
|
||||
/* ✅ - Good, a separate type (OwnProps) is explicitly defined for the
|
||||
* component's props
|
||||
* - This method doesn't automatically include the children prop. If
|
||||
* you want to include it, you have to specify it in OwnProps.
|
||||
*/
|
||||
type EmailFieldProps = {
|
||||
value: string;
|
||||
|
||||
@@ -19,7 +19,7 @@ export const MyComponent = () => {
|
||||
return (
|
||||
<>
|
||||
<p id="hoverText" style={{ display: "inline-block" }}>
|
||||
Kundeneinblicke
|
||||
Customer Insights
|
||||
</p>
|
||||
<AppTooltip
|
||||
className
|
||||
@@ -34,7 +34,7 @@ export const MyComponent = () => {
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};},{
|
||||
};
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
||||
@@ -19,7 +19,7 @@ export const MyComponent = () => {
|
||||
return (
|
||||
<Chip
|
||||
size="large"
|
||||
label="Anklickbarer Chip"
|
||||
label="Clickable Chip"
|
||||
clickable={true}
|
||||
variant="highlighted"
|
||||
accent="text-primary"
|
||||
@@ -30,7 +30,7 @@ export const MyComponent = () => {
|
||||
/>
|
||||
);
|
||||
};
|
||||
%
|
||||
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
||||
@@ -130,7 +130,7 @@ Die Daten entsprechen nicht dem erwarteten Format für diesen Feldtyp.
|
||||
**Lösung:** Verwenden Sie das Format `https://domain.com` (empfohlen)
|
||||
|
||||
```
|
||||
⚠️ acme.com (valid, but not not recommended)
|
||||
⚠️ acme.com (valid, but not recommended)
|
||||
⚠️ www.acme.com (valid, but not recommended)
|
||||
✅ https://acme.com (recommended)
|
||||
```
|
||||
|
||||
+5
-5
@@ -68,10 +68,10 @@ const EmailField: React.FC<{
|
||||
```
|
||||
|
||||
```tsx
|
||||
/* ✅ - Bon, un type séparé (OwnProps) est explicitement défini pour les
|
||||
* props du composant
|
||||
* - Cette méthode ne comprend pas automatiquement la prop children. Si
|
||||
* vous souhaitez l'inclure, vous devez la spécifier dans OwnProps.
|
||||
/* ✅ - Good, a separate type (OwnProps) is explicitly defined for the
|
||||
* component's props
|
||||
* - This method doesn't automatically include the children prop. If
|
||||
* you want to include it, you have to specify it in OwnProps.
|
||||
*/
|
||||
type EmailFieldProps = {
|
||||
value: string;
|
||||
@@ -79,7 +79,7 @@ type EmailFieldProps = {
|
||||
|
||||
const EmailField = ({ value }: EmailFieldProps) => (
|
||||
<TextInput value={value} disabled fullWidth />
|
||||
);},{
|
||||
);
|
||||
```
|
||||
|
||||
#### Pas de propagation de props à variable unique dans les éléments JSX
|
||||
|
||||
@@ -30,7 +30,7 @@ export const MyComponent = () => {
|
||||
/>
|
||||
);
|
||||
};
|
||||
},{
|
||||
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Icônes
|
||||
icon: icônes
|
||||
icon: icons
|
||||
---
|
||||
|
||||
<Frame>
|
||||
|
||||
@@ -30,7 +30,7 @@ export const MyComponent = () => {
|
||||
/>
|
||||
);
|
||||
};
|
||||
},{
|
||||
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Icone
|
||||
icon: icone
|
||||
icon: icons
|
||||
---
|
||||
|
||||
<Frame>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -18,7 +18,7 @@ server
|
||||
└───integrations
|
||||
└───metadata
|
||||
└───workspace
|
||||
└───utils},{
|
||||
└───utils
|
||||
```
|
||||
|
||||
## Habilidade
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Melhores Práticas
|
||||
icon: estrela
|
||||
icon: star
|
||||
---
|
||||
|
||||
Este documento descreve as melhores práticas que você deve seguir ao trabalhar no frontend.
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
@@ -89,7 +89,7 @@ export const MyComponent = () => {
|
||||
return (
|
||||
<Chip
|
||||
size="large"
|
||||
label="Chip desativado que exibe uma tooltip quando ultrapassa o limite."
|
||||
label="Disabled chip that triggers a tooltip when overflowing."
|
||||
clickable={false}
|
||||
variant="regular"
|
||||
accent="text-primary"
|
||||
|
||||
@@ -39,7 +39,7 @@ export const MyComponent = () => {
|
||||
/>
|
||||
);
|
||||
};
|
||||
},{
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -18,14 +18,14 @@ import { Chip } from 'twenty-ui/components';
|
||||
export const MyComponent = () => {
|
||||
return (
|
||||
<Chip
|
||||
size=\"large\"
|
||||
label=\"Clickable Chip\"
|
||||
size="large"
|
||||
label="Clickable Chip"
|
||||
clickable={true}
|
||||
variant=\"highlighted\"
|
||||
accent=\"text-primary\"
|
||||
variant="highlighted"
|
||||
accent="text-primary"
|
||||
leftComponent
|
||||
rightComponent
|
||||
maxWidth=\"200px\"
|
||||
maxWidth="200px"
|
||||
className
|
||||
/>
|
||||
);
|
||||
@@ -63,14 +63,14 @@ import { Chip } from 'twenty-ui/components';
|
||||
export const MyComponent = () => {
|
||||
return (
|
||||
<Chip
|
||||
size=\"large\"
|
||||
label=\"Transparent Disabled Chip\"
|
||||
size="large"
|
||||
label="Transparent Disabled Chip"
|
||||
clickable={false}
|
||||
variant=\"rounded\"
|
||||
accent=\"text-secondary\"
|
||||
variant="rounded"
|
||||
accent="text-secondary"
|
||||
leftComponent
|
||||
rightComponent
|
||||
maxWidth=\"200px\"
|
||||
maxWidth="200px"
|
||||
className
|
||||
/>
|
||||
);
|
||||
@@ -83,19 +83,19 @@ export const MyComponent = () => {
|
||||
### Araç İpucuyla Devre Dışı Çip
|
||||
|
||||
```jsx
|
||||
import { Chip } from \"twenty-ui/components\";
|
||||
import { Chip } from "twenty-ui/components";
|
||||
|
||||
export const MyComponent = () => {
|
||||
return (
|
||||
<Chip
|
||||
size=\"large\"
|
||||
label=\"Disabled chip that triggers a tooltip when overflowing.\"
|
||||
size="large"
|
||||
label="Disabled chip that triggers a tooltip when overflowing."
|
||||
clickable={false}
|
||||
variant=\"regular\"
|
||||
accent=\"text-primary\"
|
||||
variant="regular"
|
||||
accent="text-primary"
|
||||
leftComponent
|
||||
rightComponent
|
||||
maxWidth=\"200px\"
|
||||
maxWidth="200px"
|
||||
className
|
||||
/>
|
||||
);
|
||||
@@ -119,11 +119,12 @@ export const MyComponent = () => {
|
||||
return (
|
||||
<Router>
|
||||
<Chip
|
||||
linkToEntity=\"/entity-link\"
|
||||
entityId=\"entityTest\"
|
||||
name=\"Entity name\"
|
||||
pictureUrl=\"\"\n avatarType=\"rounded\"
|
||||
variant=\"regular\"
|
||||
linkToEntity="/entity-link"
|
||||
entityId="entityTest"
|
||||
name="Entity name"
|
||||
pictureUrl=""
|
||||
avatarType="rounded"
|
||||
variant="regular"
|
||||
LeftIcon={IconTwentyStar}
|
||||
/>
|
||||
</Router>
|
||||
|
||||
@@ -18,7 +18,7 @@ export const MyComponent = () => {
|
||||
toggleSize = "medium"
|
||||
/>
|
||||
);
|
||||
};},{
|
||||
};
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
||||
+12
-12
@@ -7,18 +7,18 @@ info: 详细了解我们的服务器文件夹架构
|
||||
|
||||
```
|
||||
server
|
||||
└───能力
|
||||
└───常量
|
||||
└───核心
|
||||
└───数据库
|
||||
└───装饰器
|
||||
└───过滤器
|
||||
└───守卫
|
||||
└───健康
|
||||
└───集成
|
||||
└───元数据
|
||||
└───工作空间
|
||||
└───工具},{
|
||||
└───ability
|
||||
└───constants
|
||||
└───core
|
||||
└───database
|
||||
└───decorators
|
||||
└───filters
|
||||
└───guards
|
||||
└───health
|
||||
└───integrations
|
||||
└───metadata
|
||||
└───workspace
|
||||
└───utils
|
||||
```
|
||||
|
||||
## 能力
|
||||
|
||||
+4
-4
@@ -68,10 +68,10 @@ const EmailField: React.FC<{
|
||||
```
|
||||
|
||||
```tsx
|
||||
/* ✅ - 良好,明确为组件的属性定义了单独的类型
|
||||
* (OwnProps)
|
||||
* - 此方法不会自动包含 children 属性。如果
|
||||
* 你想包含它,必须在 OwnProps 中指定。
|
||||
/* ✅ - Good, a separate type (OwnProps) is explicitly defined for the
|
||||
* component's props
|
||||
* - This method doesn't automatically include the children prop. If
|
||||
* you want to include it, you have to specify it in OwnProps.
|
||||
*/
|
||||
type EmailFieldProps = {
|
||||
value: string;
|
||||
|
||||
@@ -25,7 +25,7 @@ icon: wrench
|
||||
```sh
|
||||
# Update the PG_DATABASE_PASSWORD in .env
|
||||
docker compose down --volumes
|
||||
docker compose up -d},{
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
#### 发现 CR 换行符 [Windows]
|
||||
|
||||
@@ -19,7 +19,7 @@ export const MyComponent = () => {
|
||||
return (
|
||||
<>
|
||||
<p id="hoverText" style={{ display: "inline-block" }}>
|
||||
客户洞察
|
||||
Customer Insights
|
||||
</p>
|
||||
<AppTooltip
|
||||
className
|
||||
@@ -34,7 +34,7 @@ export const MyComponent = () => {
|
||||
/>
|
||||
</>
|
||||
);
|
||||
};},{
|
||||
};
|
||||
```
|
||||
|
||||
</Tab>
|
||||
|
||||
+4
-4
@@ -44,12 +44,12 @@ description: 使用工作流操作自动发送个性化电子邮件。
|
||||
```text
|
||||
Hi {{trigger.object.firstName}},
|
||||
|
||||
感谢与我们建立联系!
|
||||
Thank you for connecting with us!
|
||||
|
||||
贵公司 {{trigger.object.company.name}} 现已加入我们的系统。
|
||||
Your company, {{trigger.object.company.name}}, is now in our system.
|
||||
|
||||
此致,
|
||||
团队
|
||||
Best regards,
|
||||
The Team
|
||||
```
|
||||
|
||||
### 触发器中的可用变量
|
||||
|
||||
Reference in New Issue
Block a user