diff options
author | HiDeoo | 2023-07-06 23:41:33 +0200 |
---|---|---|
committer | GitHub | 2023-07-06 23:41:33 +0200 |
commit | e8d1ceecbcf65372e26ade664122182c33b4cf0a (patch) | |
tree | e3a7c6cf6aa598ab90cdc6aee448d83813cbc91b | |
parent | ca9a6f5da565c0a5ed7eae07da93c312ed4102fd (diff) | |
download | IT.starlight-e8d1ceecbcf65372e26ade664122182c33b4cf0a.tar.gz IT.starlight-e8d1ceecbcf65372e26ade664122182c33b4cf0a.tar.bz2 IT.starlight-e8d1ceecbcf65372e26ade664122182c33b4cf0a.zip |
[i18nIgnore] Tweak internationalization documentation (#311)
-rw-r--r-- | docs/src/content/docs/de/reference/configuration.md | 14 | ||||
-rw-r--r-- | docs/src/content/docs/es/guides/i18n.mdx | 2 | ||||
-rw-r--r-- | docs/src/content/docs/es/reference/configuration.md | 14 | ||||
-rw-r--r-- | docs/src/content/docs/fr/guides/i18n.mdx | 2 | ||||
-rw-r--r-- | docs/src/content/docs/fr/reference/configuration.md | 14 | ||||
-rw-r--r-- | docs/src/content/docs/guides/i18n.mdx | 2 | ||||
-rw-r--r-- | docs/src/content/docs/it/guides/i18n.mdx | 2 | ||||
-rw-r--r-- | docs/src/content/docs/it/reference/configuration.md | 14 | ||||
-rw-r--r-- | docs/src/content/docs/ja/guides/i18n.mdx | 2 | ||||
-rw-r--r-- | docs/src/content/docs/ja/reference/configuration.md | 14 | ||||
-rw-r--r-- | docs/src/content/docs/reference/configuration.md | 14 |
11 files changed, 71 insertions, 23 deletions
diff --git a/docs/src/content/docs/de/reference/configuration.md b/docs/src/content/docs/de/reference/configuration.md index d878d04c..9801df5a 100644 --- a/docs/src/content/docs/de/reference/configuration.md +++ b/docs/src/content/docs/de/reference/configuration.md @@ -140,9 +140,9 @@ interface LinkItem { ### `locales` -**Typ:** `{ [dir: string]: LocaleConfig }` +**Typ:** <code>{ \[dir: string\]: [LocaleConfig](#localeconfig) }</code> -Konfiguriere die Internationalisierung (i18n) für Ihre Website, indem du festlegst, welche `Locales` unterstützt werden. +[Konfiguriere die Internationalisierung (i18n)](/de/guides/i18n/) für Ihre Website, indem du festlegst, welche `Locales` unterstützt werden. Jeder Eintrag sollte das Verzeichnis, in dem die Dateien der jeweiligen Sprache gespeichert sind, als Schlüssel verwenden. @@ -178,7 +178,15 @@ export default defineConfig({ }); ``` -#### Locale-Optionen +#### `LocaleConfig` + +```ts +interface LocaleConfig { + label: string; + lang?: string; + dir?: 'ltr' | 'rtl'; +} +``` Du kannst die folgenden Optionen für jedes Locale-Schema festlegen: diff --git a/docs/src/content/docs/es/guides/i18n.mdx b/docs/src/content/docs/es/guides/i18n.mdx index 5bffaa42..cc7ce115 100644 --- a/docs/src/content/docs/es/guides/i18n.mdx +++ b/docs/src/content/docs/es/guides/i18n.mdx @@ -9,7 +9,7 @@ Starlight proporciona soporte incorporado para sitios multilingües, incluidas l ## Configura i18n -1. Indícale a Starlight los idiomas que admites pasando `locales` y `defaultLocale` a la integración de Starlight: +1. Indícale a Starlight los idiomas que admites pasando [`locales`](/es/reference/configuration/#locales) y [`defaultLocale`](/es/reference/configuration/#defaultlocale) a la integración de Starlight: ```js // astro.config.mjs diff --git a/docs/src/content/docs/es/reference/configuration.md b/docs/src/content/docs/es/reference/configuration.md index 6b5b79e5..973b9f46 100644 --- a/docs/src/content/docs/es/reference/configuration.md +++ b/docs/src/content/docs/es/reference/configuration.md @@ -195,9 +195,9 @@ type SidebarItem = { ### `locales` -**tipo:** `{ [dir: string]: LocaleConfig }` +**tipo:** <code>{ \[dir: string\]: [LocaleConfig](#localeconfig) }</code> -Configura la internacionalización (i18n) para tu sitio estableciendo qué `locales` se admiten. +[Configura la internacionalización (i18n)](/es/guides/i18n/) para tu sitio estableciendo qué `locales` se admiten. Cada entrada debe usar el directorio donde se guardan los archivos de ese idioma como clave. @@ -233,7 +233,15 @@ export default defineConfig({ }); ``` -#### Opciones de configuración de idioma +#### `LocaleConfig` + +```ts +interface LocaleConfig { + label: string; + lang?: string; + dir?: 'ltr' | 'rtl'; +} +``` Puedes establecer las siguientes opciones para cada idioma: diff --git a/docs/src/content/docs/fr/guides/i18n.mdx b/docs/src/content/docs/fr/guides/i18n.mdx index 5012b788..5e7d0a4a 100644 --- a/docs/src/content/docs/fr/guides/i18n.mdx +++ b/docs/src/content/docs/fr/guides/i18n.mdx @@ -9,7 +9,7 @@ Starlight offre une prise en charge intégrée des sites multilingues, y compris ## Configurer i18n -1. Indiquez à Starlight les langues que vous prenez en charge en passant `locales` et `defaultLocale` à l'intégration Starlight : +1. Indiquez à Starlight les langues que vous prenez en charge en passant [`locales`](/fr/reference/configuration/#locales) et [`defaultLocale`](/fr/reference/configuration/#defaultlocale) à l'intégration Starlight : ```js // astro.config.mjs diff --git a/docs/src/content/docs/fr/reference/configuration.md b/docs/src/content/docs/fr/reference/configuration.md index 8500e3c0..9c44ee11 100644 --- a/docs/src/content/docs/fr/reference/configuration.md +++ b/docs/src/content/docs/fr/reference/configuration.md @@ -164,9 +164,9 @@ type SidebarItem = { ### `locales` -**type:** `{ [dir: string]: LocaleConfig }` +**type:** <code>{ \[dir: string\]: [LocaleConfig](#localeconfig) }</code> -Configurez l'internationalisation (i18n) de votre site en définissant les `locales` supportées. +[Configurez l'internationalisation (i18n)](/fr/guides/i18n/) de votre site en définissant les `locales` supportées. Chaque entrée doit utiliser comme clé le répertoire dans lequel les fichiers de cette langue sont sauvegardés. @@ -202,7 +202,15 @@ export default defineConfig({ }); ``` -#### Options des paramètres linguistiques +#### `LocaleConfig` + +```ts +interface LocaleConfig { + label: string; + lang?: string; + dir?: 'ltr' | 'rtl'; +} +``` Vous pouvez définir les options suivantes pour chaque locale : diff --git a/docs/src/content/docs/guides/i18n.mdx b/docs/src/content/docs/guides/i18n.mdx index 473c48be..3ca61201 100644 --- a/docs/src/content/docs/guides/i18n.mdx +++ b/docs/src/content/docs/guides/i18n.mdx @@ -9,7 +9,7 @@ Starlight provides built-in support for multilingual sites, including routing, f ## Configure i18n -1. Tell Starlight about the languages you support by passing `locales` and `defaultLocale` to the Starlight integration: +1. Tell Starlight about the languages you support by passing [`locales`](/reference/configuration/#locales) and [`defaultLocale`](/reference/configuration/#defaultlocale) to the Starlight integration: ```js // astro.config.mjs diff --git a/docs/src/content/docs/it/guides/i18n.mdx b/docs/src/content/docs/it/guides/i18n.mdx index e4a2f097..b2756510 100644 --- a/docs/src/content/docs/it/guides/i18n.mdx +++ b/docs/src/content/docs/it/guides/i18n.mdx @@ -9,7 +9,7 @@ Starlight offre il supporto per siti multilingua, compreso di indirizzamento, co ## Configurare i18n -1. Indicare a Starlight le lingue che si vuole supportare passando `locales` e `defaultLocale` all'integrazione Starlight: +1. Indicare a Starlight le lingue che si vuole supportare passando [`locales`](/it/reference/configuration/#locales) e [`defaultLocale`](/it/reference/configuration/#defaultlocale) all'integrazione Starlight: ```js // astro.config.mjs diff --git a/docs/src/content/docs/it/reference/configuration.md b/docs/src/content/docs/it/reference/configuration.md index 24e3bbe0..1fadaf13 100644 --- a/docs/src/content/docs/it/reference/configuration.md +++ b/docs/src/content/docs/it/reference/configuration.md @@ -171,9 +171,9 @@ interface LinkItem { ### `locales` -**type:** `{ [dir: string]: LocaleConfig }` +**type:** <code>{ \[dir: string\]: [LocaleConfig](#localeconfig) }</code> -Configura l'internazionalizzazione (i18n) del sito impostando quali `locales` sono supportati. +[Configura l'internazionalizzazione (i18n)](/it/guides/i18n/) del sito impostando quali `locales` sono supportati. Ogni elemento deve utilizzare come chiave la cartella dove i file della lingua associata si trovano. @@ -209,7 +209,15 @@ export default defineConfig({ }); ``` -#### Opzioni per locale +#### `LocaleConfig` + +```ts +interface LocaleConfig { + label: string; + lang?: string; + dir?: 'ltr' | 'rtl'; +} +``` Puoi impostare le seguenti opzioni per ogni locale: diff --git a/docs/src/content/docs/ja/guides/i18n.mdx b/docs/src/content/docs/ja/guides/i18n.mdx index 0da9f54c..69a33911 100644 --- a/docs/src/content/docs/ja/guides/i18n.mdx +++ b/docs/src/content/docs/ja/guides/i18n.mdx @@ -9,7 +9,7 @@ Starlightは、ルーティング、フォールバックコンテンツ、右 ## i18nの設定 -1. `locales`と`defaultLocale`をStarlightインテグレーションに渡すことで、サポートする言語についてStarlightに伝えます。 +1. [`locales`](/ja/reference/configuration/#locales)と[`defaultLocale`](/ja/reference/configuration/#defaultlocale)をStarlightインテグレーションに渡すことで、サポートする言語についてStarlightに伝えます。 ```js // astro.config.mjs diff --git a/docs/src/content/docs/ja/reference/configuration.md b/docs/src/content/docs/ja/reference/configuration.md index 8b8ab4b1..ef21870e 100644 --- a/docs/src/content/docs/ja/reference/configuration.md +++ b/docs/src/content/docs/ja/reference/configuration.md @@ -192,9 +192,9 @@ type SidebarItem = { ### `locales` -**type:** `{ [dir: string]: LocaleConfig }` +**type:** <code>{ \[dir: string\]: [LocaleConfig](#localeconfig) }</code> -サイトの国際化(i18n)をおこなうには、サポート対象の`locales`を設定します。 +[サイトの国際化(i18n)をおこなうには](/ja/guides/i18n/)、サポート対象の`locales`を設定します。 各エントリは、その言語のファイルが保存されているディレクトリ名をキーとして使用する必要があります。 @@ -230,7 +230,15 @@ export default defineConfig({ }); ``` -#### ロケールオプション +#### `LocaleConfig` + +```ts +interface LocaleConfig { + label: string; + lang?: string; + dir?: 'ltr' | 'rtl'; +} +``` 各ロケールに対し以下のオプションを設定できます。 diff --git a/docs/src/content/docs/reference/configuration.md b/docs/src/content/docs/reference/configuration.md index cd7132c2..b71f9974 100644 --- a/docs/src/content/docs/reference/configuration.md +++ b/docs/src/content/docs/reference/configuration.md @@ -195,9 +195,9 @@ type SidebarItem = { ### `locales` -**type:** `{ [dir: string]: LocaleConfig }` +**type:** <code>{ \[dir: string\]: [LocaleConfig](#localeconfig) }</code> -Configure internationalization (i18n) for your site by setting which `locales` are supported. +[Configure internationalization (i18n)](/guides/i18n/) for your site by setting which `locales` are supported. Each entry should use the directory where that language’s files are saved as the key. @@ -233,7 +233,15 @@ export default defineConfig({ }); ``` -#### Locale options +#### `LocaleConfig` + +```ts +interface LocaleConfig { + label: string; + lang?: string; + dir?: 'ltr' | 'rtl'; +} +``` You can set the following options for each locale: |