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(ko-KR): update configuration-reference.mdx #7873

Closed
wants to merge 1 commit into from
Closed
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
64 changes: 63 additions & 1 deletion src/content/docs/ko/reference/configuration-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1157,6 +1157,17 @@
URL은 기본 언어를 포함하여 모든 경로에 대해 `example.com/[locale]/content/` 형식입니다.
현지화된 폴더는 기본값을 포함하여 모든 언어에 사용됩니다.

```js
export default defineConfig({
i18n: {
defaultLocale: "en",
locales: ["en", "fr", "pt-br", "es"],
routing: {
prefixDefaultLocale: true,
}
}
})

#### i18n.routing.redirectToDefaultLocale

<p>
Expand Down Expand Up @@ -1185,6 +1196,30 @@
});
```

#### i18n.routing.manual

<p>

**타입:** `string`<br />
<Since v="4.6.0" />
</p>

이 옵션이 활성화되면 Astro는 사용자 정의 로직을 구현할 수 있도록 i18n 미들웨어를 **비활성화**합니다. 다른 `routing` 옵션 (예: `prefixDefaultLocale`)은 `routing: "manual"`으로 구성할 수 없습니다.

여러분은 자신만의 라우팅 로직을 작성하거나 Astro의 i18n 미들웨어를 수동으로 실행할 책임이 있습니다.

```js
export default defineConfig({
i18n: {
defaultLocale: "en",
locales: ["en", "fr", "pt-br", "es"],
routing: {
prefixDefaultLocale: true,
}
}
})
```

## Legacy 플래그

일부 사용자가 Astro 버전 간에 마이그레이션할 수 있도록 돕기 위해 때때로 `legacy` 플래그를 도입합니다.
Expand Down Expand Up @@ -1393,6 +1428,33 @@
})
```

빌드된 페이지 경로와 `astro:i18n` 도우미 함수 [`getAbsoluteLocaleUrl()`](/ko/guides/internationalization/#getabsolutelocaleurl) 및 [`getAbsoluteLocaleUrlList()`](/ko/guides/internationalization/#getabsolutelocaleurllist)에 의해 반환된 URL은 모두 `i18n.domains`에 설정된 옵션을 사용합니다.
빌드된 페이지 경로와 `astro:i18n` 도우미 함수 [`getAbsoluteLocaleUrl()`](/ko/reference/api-reference/#getabsolutelocaleurl) 및 [`getAbsoluteLocaleUrlList()`](/ko/reference/api-reference/#getabsolutelocaleurllist)에 의해 반환된 URL은 모두 `i18n.domains`에 설정된 옵션을 사용합니다.

Check failure on line 1431 in src/content/docs/ko/reference/configuration-reference.mdx

View workflow job for this annotation

GitHub Actions / Check Links

Broken fragment link in src/content/docs/ko/reference/configuration-reference.mdx, line 1431: The linked page does not contain a fragment with the name "#getabsolutelocaleurl". Available fragments: #theme-icons, #gradient, #starlight__sidebar, #starlight__mobile-toc, #starlight__on-this-page--mobile, #starlight__on-this-page, #issue3k1q8qw, #idea3k1q8qw, #other3k1q8qw, #textarea3k1q8qw, #_top, #astro-global, #astroglob, #markdown-파일, #astro-파일, #기타-파일, #astroprops, #astroparams, #astrorequest, #astroresponse, #astrocookies, #get, #has, #set, #delete, #headers, #astrocookie, #value, #json, #number, #boolean, #cookiegetoptions, #decode, #cookiesetoptions, #domain, #expires, #httponly, #maxage, #path, #samesite, #secure, #encode, #astroredirect, #astrocanonicalurl, #astrourl, #astroclientaddress, #astrosite, #astrogenerator, #astroslots, #astroslotshas, #astroslotsrender, #astroself, #astrolocals, #astropreferredlocale, #astropreferredlocalelist, #astrocurrentlocale, #엔드포인트-context, #contextparams, #contextprops, #contextrequest, #contextcookies, #contexturl, #contextclientaddress, #contextsite, #contextgenerator, #contextredirect, #contextlocals, #getstaticpaths, #params, #props를-사용한-데이터-전달, #paginate, #페이지네이션의-page-prop, #pagedata, #pagestart, #pageend, #pagesize, #pagetotal, #pagecurrentpage, #pagelastpage, #pageurlcurrent, #pageurlprev, #pageurlnext, #importmeta, #이미지-astroassets, #getimage, #콘텐츠-컬렉션-astrocontent, #definecollection, #type, #schema, #reference, #getcollection, #getentry, #getentries, #getentrybyslug, #컬렉션-항목-타입, #id, #collection, #data, #slug, #body, #render, #기타-콘텐츠-컬렉션-타입, #collectionkey, #contentcollectionkey, #datacollectionkey, #schemacontext, #미들웨어-astromiddleware, #onrequest, #next, #sequence, #createcontext, #tryserializelocals, #내장-컴포넌트, #code-, #fragment-, #prism-, #tab-2079, #tab-2080, #tab-2081, #tab-panel-2079, #tab-panel-2080, #tab-panel-2081, #image-, #속성, #picture-, #속성-1, #formats, #fallbackformat, #pictureattributes, #content-, #viewtransitions-, #debug-, #docsearch-lvl0

Check failure on line 1431 in src/content/docs/ko/reference/configuration-reference.mdx

View workflow job for this annotation

GitHub Actions / Check Links

Broken fragment link in src/content/docs/ko/reference/configuration-reference.mdx, line 1431: The linked page does not contain a fragment with the name "#getabsolutelocaleurllist". Available fragments: #theme-icons, #gradient, #starlight__sidebar, #starlight__mobile-toc, #starlight__on-this-page--mobile, #starlight__on-this-page, #issue3k1q8qw, #idea3k1q8qw, #other3k1q8qw, #textarea3k1q8qw, #_top, #astro-global, #astroglob, #markdown-파일, #astro-파일, #기타-파일, #astroprops, #astroparams, #astrorequest, #astroresponse, #astrocookies, #get, #has, #set, #delete, #headers, #astrocookie, #value, #json, #number, #boolean, #cookiegetoptions, #decode, #cookiesetoptions, #domain, #expires, #httponly, #maxage, #path, #samesite, #secure, #encode, #astroredirect, #astrocanonicalurl, #astrourl, #astroclientaddress, #astrosite, #astrogenerator, #astroslots, #astroslotshas, #astroslotsrender, #astroself, #astrolocals, #astropreferredlocale, #astropreferredlocalelist, #astrocurrentlocale, #엔드포인트-context, #contextparams, #contextprops, #contextrequest, #contextcookies, #contexturl, #contextclientaddress, #contextsite, #contextgenerator, #contextredirect, #contextlocals, #getstaticpaths, #params, #props를-사용한-데이터-전달, #paginate, #페이지네이션의-page-prop, #pagedata, #pagestart, #pageend, #pagesize, #pagetotal, #pagecurrentpage, #pagelastpage, #pageurlcurrent, #pageurlprev, #pageurlnext, #importmeta, #이미지-astroassets, #getimage, #콘텐츠-컬렉션-astrocontent, #definecollection, #type, #schema, #reference, #getcollection, #getentry, #getentries, #getentrybyslug, #컬렉션-항목-타입, #id, #collection, #data, #slug, #body, #render, #기타-콘텐츠-컬렉션-타입, #collectionkey, #contentcollectionkey, #datacollectionkey, #schemacontext, #미들웨어-astromiddleware, #onrequest, #next, #sequence, #createcontext, #tryserializelocals, #내장-컴포넌트, #code-, #fragment-, #prism-, #tab-2079, #tab-2080, #tab-2081, #tab-panel-2079, #tab-panel-2080, #tab-panel-2081, #image-, #속성, #picture-, #속성-1, #formats, #fallbackformat, #pictureattributes, #content-, #viewtransitions-, #debug-, #docsearch-lvl0

이 실험적 기능의 제한 사항을 포함한 자세한 내용은 [국제화 가이드](/ko/guides/internationalization/#domains-실험적)를 참조하세요.

### experimental.security

<p>

**타입:** `boolean`<br />
**기본값:** `false`<br />
<Since v="4.6.0" />
</p>

Astro 웹사이트에 대한 CSRF 보호를 활성화합니다.

CSRF 보호는 `server` 또는 `hybrid` 모드를 사용하여 요청 시 렌더링되는 페이지 (SSR)에만 작동합니다. 페이지는 `hybrid` 모드에서 사전 렌더링을 선택 해제해야 합니다.

```js
// astro.config.mjs
export default defineConfig({
output: "server",
experimental: {
security: {
csrfProtection: {
origin: true
}
}
}
})
```
Loading