Astro 웹사이트 번역 방법: i18n 라우팅과 SEO
i18n 라우팅, 콘텐츠 컬렉션, 현지화된 SEO 태그, hreflang을 지원하는 사이트맵, MDX 편집 워크플로를 활용해 크롤링 가능한 Astro 로케일 URL을 배포하세요.

Astro’s static-first architecture is a natural fit for multilingual marketing sites—when teams treat i18n routing, content collections, and SEO annotations as first-class engineering work. Astro developers often ship beautiful locale folders, then discover hreflang is missing, layout chrome stays in English, or hybrid islands render untranslated strings client-side.
This guide explains how to translate an Astro website with crawlable locale HTML, organized content collections, localized layout and SEO tags, hreflang-ready sitemaps, hybrid rendering caveats, and editorial workflows for Markdown and MDX—all grounded in Google’s multilingual requirements. No invented ranking factors.
이 가이드에서 다루는 질문
- How does Astro i18n routing support crawlable locales?
- How should content collections be organized per language?
- How do you localize Astro layout chrome and SEO tags?
- How should hreflang be generated for static Astro output?
- When is hybrid rendering needed for multilingual Astro sites?
- How should translation workflow integrate with Markdown/MDX content?
- Which Astro multilingual mistakes are common?
- When should Astro teams adopt a translation platform?
Quick answer: static locale HTML is Astro’s SEO advantage
Short answer: Use Astro i18n routing to pre-render distinct locale URLs with fully localized HTML—including navigation, metadata, and main content—then add reciprocal hreflang across alternates.
Pre-rendered HTML per locale URL aligns well with Google’s preference for crawlable language versions with distinct URLs. Astro can emit static files per locale at build time, which gives crawlers the same language-specific document users receive without depending on client-side language toggles.
Google recommends different crawlable URLs for each language version rather than cookies or browser language alone. Astro’s astro:i18n routing (or equivalent locale-prefix patterns) supports that model when you generate one output path per locale.
Astro i18n routing and URL design
Configure Astro with explicit locales and a default locale. Common URL patterns:
- Prefix default locale (
/en/about,/fr/about) — explicit and easy to annotate. - Hide default locale (
/aboutfor English,/fr/aboutfor French) — cleaner for primary market URLs; document the mapping in hreflang.
In astro.config.mjs, set i18n.locales, i18n.defaultLocale, and i18n.routing to match your matrix. Each route file should receive the active locale via Astro’s APIs so templates render the correct language.
Google determines page language primarily from visible content; language versions should keep content and navigation predominantly in one language. Wire nav components to locale-aware translation dictionaries so headers and footers match the page body.
Avoid automatic redirects based on assumed language or location. Google advises against auto-redirects and recommends a user-visible language selector linking to alternate URLs.
For strategy context on language versus country targeting, read international SEO versus multilingual SEO.
Content collections per locale
Astro content collections power blogs, docs, and landing page copy. Organize multilingual content deliberately:
- Separate collection directories per locale (
src/content/blog/en/,src/content/blog/fr/) with shared schemas. - Locale field on frontmatter filtering a single collection when volumes are small.
- Symlinked or generated indices that list only items available in each locale—avoid publishing empty locale stubs.
Each localized document should reference locale-appropriate assets and internal links. A French post linking to an English-only doc breaks user trust and language consistency.
When equivalent content does not exist in a locale, do not fake hreflang alternates—either translate the pair or omit the relationship until ready.
Localizing layouts, SEO and Open Graph
Centralize layout chrome in locale-aware components:
BaseLayout.astroreadsAstro.currentLocale(or your i18n helper) and selects strings from JSON or TS dictionaries.<title>and meta description come from frontmatter or CMS fields per page—not hard-coded English.- Open Graph and Twitter tags mirror the localized title and description.
html langattribute matches the active locale (accessibility plus clarity; Google still uses visible content for language detection).
Localized SEO titles and meta descriptions should be unique per locale URL. Thin boilerplate-only localization—translated nav with English article bodies—creates weak language versions.
Hreflang and sitemap generation
Astro sites should still emit reciprocal hreflang (HTML, headers or sitemaps) across locale URLs when alternate versions exist. At build time, generate a locale matrix from your content graph:
- For each logical page, list every published locale URL.
- Emit
<link rel="alternate" hreflang="..." href="..." />in<head>on each static HTML file, or - Generate an XML sitemap with
xhtml:linkalternates for each URL entry.
XML sitemaps help discovery of language versions and can carry xhtml:link hreflang annotations when used as an implementation method.
Each language URL should have a clear same-language canonical. Google canonical guidance applies to static sites the same as dynamic ones.
Integrate sitemap generation into CI—@astrojs/sitemap plus custom serialization hooks works well—so hreflang stays in sync when content changes.
See multilingual SEO foundations for how editorial teams govern annotations alongside engineering output.
Hybrid islands and dynamic content caveats
Astro’s islands architecture lets you hydrate React, Vue, or Svelte components selectively. Multilingual caveats:
- Client-only widgets may render English until JavaScript loads—bad for language detection and UX.
- Server-render initial island HTML in the correct locale when possible.
- Dynamic routes (
output: 'server'orhybrid) need locale passed through middleware so SSR HTML matches the URL prefix.
When is hybrid rendering needed? Use hybrid or server rendering when content is personalized, auth-gated, or fetched at request time—but still emit crawlable static locale shells for marketing pages that must rank. Marketing locales should default to static generation; reserve dynamic rendering for authenticated app sections.
Editorial workflow for MDX and CMS content
Markdown and MDX remain the most maintainable Astro content layer for many teams:
- Source strings in translation files (
src/i18n/fr.json) for UI chrome. - Frontmatter per locale file for long-form content.
- Pull requests per locale batch with glossary checks.
- CAT or TMS export for large doc sets—re-import into
src/content.
Google helpful-content guidance prioritizes people-first pages; machine-only dumps without review create thin locale experiences.
Define publish gates: no merge if required locale fields missing, if internal links escape the locale, or if sample hreflang pairs fail reciprocity checks.
구현 체크리스트
흔히 하는 실수
- English-only layout shell on localized routes.
- Missing hreflang because static paths were hand-maintained.
- Default locale hidden without documenting alternates — broken reciprocity.
- Client-rendered language toggle without distinct URLs.
- Mixed-language MDX from partial translation merges.
- Publishing stub locales with lorem or English placeholders.
- Sitemap omitted on large static sites—slower discovery.
- Canonical pointing across languages carelessly.
Bing Webmaster Guidelines also emphasize crawlable, useful content and clear site structure for indexing across markets.
기존 검색 엔진과 답변 엔진을 위한 기본 원칙
Shared foundations for Astro static locale HTML and content collections still matter across Google, Bing, and answer engines: crawlable language versions, clear entities, evidence-backed claims, structured data where truthful, and real localization—not English-only shells. Treat the guides below as platform-specific lenses on the same multilingual delivery bar.
플랫폼별 가이드: Google 검색
Google 검색에서 페이지가 발견되려면 해당 언어에 맞는 HTML과 정확한 제목·헤딩을 갖춘 크롤링 가능한 로케일별 URL이 필요하며, 대체 언어 버전이 있다면 상호 참조하는 hreflang도 필요합니다. 기술적 기반에는 쿠키로만 언어를 전환하는 방식이 아닌 색인 가능한 콘텐츠, 현지화된 메타데이터, 사이트맵, 일관된 대표 URL 관리가 포함됩니다. 콘텐츠 품질은 각 언어로 제공되는 사용자 중심의 본문 콘텐츠를 뜻합니다. 권위는 번역 도구의 마케팅이 아니라 명확한 조직 정체성과 이를 뒷받침하는 출처에서 나옵니다. 다국어 운영의 핵심은 시장별 또는 언어별 URL이 각각 독립적으로 완결성을 갖춰야 한다는 것입니다. Search Console의 색인 생성 범위와 URL 검사를 통해 로케일별로 측정하세요. 확인된 사실과 불확실한 점을 구분해야 합니다. Google은 다국어 및 hreflang의 작동 방식을 문서화하고 있지만, 특정 CMS나 기계 번역 후편집(MTPE) 워크플로가 검색 순위를 보장한다고 명시하지는 않습니다.
플랫폼별 가이드: Bing
Bing은 구조가 명확하고 크롤링 가능한 다국어 페이지를 발견하고 색인합니다. 이는 URL과 콘텐츠의 명확성에 대한 Google의 요구와 유사합니다. 기술적 기반에는 가져올 수 있는 로케일별 URL, 유용한 콘텐츠, Bing Webmaster Tools를 통한 모니터링이 포함됩니다. 공통 UI만 번역하기보다는 헤딩, 주장, FAQ까지 현지화하세요. 권위 신호는 여전히 신뢰할 수 있는 출처와 일관된 엔터티에 달려 있습니다. 다국어 운영 시 언어별 콘텐츠를 클라이언트 측에서만 작동하는 전환 기능 뒤에 숨기지 마세요. Bing Webmaster Tools에서 색인 현황과 크롤링 통계를 측정하세요. 확인된 사실과 불확실한 점을 구분해야 합니다. Bing 가이드라인은 크롤링 가능하고 유용한 콘텐츠를 강조합니다. 번역 도구에 적용되는 Bing만의 순위 요인을 임의로 만들어내서는 안 됩니다.
플랫폼별 가이드: ChatGPT
ChatGPT는 언어별 버전이 명확하고 답변에 활용하기 좋은 형태로 정리된 공개 페이지를 인용하거나 요약할 수 있습니다. 여기서 콘텐츠 발견은 기존의 크롤링 기반 검색 순위와는 다르며, 노출은 출처로 선택되거나 답변에서 참조되는 형태로 나타납니다. 기술적 기반은 여전히 콘텐츠를 숨기는 위젯 오버레이가 아니라 접근 가능한 HTML 페이지 URL에서 시작됩니다. 직접적인 답변, FAQ, 용어집을 기반으로 한 일관된 용어 사용은 도움이 되는 콘텐츠 특성입니다. 권위는 근거와 로케일 전반에 걸쳐 일관된 엔터티에서 나옵니다. 다국어 운영 시 각 로케일 페이지는 그 자체로 읽고 이해할 수 있어야 합니다. 측정에는 한계가 있으므로 인용 여부 확인은 가설을 검증하는 수준으로 다루세요. 확인된 사실과 불확실한 점을 구분해야 합니다. MTPE나 특정 CMS 연동이 ChatGPT의 인용으로 이어진다는 문서화된 보장은 없습니다.
플랫폼별 가이드: Gemini
일관된 엔터티, 정확한 구조화된 데이터, 색인 가능한 현지화 페이지는 Gemini와 관련 Google AI 서비스에 도움이 됩니다. 노출이란 참조되거나 인식되는 것을 뜻하며, Gemini의 순위 요인을 임의로 만들어내는 것이 아닙니다. 기술적 기반은 Google 검색의 크롤링 가능성 및 메타데이터 품질 요건과 겹칩니다. 콘텐츠는 언어별로 명확한 주장과 정의를 제시해야 합니다. 권위는 조직 정보의 일관성과 이를 뒷받침하는 근거에 달려 있습니다. 다국어 운영 시 용어집으로 제품명을 관리하면 로케일 간 혼란을 줄일 수 있습니다. 기존 방식대로 Search Console에서 측정하고, AI 답변을 표본으로 살펴 정성적으로 평가하세요. 확인된 사실과 불확실한 점을 구분해야 합니다. Gemini의 동작 방식은 hreflang과 언어별 버전에 관한 Google 검색의 공식 문서 지침을 대체하지 않습니다.
플랫폼별 가이드: Google AI Overviews
Google AI Overviews는 답변을 뒷받침하는 페이지로 연결되는 링크를 제공할 수 있습니다. 여기에 포함되기 위한 기본 조건은 여전히 사용자 중심의 색인 가능한 콘텐츠입니다. AI Overviews는 언어 전환 기능이 아니며 hreflang을 대체하지도 않습니다. 기술적 기반은 크롤링 가능한 로케일별 HTML과 사실에 부합하는 구조화된 데이터입니다. 콘텐츠에는 각 언어로 된 간결한 답변과 명확한 헤딩이 필요합니다. 권위 신호도 유용한 콘텐츠에 대한 기대 기준과 같습니다. 다국어 운영 시 어떤 번역 페이지도 AI Overviews에 포함된다고 보장할 수 없습니다. Search Console에서 생성형 AI 관련 보고서를 제공하는 경우 이를 활용해 측정하되, 기존 색인 지표와는 구분해 관리하세요. 확인된 사실과 불확실한 점을 구분해야 합니다. 어떤 번역 워크플로도 AI Overviews 노출을 약속할 수 없습니다.
GlotEO의 역할
When should Astro teams adopt a translation platform? Once glossary enforcement, locale review queues, and hreflang matrices outgrow manual JSON and MDX pull requests.
Engineering can ship perfect Astro i18n routing; localization still needs glossaries, review queues, and publish discipline. Explore GlotEO website localization to connect briefs, translation workflow, and QA gates with static-site content pipelines—so MDX and dictionary updates stay aligned with hreflang and SEO metadata your Astro build emits.
Compare GlotEO pricing and plans when translation volume grows beyond manual JSON edits, and use multilingual SEO workflow tooling to keep locale matrices and editorial requirements visible to both developers and content teams.
Pair this Astro tutorial with international SEO versus multilingual SEO when language and country strategy precedes implementation.
참고 자료
- 이 글에서 제시한 지침의 근거 자료 (Bing 웹마스터 가이드라인)
- 이 글에서 제시한 지침의 근거 자료 (rel=canonical 및 기타 방법으로 대표 URL을 지정하는 방법)
- 이 글에서 제시한 지침의 근거 자료 (유용하고 신뢰할 수 있는 사용자 중심 콘텐츠 만들기)
- 이 글에서 제시한 지침의 근거 자료 (페이지의 현지화된 버전을 Google에 알리기)
- 이 글에서 제시한 지침의 근거 자료 (다지역 및 다국어 사이트 관리하기)
- 이 글에서 제시한 지침의 근거 자료 (사이트맵 알아보기)