Skip to content

Commit

Permalink
fix config example
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Jan 24, 2024
1 parent 6f3d781 commit b872987
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions packages/astro/src/@types/astro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1538,11 +1538,10 @@ export interface AstroUserConfig {

/**
* @docs
* @kind h4
* @name experimental.i18n.domains
* @type {Record<string, string> }
* @default '{}'
* @version 3.6.0
* @version 4.3.0
* @description
*
* Configures the URL pattern of one or more supported languages to use a domain (or sub-domain). When a locale is mapped to a domain, a `/[locale]/` path prefix will not be used.
Expand All @@ -1551,16 +1550,18 @@ export interface AstroUserConfig {
*
* ```js
* export default defineConfig({
* experimental: {
* i18n: {
* defaultLocale: "en",
* locales: ["en", "fr", "pt-br", "es"],
* domains: {
* fr: "https://fr.example.com",
* },
* routingStrategy: "domain"
* }
* }
* output: "server",
* site: "https://example.com",
* i18n: {
* defaultLocale: "en",
* locales: ["en", "fr", "pt-br", "es"],
* domains: {
* fr: "https://fr.example.com",
* },
* routing: {
* strategy: "domains"
* }
* }
* })
* ```
*/
Expand Down

0 comments on commit b872987

Please sign in to comment.