Skip to content

Commit

Permalink
[i18nIgnore] Fix highlighted code errors (#5817)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
2 people authored and ematipico committed Jan 26, 2024
1 parent 1fc5acc commit 7cb1a76
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 24 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/en/core-concepts/astro-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ const { title } = Astro.props;

Slots can be transferred to other components. For example, when creating nested layouts:

```astro title="src/layouts/BaseLayout.astro" {10,13}
```astro title="src/layouts/BaseLayout.astro" {9,12}
---
---
<html lang="en">
Expand All @@ -307,7 +307,7 @@ Slots can be transferred to other components. For example, when creating nested
</html>
```

```astro {7, 8}
```astro {6,7}
// src/layouts/HomeLayout.astro
---
import BaseLayout from './BaseLayout.astro';
Expand Down
9 changes: 3 additions & 6 deletions src/content/docs/es/core-concepts/astro-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,9 @@ const { titulo } = Astro.props;

Los slots pueden ser transferidos a otros componentes. Por ejemplo, cuando se crean plantillas anidadas:

```astro title="src/layouts/BaseLayout.astro" {10,13}
// src/layouts/BaseLayout.astro
```astro title="src/layouts/BaseLayout.astro" {9,12}
---
---
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -305,12 +303,11 @@ Los slots pueden ser transferidos a otros componentes. Por ejemplo, cuando se cr
</html>
```

```astro {7, 8}
```astro {6,7}
// src/layouts/HomeLayout.astro
---
import BaseLayout from './BaseLayout.astro';
---
<BaseLayout>
<slot name="head" slot="head"/>
<slot />
Expand Down Expand Up @@ -349,4 +346,4 @@ Un [elemento `<slot/>`](/es/core-concepts/astro-components/#slots) dentro de un

## Próximos Pasos

📚 Aprende sobre el uso de [componentes de framework de UI](/es/core-concepts/framework-components/) en tu proyecto Astro.
📚 Aprende sobre el uso de [componentes de framework de UI](/es/core-concepts/framework-components/) en tu proyecto Astro.
6 changes: 2 additions & 4 deletions src/content/docs/fr/core-concepts/astro-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,9 @@ const { title } = Astro.props

Les emplacements peuvent être transférés à d'autres composants. Par exemple, lorsque l'on crée des mises en page imbriquées :

```astro title="src/layouts/BaseLayout.astro" {10,13}
```astro title="src/layouts/BaseLayout.astro" {9,12}
---
---
<html lang="fr">
<head>
<meta charset="utf-8" />
Expand All @@ -308,12 +307,11 @@ Les emplacements peuvent être transférés à d'autres composants. Par exemple,
</html>
```

```astro {7, 8}
```astro {6,7}
// src/layouts/HomeLayout.astro
---
import BaseLayout from "./BaseLayout.astro";
---
<BaseLayout>
<slot name="head" slot="head"/>
<slot />
Expand Down
6 changes: 2 additions & 4 deletions src/content/docs/ko/core-concepts/astro-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,9 @@ const { title } = Astro.props

슬롯은 다른 컴포넌트로 전송될 수 있습니다. 예를 들어 중첩된 레이아웃을 생성하는 경우:

```astro title="src/layouts/BaseLayout.astro" {10,13}
```astro title="src/layouts/BaseLayout.astro" {9,12}
---
---
<html lang="ko">
<head>
<meta charset="utf-8" />
Expand All @@ -302,12 +301,11 @@ const { title } = Astro.props
</html>
```

```astro {7, 8}
```astro {6,7}
// src/layouts/HomeLayout.astro
---
import BaseLayout from "./BaseLayout.astro";
---
<BaseLayout>
<slot name="head" slot="head"/>
<slot />
Expand Down
6 changes: 2 additions & 4 deletions src/content/docs/ru/core-concepts/astro-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,9 @@ const { title } = Astro.props

Слоты могут быть перенесены на другие компоненты. Например, при создании вложенных макетов:

```astro title="src/layouts/BaseLayout.astro" {11,14}
```astro title="src/layouts/BaseLayout.astro" {9,12}
---
---
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -308,12 +307,11 @@ const { title } = Astro.props
</html>
```

```astro {7, 8}
```astro {6,7}
// src/layouts/HomeLayout.astro
---
import BaseLayout from "./BaseLayout.astro";
---
<BaseLayout>
<slot name="head" slot="head"/>
<slot />
Expand Down
6 changes: 2 additions & 4 deletions src/content/docs/zh-cn/core-concepts/astro-components.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,9 @@ const { title } = Astro.props

插槽可以传递给其他组件。例如,在创建嵌套布局时:

```astro title="src/layouts/BaseLayout.astro" {10,13}
```astro title="src/layouts/BaseLayout.astro" {9,12}
---
---
<html lang="en">
<head>
<meta charset="utf-8" />
Expand All @@ -300,12 +299,11 @@ const { title } = Astro.props
</html>
```

```astro {7, 8}
```astro {6,7}
// src/layouts/HomeLayout.astro
---
import BaseLayout from "./BaseLayout.astro";
---
<BaseLayout>
<slot name="head" slot="head"/>
<slot />
Expand Down

0 comments on commit 7cb1a76

Please sign in to comment.