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

i18n(ru): Add and update translations for astro-response-headers-reassigned.mdx, error-reference.mdx and locals-not-an-object.mdx pages #7286

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
i18n(ru): Add and update translations for PR #7250
  • Loading branch information
mearashadowfax committed Mar 11, 2024
commit 1625e65c5ac484ce9ba52da7e7b664f87ea7aa58
1 change: 1 addition & 0 deletions src/content/docs/ru/reference/error-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/
- [**MiddlewareNoDataOrNextCalled**](/ru/reference/errors/middleware-no-data-or-next-called/)<br/>The middleware didn't return a `Response`.
- [**MiddlewareNotAResponse**](/ru/reference/errors/middleware-not-aresponse/)<br/>The middleware returned something that is not a `Response` object.
- [**LocalsNotAnObject**](/ru/reference/errors/locals-not-an-object/)<br/>Value assigned to `locals` is not accepted.
- [**AstroResponseHeadersReassigned**](/ru/reference/errors/astro-response-headers-reassigned/)<br/>`Astro.response.headers` не должны быть переназначены.
- [**MiddlewareCantBeLoaded**](/ru/reference/errors/middleware-cant-be-loaded/)<br/>Can't load the middleware.
- [**LocalImageUsedWrongly**](/ru/reference/errors/local-image-used-wrongly/)<br/>Local images must be imported.
- [**AstroGlobUsedOutside**](/ru/reference/errors/astro-glob-used-outside/)<br/>Astro.glob() used outside of an Astro file.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Astro.response.headers must not be reassigned.
i18nReady: true
githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts
---

> **AstroResponseHeadersReassigned**: Отдельные заголовки могут быть добавлены и удалены из `Astro.response.headers`, но не должны быть полностью заменены на другой экземпляр `Headers`.

## Что пошло не так?
Выбрасывается, когда значение устанавливается как поле `headers` в объекте `ResponseInit`, доступном как `Astro.response`.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/

## Что пошло не так?

Возникает в режиме разработки, когда `locals` перезаписывается чем-то, что не является объектом.
Выбрасывается, когда `locals` перезаписывается чем-то, что не является объектом.

Например:
```ts
Expand Down
Loading