Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): Перевод nuxt-picture #165

Merged
merged 1 commit into from
Jun 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/3.api/1.components/10.nuxt-picture.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
---
title: "<NuxtPicture>"
description: "Nuxt provides a <NuxtPicture> component to handle automatic image optimization."
description: "Nuxt предоставляет компонент <NuxtPicture> для автоматической оптимизации изображений."
links:
- label: Исходники
icon: i-simple-icons-github
to: https://github.com/nuxt/image/blob/main/src/runtime/components/nuxt-picture.ts
size: xs
---

`<NuxtPicture>` is a drop-in replacement for the native `<picture>` tag.
`<NuxtPicture>` - это прямая замена нативного тега `<picture>`.

Usage of `<NuxtPicture>` is almost identical to [`<NuxtImg>`](/docs/api/components/nuxt-img) but it also allows serving modern formats like `webp` when possible.
Использование `<NuxtPicture>` практически идентично [`<NuxtImg>`](/docs/api/components/nuxt-img), но также, когда это возможно, позволяет использовать современные форматы, такие как `webp`.

Learn more about the [`<picture>` tag on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture).
Узнайте больше о теге [`<picture>` в MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture).

## Настройка

In order to use `<NuxtPicture>` you should install and enable the Nuxt Image module:
Для того чтобы использовать `<NuxtPicture>`, вам необходимо установить и включить модуль Nuxt Image:

```bash [Terminal]
npx nuxi@latest module add image
```

::read-more{to="https://image.nuxt.com/usage/nuxt-picture" target="_blank"}
Read more about the `<NuxtPicture>` component.
Узнать больше о компоненте `<NuxtPicture>`.
::
Loading