From 09b786f3209c6849edc9dfce1f29747702436c05 Mon Sep 17 00:00:00 2001 From: Junseong Park Date: Fri, 12 Apr 2024 14:26:04 +0900 Subject: [PATCH 1/2] i18n(ko-KR): update `error-reference.mdx` and `errors/` --- src/content/docs/ko/reference/error-reference.mdx | 2 ++ .../errors/incorrect-strategy-for-i18n.mdx | 13 +++++++++++++ .../missing-middleware-for-internationalization.mdx | 10 ++++++++++ .../errors/no-prerendered-routes-with-domains.mdx | 2 +- 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/content/docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx create mode 100644 src/content/docs/ko/reference/errors/missing-middleware-for-internationalization.mdx diff --git a/src/content/docs/ko/reference/error-reference.mdx b/src/content/docs/ko/reference/error-reference.mdx index c799f1ea3c123..5516fd047231e 100644 --- a/src/content/docs/ko/reference/error-reference.mdx +++ b/src/content/docs/ko/reference/error-reference.mdx @@ -66,7 +66,9 @@ import DontEditWarning from '~/components/DontEditWarning.astro' - [**FailedToFindPageMapSSR**](/ko/reference/errors/failed-to-find-page-map-ssr/)
Astro가 렌더링할 올바른 페이지를 찾을 수 없습니다. - [**MissingLocale**](/ko/reference/errors/missing-locale/)
제공된 언어가 존재하지 않습니다. - [**MissingIndexForInternationalization**](/ko/reference/errors/missing-index-for-internationalization/)
색인 페이지를 찾을 수 없습니다. +- [**IncorrectStrategyForI18n**](/ko/reference/errors/incorrect-strategy-for-i18n/)
현재 전략에는 현재 함수를 사용할 수 없습니다 - [**NoPrerenderedRoutesWithDomains**](/ko/reference/errors/no-prerendered-routes-with-domains/)
국제화 도메인이 활성화된 경우 사전 렌더링된 경로는 지원되지 않습니다. +- [**MissingMiddlewareForInternationalization**](/ko/reference/errors/missing-middleware-for-internationalization/)
미들웨어 없이 수동 국제화 라우팅을 활성화했습니다. - [**CantRenderPage**](/ko/reference/errors/cant-render-page/)
Astro가 경로를 렌더링할 수 없습니다. - [**UnhandledRejection**](/ko/reference/errors/unhandled-rejection/)
처리될 수 없는 오류가 발생했습니다. - [**i18nNotEnabled**](/ko/reference/errors/i18n-not-enabled/)
i18n이 활성화되지 않았습니다. diff --git a/src/content/docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx b/src/content/docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx new file mode 100644 index 0000000000000..0491b33cea541 --- /dev/null +++ b/src/content/docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx @@ -0,0 +1,13 @@ +--- +title: You can't use the current function with the current strategy +i18nReady: true +githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts +--- + +> **IncorrectStrategyForI18n**: The function `FUNCTION_NAME\' can only be used when the `i18n.routing.strategy` is set to `"manual"`. + +## 무엇이 잘못되었나요? +일부 국제화 함수는 Astro의 자체 i18n 라우팅이 `i18n.routing: "manual"` 구성 설정에 의해 비활성화된 경우에만 사용할 수 있습니다. + +**더 보기:** +- [`i18n` routing](/ko/guides/internationalization/#routing) \ No newline at end of file diff --git a/src/content/docs/ko/reference/errors/missing-middleware-for-internationalization.mdx b/src/content/docs/ko/reference/errors/missing-middleware-for-internationalization.mdx new file mode 100644 index 0000000000000..21c0c7325358d --- /dev/null +++ b/src/content/docs/ko/reference/errors/missing-middleware-for-internationalization.mdx @@ -0,0 +1,10 @@ +--- +title: Enabled manual internationalization routing without having a middleware. +i18nReady: true +githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts +--- + +> **MissingMiddlewareForInternationalization**: Your configuration setting `i18n.routing: 'manual'` requires you to provide your own i18n `middleware` file. + +## 무엇이 잘못되었나요? +사용자가 수동 라우팅을 활성화했지만 미들웨어 파일이 없으면 Astro에서 오류가 발생합니다. \ No newline at end of file diff --git a/src/content/docs/ko/reference/errors/no-prerendered-routes-with-domains.mdx b/src/content/docs/ko/reference/errors/no-prerendered-routes-with-domains.mdx index a2aad4bc68ae3..fb28295c05ec8 100644 --- a/src/content/docs/ko/reference/errors/no-prerendered-routes-with-domains.mdx +++ b/src/content/docs/ko/reference/errors/no-prerendered-routes-with-domains.mdx @@ -4,7 +4,7 @@ i18nReady: true githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts --- -> **NoPrerenderedRoutesWithDomains**: Static pages aren't yet supported with multiple domains. If you wish to enable this feature, you have to disable prerendering for the page COMPONENT +> **NoPrerenderedRoutesWithDomains**: Static pages aren't yet supported with multiple domains. To enable this feature, you must disable prerendering for the page COMPONENT ## 무엇이 잘못되었나요? From f8ffafa06947f98a3bf3f0a137ec005259781679 Mon Sep 17 00:00:00 2001 From: Junseong Park Date: Fri, 12 Apr 2024 17:44:25 +0900 Subject: [PATCH 2/2] Update src/content/docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx Co-authored-by: liruifengv --- .../docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx b/src/content/docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx index 0491b33cea541..dc00be347c149 100644 --- a/src/content/docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx +++ b/src/content/docs/ko/reference/errors/incorrect-strategy-for-i18n.mdx @@ -4,7 +4,7 @@ i18nReady: true githubURL: https://github.com/withastro/astro/blob/main/packages/astro/src/core/errors/errors-data.ts --- -> **IncorrectStrategyForI18n**: The function `FUNCTION_NAME\' can only be used when the `i18n.routing.strategy` is set to `"manual"`. +> **IncorrectStrategyForI18n**: The function `FUNCTION_NAME` can only be used when the `i18n.routing.strategy` is set to `"manual"`. ## 무엇이 잘못되었나요? 일부 국제화 함수는 Astro의 자체 i18n 라우팅이 `i18n.routing: "manual"` 구성 설정에 의해 비활성화된 경우에만 사용할 수 있습니다.