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

docs: sync translation for the return value of useSWR #548

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pages/index.es-ES.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function Profile() {
En este ejemplo, el hook `useSWR` acepta una `key` que es un cadena y una función `fetcher`. `key` es un indentificador único de los datos (normalmente la URL de la API)
y pasará al `fetcher`. El `fetcher` puede ser cualquier función asíncrona que devuelve datos, puedes utilizar el fetch nativo o herramientas como Axios.

El hook devuelve 2 valores: `data` y `error`, basados en el estado de la solicitud.
The hook returns 3 values: `data`, `isLoading` and `error`, based on the status of the request.

## Características [#features]

Expand Down
2 changes: 1 addition & 1 deletion pages/index.fr-FR.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Profile() {
Dans cet exemple, le hook `useSWR` accepte un string `key` et une fonction `fetcher`. `key` est un identifiant unique de la donnée (normalement l'URL de l'API)
et sera passé à `fetcher`. `fetcher` peut être n'importe quelle fonction asynchrone qui renvoie la donnée, vous pouvez utiliser le fetch natif ou des outils comme Axios.

Le hook renvoie 2 valeurs: `data` et `error`, en fonction du statut de la requête.
The hook returns 3 values: `data`, `isLoading` and `error`, based on the status of the request.

## Fonctionnalités [#features]

Expand Down
2 changes: 1 addition & 1 deletion pages/index.pt-BR.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Profile() {
Nesse exemplo, o hook `useSWR` aceita uma string `key` e uma função `fetcher`. `key` é um identificador único do dado (normalmente a URL da API)
e será passado para `fetcher`. `fetcher` pode ser qualquer função assíncrona que retorna o dado, você pode usar o fetch nativo ou ferramentas como Axios.

O hook retorna 2 valores: `data` e `error`, baseado no status da solicitação.
The hook returns 3 values: `data`, `isLoading` and `error`, based on the status of the request.

## Funcionalidades [#features]

Expand Down
2 changes: 1 addition & 1 deletion pages/index.ru.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Profile() {
В этом примере, хук `useSWR` принимает строку `key` и функцию `fetcher`. `key` — это уникальный идентификатор данных (обычно URL-адрес API),
который будет передан в `fetcher`. `fetcher` может быть любая асинхронная функция, которая возвращает данные, будь то нативный fetch или такие инструменты как Axios.

Хук возвращает 2 значения: `data` и `error`, основанные на статусе запроса.
The hook returns 3 values: `data`, `isLoading` and `error`, based on the status of the request.

## Особенности [#features]

Expand Down
2 changes: 1 addition & 1 deletion pages/index.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Profile() {

该示例中,`useSWR` hook 接受一个字符串 `key` 和一个函数 `fetcher`。`key` 是数据的唯一标识符(通常是 API URL),并传递给 `fetcher`。`fetcher` 可以是任何返回数据的异步函数,你可以使用原生的 fetch 或 Axios 之类的工具。

基于请求的状态,这个 hook 返回 2 个值:`data``error`
The hook returns 3 values: `data`, `isLoading` and `error`, based on the status of the request.

## 特性 [#features]

Expand Down