@intlayer/docs 8.1.9 → 8.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/ar/how_works_intlayer.md +1 -1
- package/docs/ar/index.md +1 -1
- package/docs/ar/intlayer_with_astro.md +2 -2
- package/docs/ar/intlayer_with_create_react_app.md +2 -2
- package/docs/ar/intlayer_with_express.md +1 -1
- package/docs/ar/intlayer_with_lynx+react.md +1 -1
- package/docs/ar/intlayer_with_nextjs_14.md +2 -2
- package/docs/ar/intlayer_with_nextjs_15.md +2 -2
- package/docs/ar/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/ar/intlayer_with_react_native+expo.md +1 -1
- package/docs/ar/intlayer_with_react_router_v7.md +3 -3
- package/docs/ar/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/ar/intlayer_with_vite+solid.md +2 -2
- package/docs/ar/intlayer_with_vite+vue.md +2 -2
- package/docs/ar/introduction.md +1 -1
- package/docs/ar/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/ar/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/ar/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/ar/packages/react-intlayer/useI18n.md +1 -1
- package/docs/ar/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/ar/plugins/sync-json.md +10 -6
- package/docs/ar/roadmap.md +1 -1
- package/docs/de/how_works_intlayer.md +1 -1
- package/docs/de/index.md +1 -1
- package/docs/de/intlayer_with_astro.md +2 -2
- package/docs/de/intlayer_with_create_react_app.md +2 -2
- package/docs/de/intlayer_with_express.md +1 -1
- package/docs/de/intlayer_with_lynx+react.md +1 -1
- package/docs/de/intlayer_with_nextjs_14.md +2 -2
- package/docs/de/intlayer_with_nextjs_15.md +2 -2
- package/docs/de/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/de/intlayer_with_react_native+expo.md +1 -1
- package/docs/de/intlayer_with_react_router_v7.md +3 -3
- package/docs/de/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/de/intlayer_with_vite+preact.md +2 -2
- package/docs/de/intlayer_with_vite+solid.md +2 -2
- package/docs/de/intlayer_with_vite+vue.md +2 -2
- package/docs/de/introduction.md +1 -1
- package/docs/de/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/de/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/de/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/de/packages/react-intlayer/useI18n.md +1 -1
- package/docs/de/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/de/plugins/sync-json.md +10 -6
- package/docs/de/roadmap.md +1 -1
- package/docs/en/configuration.md +26 -10
- package/docs/en-GB/how_works_intlayer.md +1 -1
- package/docs/en-GB/index.md +1 -1
- package/docs/en-GB/intlayer_with_astro.md +2 -2
- package/docs/en-GB/intlayer_with_create_react_app.md +3 -3
- package/docs/en-GB/intlayer_with_express.md +1 -1
- package/docs/en-GB/intlayer_with_lynx+react.md +1 -1
- package/docs/en-GB/intlayer_with_nextjs_15.md +2 -2
- package/docs/en-GB/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/en-GB/intlayer_with_react_native+expo.md +1 -1
- package/docs/en-GB/intlayer_with_react_router_v7.md +3 -3
- package/docs/en-GB/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/en-GB/intlayer_with_tanstack.md +3 -3
- package/docs/en-GB/intlayer_with_vite+preact.md +2 -2
- package/docs/en-GB/intlayer_with_vite+solid.md +2 -2
- package/docs/en-GB/intlayer_with_vite+vue.md +2 -2
- package/docs/en-GB/introduction.md +1 -1
- package/docs/en-GB/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/en-GB/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/en-GB/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/en-GB/packages/react-intlayer/useI18n.md +1 -1
- package/docs/en-GB/plugins/sync-json.md +10 -6
- package/docs/en-GB/roadmap.md +1 -1
- package/docs/es/how_works_intlayer.md +1 -1
- package/docs/es/index.md +1 -1
- package/docs/es/intlayer_with_astro.md +2 -2
- package/docs/es/intlayer_with_create_react_app.md +2 -2
- package/docs/es/intlayer_with_express.md +1 -1
- package/docs/es/intlayer_with_lynx+react.md +1 -1
- package/docs/es/intlayer_with_nextjs_14.md +2 -2
- package/docs/es/intlayer_with_nextjs_15.md +2 -2
- package/docs/es/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/es/intlayer_with_react_native+expo.md +1 -1
- package/docs/es/intlayer_with_react_router_v7.md +3 -3
- package/docs/es/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/es/intlayer_with_vite+preact.md +2 -2
- package/docs/es/intlayer_with_vite+solid.md +2 -2
- package/docs/es/intlayer_with_vite+vue.md +2 -2
- package/docs/es/introduction.md +1 -1
- package/docs/es/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/es/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/es/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/es/packages/react-intlayer/useI18n.md +1 -1
- package/docs/es/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/es/plugins/sync-json.md +10 -6
- package/docs/es/roadmap.md +1 -1
- package/docs/fr/how_works_intlayer.md +1 -1
- package/docs/fr/index.md +1 -1
- package/docs/fr/intlayer_with_astro.md +2 -2
- package/docs/fr/intlayer_with_create_react_app.md +2 -2
- package/docs/fr/intlayer_with_express.md +1 -1
- package/docs/fr/intlayer_with_lynx+react.md +1 -1
- package/docs/fr/intlayer_with_nextjs_14.md +2 -2
- package/docs/fr/intlayer_with_nextjs_15.md +2 -2
- package/docs/fr/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/fr/intlayer_with_react_native+expo.md +1 -1
- package/docs/fr/intlayer_with_react_router_v7.md +3 -3
- package/docs/fr/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/fr/intlayer_with_vite+preact.md +2 -2
- package/docs/fr/intlayer_with_vite+solid.md +2 -2
- package/docs/fr/intlayer_with_vite+vue.md +2 -2
- package/docs/fr/introduction.md +1 -1
- package/docs/fr/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/fr/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/fr/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/fr/packages/react-intlayer/useI18n.md +1 -1
- package/docs/fr/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/fr/plugins/sync-json.md +10 -6
- package/docs/fr/roadmap.md +1 -1
- package/docs/hi/how_works_intlayer.md +1 -1
- package/docs/hi/index.md +1 -1
- package/docs/hi/intlayer_with_astro.md +2 -2
- package/docs/hi/intlayer_with_create_react_app.md +2 -2
- package/docs/hi/intlayer_with_express.md +1 -1
- package/docs/hi/intlayer_with_lynx+react.md +1 -1
- package/docs/hi/intlayer_with_nextjs_14.md +2 -2
- package/docs/hi/intlayer_with_nextjs_15.md +2 -2
- package/docs/hi/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/hi/intlayer_with_react_native+expo.md +1 -1
- package/docs/hi/intlayer_with_react_router_v7.md +3 -3
- package/docs/hi/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/hi/intlayer_with_vite+preact.md +1 -1
- package/docs/hi/intlayer_with_vite+solid.md +1 -1
- package/docs/hi/intlayer_with_vite+vue.md +2 -2
- package/docs/hi/introduction.md +1 -1
- package/docs/hi/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/hi/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/hi/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/hi/packages/react-intlayer/useI18n.md +1 -1
- package/docs/hi/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/hi/plugins/sync-json.md +10 -6
- package/docs/hi/roadmap.md +1 -1
- package/docs/id/configuration.md +20 -8
- package/docs/id/intlayer_with_vite+preact.md +1 -1
- package/docs/id/plugins/sync-json.md +10 -6
- package/docs/it/how_works_intlayer.md +1 -1
- package/docs/it/index.md +1 -1
- package/docs/it/intlayer_with_astro.md +2 -2
- package/docs/it/intlayer_with_create_react_app.md +2 -2
- package/docs/it/intlayer_with_express.md +1 -1
- package/docs/it/intlayer_with_lynx+react.md +1 -1
- package/docs/it/intlayer_with_nextjs_14.md +2 -2
- package/docs/it/intlayer_with_nextjs_15.md +2 -2
- package/docs/it/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/it/intlayer_with_react_native+expo.md +1 -1
- package/docs/it/intlayer_with_react_router_v7.md +3 -3
- package/docs/it/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/it/intlayer_with_vite+preact.md +2 -2
- package/docs/it/intlayer_with_vite+solid.md +2 -2
- package/docs/it/intlayer_with_vite+vue.md +2 -2
- package/docs/it/introduction.md +1 -1
- package/docs/it/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/it/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/it/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/it/packages/react-intlayer/useI18n.md +1 -1
- package/docs/it/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/it/plugins/sync-json.md +10 -6
- package/docs/it/roadmap.md +1 -1
- package/docs/ja/how_works_intlayer.md +1 -1
- package/docs/ja/index.md +1 -1
- package/docs/ja/intlayer_with_astro.md +2 -2
- package/docs/ja/intlayer_with_create_react_app.md +2 -2
- package/docs/ja/intlayer_with_express.md +1 -1
- package/docs/ja/intlayer_with_lynx+react.md +1 -1
- package/docs/ja/intlayer_with_nextjs_14.md +2 -2
- package/docs/ja/intlayer_with_nextjs_15.md +2 -2
- package/docs/ja/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/ja/intlayer_with_react_native+expo.md +1 -1
- package/docs/ja/intlayer_with_react_router_v7.md +3 -3
- package/docs/ja/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/ja/intlayer_with_vite+preact.md +2 -2
- package/docs/ja/intlayer_with_vite+solid.md +2 -2
- package/docs/ja/intlayer_with_vite+vue.md +2 -2
- package/docs/ja/introduction.md +1 -1
- package/docs/ja/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/ja/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/ja/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/ja/packages/react-intlayer/useI18n.md +1 -1
- package/docs/ja/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/ja/plugins/sync-json.md +10 -6
- package/docs/ja/roadmap.md +1 -1
- package/docs/ko/how_works_intlayer.md +1 -1
- package/docs/ko/index.md +1 -1
- package/docs/ko/intlayer_with_astro.md +2 -2
- package/docs/ko/intlayer_with_create_react_app.md +2 -2
- package/docs/ko/intlayer_with_express.md +1 -1
- package/docs/ko/intlayer_with_lynx+react.md +1 -1
- package/docs/ko/intlayer_with_nextjs_14.md +2 -2
- package/docs/ko/intlayer_with_nextjs_15.md +3 -3
- package/docs/ko/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/ko/intlayer_with_react_native+expo.md +1 -1
- package/docs/ko/intlayer_with_react_router_v7.md +3 -3
- package/docs/ko/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/ko/intlayer_with_vite+preact.md +1 -1
- package/docs/ko/intlayer_with_vite+solid.md +2 -2
- package/docs/ko/intlayer_with_vite+vue.md +2 -2
- package/docs/ko/introduction.md +1 -1
- package/docs/ko/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/ko/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/ko/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/ko/packages/react-intlayer/useI18n.md +1 -1
- package/docs/ko/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/ko/plugins/sync-json.md +10 -6
- package/docs/ko/roadmap.md +1 -1
- package/docs/pl/configuration.md +20 -17
- package/docs/pl/intlayer_with_tanstack.md +3 -3
- package/docs/pl/plugins/sync-json.md +10 -6
- package/docs/pt/how_works_intlayer.md +1 -1
- package/docs/pt/index.md +1 -1
- package/docs/pt/intlayer_with_astro.md +2 -2
- package/docs/pt/intlayer_with_create_react_app.md +2 -2
- package/docs/pt/intlayer_with_express.md +1 -1
- package/docs/pt/intlayer_with_lynx+react.md +1 -1
- package/docs/pt/intlayer_with_nextjs_14.md +2 -2
- package/docs/pt/intlayer_with_nextjs_15.md +2 -2
- package/docs/pt/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/pt/intlayer_with_react_native+expo.md +1 -1
- package/docs/pt/intlayer_with_react_router_v7.md +3 -3
- package/docs/pt/intlayer_with_tanstack.md +3 -3
- package/docs/pt/intlayer_with_vite+solid.md +2 -2
- package/docs/pt/intlayer_with_vite+vue.md +2 -2
- package/docs/pt/introduction.md +1 -1
- package/docs/pt/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/pt/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/pt/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/pt/packages/react-intlayer/useI18n.md +1 -1
- package/docs/pt/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/pt/plugins/sync-json.md +10 -6
- package/docs/pt/roadmap.md +1 -1
- package/docs/ru/how_works_intlayer.md +1 -1
- package/docs/ru/index.md +1 -1
- package/docs/ru/intlayer_with_astro.md +2 -2
- package/docs/ru/intlayer_with_create_react_app.md +2 -2
- package/docs/ru/intlayer_with_express.md +1 -1
- package/docs/ru/intlayer_with_lynx+react.md +1 -1
- package/docs/ru/intlayer_with_nextjs_14.md +2 -2
- package/docs/ru/intlayer_with_nextjs_15.md +2 -2
- package/docs/ru/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/ru/intlayer_with_react_native+expo.md +1 -1
- package/docs/ru/intlayer_with_react_router_v7.md +3 -3
- package/docs/ru/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/ru/intlayer_with_tanstack.md +3 -3
- package/docs/ru/intlayer_with_vite+solid.md +2 -2
- package/docs/ru/intlayer_with_vite+vue.md +2 -2
- package/docs/ru/introduction.md +1 -1
- package/docs/ru/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/ru/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/ru/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/ru/packages/react-intlayer/useI18n.md +1 -1
- package/docs/ru/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/ru/plugins/sync-json.md +10 -6
- package/docs/ru/roadmap.md +1 -1
- package/docs/tr/intlayer_with_astro.md +2 -2
- package/docs/tr/intlayer_with_react_router_v7.md +3 -3
- package/docs/tr/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/tr/intlayer_with_tanstack.md +3 -3
- package/docs/tr/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/tr/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/tr/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/tr/packages/react-intlayer/useI18n.md +1 -1
- package/docs/tr/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/tr/plugins/sync-json.md +10 -6
- package/docs/uk/configuration.md +20 -17
- package/docs/uk/intlayer_with_tanstack.md +3 -3
- package/docs/vi/configuration.md +20 -17
- package/docs/vi/intlayer_with_tanstack.md +3 -3
- package/docs/vi/intlayer_with_vite+preact.md +1 -1
- package/docs/vi/plugins/sync-json.md +10 -6
- package/docs/zh/how_works_intlayer.md +1 -1
- package/docs/zh/index.md +1 -1
- package/docs/zh/intlayer_with_astro.md +2 -2
- package/docs/zh/intlayer_with_create_react_app.md +2 -2
- package/docs/zh/intlayer_with_express.md +1 -1
- package/docs/zh/intlayer_with_lynx+react.md +1 -1
- package/docs/zh/intlayer_with_nextjs_14.md +2 -2
- package/docs/zh/intlayer_with_nextjs_15.md +2 -2
- package/docs/zh/intlayer_with_nextjs_page_router.md +3 -3
- package/docs/zh/intlayer_with_react_native+expo.md +1 -1
- package/docs/zh/intlayer_with_react_router_v7.md +3 -3
- package/docs/zh/intlayer_with_react_router_v7_fs_routes.md +3 -3
- package/docs/zh/intlayer_with_tanstack.md +1 -1
- package/docs/zh/intlayer_with_vite+solid.md +2 -2
- package/docs/zh/intlayer_with_vite+vue.md +2 -2
- package/docs/zh/introduction.md +1 -1
- package/docs/zh/packages/next-intlayer/useDictionary.md +1 -1
- package/docs/zh/packages/next-intlayer/useIntlayer.md +1 -1
- package/docs/zh/packages/react-intlayer/useDictionary.md +1 -1
- package/docs/zh/packages/react-intlayer/useI18n.md +1 -1
- package/docs/zh/packages/react-intlayer/useIntlayer.md +1 -1
- package/docs/zh/plugins/sync-json.md +10 -6
- package/docs/zh/roadmap.md +1 -1
- package/package.json +7 -7
|
@@ -70,7 +70,7 @@ Questo hook accetta due parametri:
|
|
|
70
70
|
|
|
71
71
|
## Dizionario
|
|
72
72
|
|
|
73
|
-
Tutte le chiavi del dizionario devono essere dichiarate all'interno dei file di dichiarazione del contenuto per migliorare la sicurezza dei tipi e prevenire errori. [Le istruzioni di configurazione si trovano qui](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/dictionary/
|
|
73
|
+
Tutte le chiavi del dizionario devono essere dichiarate all'interno dei file di dichiarazione del contenuto per migliorare la sicurezza dei tipi e prevenire errori. [Le istruzioni di configurazione si trovano qui](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/dictionary/content_file.md).
|
|
74
74
|
|
|
75
75
|
## Esempi di utilizzo in React
|
|
76
76
|
|
|
@@ -69,7 +69,7 @@ L'hook accetta due parametri:
|
|
|
69
69
|
|
|
70
70
|
## Dizionario
|
|
71
71
|
|
|
72
|
-
Tutte le chiavi del dizionario devono essere dichiarate all'interno dei file di dichiarazione dei contenuti per migliorare la sicurezza dei tipi ed evitare errori. Puoi trovare le [istruzioni di configurazione qui](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/dictionary/
|
|
72
|
+
Tutte le chiavi del dizionario devono essere dichiarate all'interno dei file di dichiarazione dei contenuti per migliorare la sicurezza dei tipi ed evitare errori. Puoi trovare le [istruzioni di configurazione qui](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/dictionary/content_file.md).
|
|
73
73
|
|
|
74
74
|
## Esempio di utilizzo in React
|
|
75
75
|
|
|
@@ -66,10 +66,10 @@ npm i -D @intlayer/sync-json-plugin
|
|
|
66
66
|
Aggiungi il plugin al tuo `intlayer.config.ts` e indirizzalo alla tua struttura JSON esistente.
|
|
67
67
|
|
|
68
68
|
```ts fileName="intlayer.config.ts"
|
|
69
|
-
import {
|
|
69
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
70
70
|
import { syncJSON } from "@intlayer/sync-json-plugin";
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
const config: IntlayerConfig = {
|
|
73
73
|
internationalization: {
|
|
74
74
|
locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
|
|
75
75
|
defaultLocale: Locales.ENGLISH,
|
|
@@ -82,7 +82,9 @@ export default defineConfig({
|
|
|
82
82
|
source: ({ key, locale }) => `./locales/${locale}/${key}.json`,
|
|
83
83
|
}),
|
|
84
84
|
],
|
|
85
|
-
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export default config;
|
|
86
88
|
```
|
|
87
89
|
|
|
88
90
|
Alternativa: file singolo per locale (comune con configurazioni i18next/react-intl):
|
|
@@ -147,10 +149,10 @@ Quando più plugin puntano alla stessa chiave del dizionario, il parametro `prio
|
|
|
147
149
|
- I plugin con la stessa priorità vengono elaborati nell'ordine in cui appaiono nella configurazione
|
|
148
150
|
|
|
149
151
|
```ts fileName="intlayer.config.ts"
|
|
150
|
-
import {
|
|
152
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
151
153
|
import { syncJSON } from "@intlayer/sync-json-plugin";
|
|
152
154
|
|
|
153
|
-
|
|
155
|
+
const config: IntlayerConfig = {
|
|
154
156
|
internationalization: {
|
|
155
157
|
locales: [Locales.ENGLISH, Locales.FRENCH],
|
|
156
158
|
defaultLocale: Locales.ENGLISH,
|
|
@@ -181,7 +183,9 @@ export default defineConfig({
|
|
|
181
183
|
priority: 1,
|
|
182
184
|
}),
|
|
183
185
|
],
|
|
184
|
-
}
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export default config;
|
|
185
189
|
```
|
|
186
190
|
|
|
187
191
|
### Risoluzione dei conflitti
|
package/docs/it/roadmap.md
CHANGED
|
@@ -39,7 +39,7 @@ Intlayer è una soluzione per la gestione dei contenuti e l'internazionalizzazio
|
|
|
39
39
|
|
|
40
40
|
> Risorse:
|
|
41
41
|
>
|
|
42
|
-
> - [Dichiarazione dei Contenuti](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/dictionary/
|
|
42
|
+
> - [Dichiarazione dei Contenuti](https://github.com/aymericzip/intlayer/blob/main/docs/docs/it/dictionary/content_file.md)
|
|
43
43
|
|
|
44
44
|
### 2. Internazionalizzazione
|
|
45
45
|
|
|
@@ -77,7 +77,7 @@ const MyComponent = () => {
|
|
|
77
77
|
|
|
78
78
|
このフックはロケールの検出を管理し、現在のロケールに対応するコンテンツを返します。このフックを使用すると、Markdownの解釈、複数形の管理なども可能です。
|
|
79
79
|
|
|
80
|
-
> Intlayerのすべての機能を見るには、[辞書ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
80
|
+
> Intlayerのすべての機能を見るには、[辞書ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
81
81
|
|
|
82
82
|
## 遠隔コンテンツ
|
|
83
83
|
|
package/docs/ja/index.md
CHANGED
|
@@ -55,7 +55,7 @@ Intlayerは、アプリケーションの翻訳に柔軟でモダンなアプロ
|
|
|
55
55
|
|
|
56
56
|
多言語コンテンツをコードの近くに整理し、一貫性と保守性を保ちます。
|
|
57
57
|
|
|
58
|
-
- **[はじめに](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
58
|
+
- **[はじめに](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)**
|
|
59
59
|
Intlayerでコンテンツを宣言する基本を学びます。
|
|
60
60
|
|
|
61
61
|
- **[翻訳](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/translation.md)**
|
|
@@ -67,7 +67,7 @@ yarn add react react-dom react-intlayer @astrojs/react
|
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
- **intlayer**
|
|
70
|
-
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
70
|
+
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のための国際化ツールを提供するコアパッケージ。
|
|
71
71
|
|
|
72
72
|
- **astro-intlayer**
|
|
73
73
|
Astroとの統合プラグインを含み、Intlayerを[Viteバンドラー](https://vite.dev/guide/why.html#why-bundle-for-production)と連携させるほか、ユーザーの優先ロケールの検出、クッキー管理、URLリダイレクトの処理を行うミドルウェアも提供します。
|
|
@@ -138,7 +138,7 @@ export default appContent;
|
|
|
138
138
|
|
|
139
139
|
> コンテンツ宣言は、`contentDir` ディレクトリ(デフォルトは `./src`)に含まれている限り、アプリケーションのどこにでも定義できます。また、コンテンツ宣言ファイルの拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致している必要があります。
|
|
140
140
|
|
|
141
|
-
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
141
|
+
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
142
142
|
|
|
143
143
|
### ステップ 5: Astro でコンテンツを使用する
|
|
144
144
|
|
|
@@ -68,7 +68,7 @@ bunx intlayer init
|
|
|
68
68
|
|
|
69
69
|
- **intlayer**
|
|
70
70
|
|
|
71
|
-
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
71
|
+
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)を提供する国際化ツールのコアパッケージ。
|
|
72
72
|
|
|
73
73
|
- **react-intlayer**
|
|
74
74
|
|
|
@@ -255,7 +255,7 @@ module.exports = appContent;
|
|
|
255
255
|
|
|
256
256
|
> コンテンツ宣言は、`contentDir`ディレクトリ(デフォルトでは`./src`)に含まれる限り、アプリケーション内のどこにでも定義できます。また、コンテンツ宣言ファイルの拡張子(デフォルトでは`.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致する必要があります。
|
|
257
257
|
|
|
258
|
-
> 詳細については、[コンテンツ宣言ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
258
|
+
> 詳細については、[コンテンツ宣言ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
259
259
|
|
|
260
260
|
> コンテンツファイルにTSXコードが含まれている場合は、`import React from "react";`をコンテンツファイルにインポートすることを検討してください。
|
|
261
261
|
|
|
@@ -223,7 +223,7 @@ module.exports = indexContent;
|
|
|
223
223
|
|
|
224
224
|
> コンテンツ宣言は、`contentDir` ディレクトリ(デフォルトは `./src`)に含まれていれば、アプリケーションのどこにでも定義できます。また、コンテンツ宣言ファイルの拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致している必要があります。
|
|
225
225
|
|
|
226
|
-
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
226
|
+
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
227
227
|
|
|
228
228
|
### Express アプリケーションのセットアップ
|
|
229
229
|
|
|
@@ -369,7 +369,7 @@ module.exports = appContent;
|
|
|
369
369
|
}
|
|
370
370
|
```
|
|
371
371
|
|
|
372
|
-
> コンテンツ宣言の詳細については、[Intlayerのコンテンツドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
372
|
+
> コンテンツ宣言の詳細については、[Intlayerのコンテンツドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
373
373
|
|
|
374
374
|
---
|
|
375
375
|
|
|
@@ -73,7 +73,7 @@ bunx intlayer init
|
|
|
73
73
|
|
|
74
74
|
- **intlayer**
|
|
75
75
|
|
|
76
|
-
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
76
|
+
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のための国際化ツールを提供するコアパッケージです。
|
|
77
77
|
|
|
78
78
|
- **next-intlayer**
|
|
79
79
|
|
|
@@ -443,7 +443,7 @@ module.exports = pageContent;
|
|
|
443
443
|
|
|
444
444
|
> あなたのコンテンツ宣言は、`contentDir` ディレクトリ(デフォルトは `./src`)に含まれている限り、アプリケーションのどこにでも定義できます。また、コンテンツ宣言ファイルの拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致する必要があります。
|
|
445
445
|
|
|
446
|
-
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
446
|
+
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
447
447
|
|
|
448
448
|
### ステップ7: コード内でコンテンツを利用する
|
|
449
449
|
|
|
@@ -76,7 +76,7 @@ bunx intlayer init
|
|
|
76
76
|
|
|
77
77
|
- **intlayer**
|
|
78
78
|
|
|
79
|
-
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
79
|
+
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のための国際化ツールを提供するコアパッケージです。
|
|
80
80
|
|
|
81
81
|
- **next-intlayer**
|
|
82
82
|
|
|
@@ -429,7 +429,7 @@ module.exports = pageContent;
|
|
|
429
429
|
|
|
430
430
|
> コンテンツ宣言は、`contentDir` ディレクトリ(デフォルトは `./src`)に含まれている限り、アプリケーションのどこにでも定義できます。また、コンテンツ宣言ファイルの拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致する必要があります。
|
|
431
431
|
|
|
432
|
-
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
432
|
+
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
433
433
|
|
|
434
434
|
### ステップ6: コード内でコンテンツを利用する
|
|
435
435
|
|
|
@@ -72,7 +72,7 @@ bunx intlayer init
|
|
|
72
72
|
|
|
73
73
|
- **intlayer**
|
|
74
74
|
|
|
75
|
-
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
75
|
+
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のための国際化ツールを提供するコアパッケージ。
|
|
76
76
|
|
|
77
77
|
- **next-intlayer**
|
|
78
78
|
|
|
@@ -446,7 +446,7 @@ module.exports = homeContent;
|
|
|
446
446
|
}
|
|
447
447
|
```
|
|
448
448
|
|
|
449
|
-
詳細なコンテンツ宣言については、[コンテンツ宣言ガイド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
449
|
+
詳細なコンテンツ宣言については、[コンテンツ宣言ガイド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
450
450
|
|
|
451
451
|
### ステップ7: コード内でコンテンツを利用する
|
|
452
452
|
|
|
@@ -1491,7 +1491,7 @@ Intlayerでの開発体験を向上させるために、公式の **Intlayer VS
|
|
|
1491
1491
|
## 追加リソース
|
|
1492
1492
|
|
|
1493
1493
|
- **Intlayer ドキュメント:** [GitHub リポジトリ](https://github.com/aymericzip/intlayer)
|
|
1494
|
-
- **辞書ガイド:** [辞書](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
1494
|
+
- **辞書ガイド:** [辞書](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)
|
|
1495
1495
|
- **設定ドキュメント:** [設定ガイド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/configuration.md)
|
|
1496
1496
|
|
|
1497
1497
|
このガイドに従うことで、Next.js アプリケーションの Page Router を使用して Intlayer を効果的に統合し、ウェブプロジェクトに対して堅牢でスケーラブルな国際化サポートを実現できます。
|
|
@@ -356,7 +356,7 @@ module.exports = appContent;
|
|
|
356
356
|
}
|
|
357
357
|
```
|
|
358
358
|
|
|
359
|
-
> コンテンツ宣言の詳細については、[Intlayerのコンテンツドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
359
|
+
> コンテンツ宣言の詳細については、[Intlayerのコンテンツドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
360
360
|
|
|
361
361
|
---
|
|
362
362
|
|
|
@@ -89,7 +89,7 @@ bunx intlayer init
|
|
|
89
89
|
- **intlayer**
|
|
90
90
|
|
|
91
91
|
- **intlayer**
|
|
92
|
-
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
92
|
+
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のための国際化ツールを提供するコアパッケージ。
|
|
93
93
|
|
|
94
94
|
- **react-intlayer**
|
|
95
95
|
IntlayerをReactアプリケーションと統合するパッケージです。Reactの国際化のためのコンテキストプロバイダーとフックを提供します。
|
|
@@ -289,7 +289,7 @@ export default pageContent;
|
|
|
289
289
|
|
|
290
290
|
> コンテンツ宣言は、`contentDir` ディレクトリ(デフォルトは `./app`)に含まれている限り、アプリケーションのどこにでも定義できます。また、コンテンツ宣言ファイルの拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致する必要があります。
|
|
291
291
|
|
|
292
|
-
> 詳細については、[コンテンツ宣言ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
292
|
+
> 詳細については、[コンテンツ宣言ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
293
293
|
|
|
294
294
|
### ステップ7: ロケール対応コンポーネントの作成
|
|
295
295
|
|
|
@@ -587,7 +587,7 @@ Intlayerでの開発体験を向上させるために、公式の **Intlayer VS
|
|
|
587
587
|
- [React Router v7 ドキュメント](https://reactrouter.com/)
|
|
588
588
|
- [useIntlayer フック](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/packages/react-intlayer/useIntlayer.md)
|
|
589
589
|
- [useLocale フック](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/packages/react-intlayer/useLocale.md)
|
|
590
|
-
- [コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
590
|
+
- [コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)
|
|
591
591
|
- [設定](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/configuration.md)
|
|
592
592
|
|
|
593
593
|
この包括的なガイドは、IntlayerをReact Router v7と統合し、ロケール対応のルーティングとTypeScriptサポートを備えた完全に国際化されたアプリケーションを構築するために必要なすべてを提供します。
|
|
@@ -104,7 +104,7 @@ bunx intlayer init
|
|
|
104
104
|
- **intlayer**
|
|
105
105
|
|
|
106
106
|
- **intlayer**
|
|
107
|
-
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
107
|
+
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のための国際化ツールを提供するコアパッケージ。
|
|
108
108
|
|
|
109
109
|
- **react-intlayer**
|
|
110
110
|
IntlayerをReactアプリケーションと統合するパッケージです。Reactの国際化のためのコンテキストプロバイダーとフックを提供します。
|
|
@@ -427,7 +427,7 @@ export default aboutContent;
|
|
|
427
427
|
|
|
428
428
|
> コンテンツ宣言は、`contentDir` ディレクトリ(デフォルトは `./app`)に含まれている限り、アプリケーションのどこにでも定義できます。また、コンテンツ宣言ファイルの拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致する必要があります。
|
|
429
429
|
|
|
430
|
-
> 詳細については、[コンテンツ宣言ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
430
|
+
> 詳細については、[コンテンツ宣言ドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
431
431
|
|
|
432
432
|
> アプリケーションが既に存在する場合は、[Intlayer コンパイラ](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/compiler.md) と [抽出コマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/cli/extract.md) を組み合わせて、1 秒で何千ものコンポーネントを変換できます。
|
|
433
433
|
|
|
@@ -657,7 +657,7 @@ Intlayerでの開発体験を向上させるために、公式の **Intlayer VS
|
|
|
657
657
|
- [React Router fs-routes ドキュメント](https://reactrouter.com/how-to/file-route-conventions)
|
|
658
658
|
- [useIntlayer フック](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/packages/react-intlayer/useIntlayer.md)
|
|
659
659
|
- [useLocale フック](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/packages/react-intlayer/useLocale.md)
|
|
660
|
-
- [コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
660
|
+
- [コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)
|
|
661
661
|
- [設定](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/configuration.md)
|
|
662
662
|
|
|
663
663
|
この包括的なガイドは、ファイルシステムベースのルーティングを使用してIntlayerをReact Router v7と統合し、ロケール対応のルーティングとTypeScriptサポートを備えた完全に国際化されたアプリケーションを構築するために必要なすべてを提供します。
|
|
@@ -94,7 +94,7 @@ bunx intlayer init
|
|
|
94
94
|
|
|
95
95
|
- **intlayer**
|
|
96
96
|
|
|
97
|
-
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
97
|
+
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のための国際化ツールを提供するコアパッケージ。
|
|
98
98
|
|
|
99
99
|
- **preact-intlayer**
|
|
100
100
|
IntlayerをPreactアプリケーションと統合するパッケージです。Preactの国際化のためのコンテキストプロバイダーとフックを提供します。
|
|
@@ -421,7 +421,7 @@ module.exports = appContent;
|
|
|
421
421
|
|
|
422
422
|
> コンテンツ宣言は、`contentDir` ディレクトリ(デフォルトは `./src`)に含まれている限り、アプリケーションのどこにでも定義できます。また、コンテンツ宣言ファイルの拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致する必要があります。
|
|
423
423
|
|
|
424
|
-
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
424
|
+
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
425
425
|
|
|
426
426
|
> コンテンツファイルに TSX コードが含まれている場合は、`import { h } from "preact";` をインポートするか、JSX プラグマが Preact 用に正しく設定されていることを確認する必要があります。
|
|
427
427
|
|
|
@@ -102,7 +102,7 @@ bunx intlayer init
|
|
|
102
102
|
|
|
103
103
|
- **intlayer**
|
|
104
104
|
|
|
105
|
-
国際化のための設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
105
|
+
国際化のための設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のツールを提供するコアパッケージ。
|
|
106
106
|
|
|
107
107
|
- **solid-intlayer**
|
|
108
108
|
IntlayerをSolidアプリケーションと統合するパッケージです。Solidの国際化のためのコンテキストプロバイダーとフックを提供します。
|
|
@@ -289,7 +289,7 @@ module.exports = appContent;
|
|
|
289
289
|
|
|
290
290
|
> コンテンツ宣言は、アプリケーション内のどこにでも定義できます。`contentDir` ディレクトリ(デフォルトは `./src`)に含まれている限り有効です。また、コンテンツ宣言ファイルの拡張子は(デフォルトで `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致している必要があります。
|
|
291
291
|
|
|
292
|
-
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
292
|
+
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
293
293
|
|
|
294
294
|
### ステップ5: Intlayerをコードで利用する
|
|
295
295
|
|
|
@@ -95,7 +95,7 @@ bunx intlayer init
|
|
|
95
95
|
|
|
96
96
|
- **intlayer**
|
|
97
97
|
|
|
98
|
-
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
98
|
+
設定管理、翻訳、[コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)、トランスパイル、および[CLIコマンド](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/intlayer_cli.md)のための国際化ツールを提供するコアパッケージです。
|
|
99
99
|
|
|
100
100
|
- **vue-intlayer**
|
|
101
101
|
IntlayerをVueアプリケーションに統合するパッケージです。Vueの国際化のためのコンテキストプロバイダーとコンポーザブルを提供します。
|
|
@@ -430,7 +430,7 @@ module.exports = appContent;
|
|
|
430
430
|
|
|
431
431
|
> コンテンツ宣言は、`contentDir` ディレクトリ(デフォルトは `./src`)に含まれている限り、アプリケーションのどこにでも定義できます。また、コンテンツ宣言のファイル拡張子(デフォルトは `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)に一致している必要があります。
|
|
432
432
|
|
|
433
|
-
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
433
|
+
> 詳細については、[コンテンツ宣言のドキュメント](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)を参照してください。
|
|
434
434
|
|
|
435
435
|
### ステップ5: コード内でIntlayerを利用する
|
|
436
436
|
|
package/docs/ja/introduction.md
CHANGED
|
@@ -157,7 +157,7 @@ Intlayerは、現代のウェブ開発のニーズに応える多彩な機能を
|
|
|
157
157
|
|
|
158
158
|
コードの近くに多言語コンテンツを整理し、一貫性と保守性を保ちましょう。
|
|
159
159
|
|
|
160
|
-
- **[はじめに](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
160
|
+
- **[はじめに](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)**
|
|
161
161
|
Intlayerでコンテンツを宣言する基本を学びましょう。
|
|
162
162
|
|
|
163
163
|
- **[翻訳](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/translation.md)**
|
|
@@ -69,7 +69,7 @@ history:
|
|
|
69
69
|
|
|
70
70
|
## 辞書
|
|
71
71
|
|
|
72
|
-
すべての辞書オブジェクトは型の安全性を確保し、実行時エラーを防ぐために構造化されたコンテンツファイル内で宣言する必要があります。セットアップ手順は[こちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
72
|
+
すべての辞書オブジェクトは型の安全性を確保し、実行時エラーを防ぐために構造化されたコンテンツファイル内で宣言する必要があります。セットアップ手順は[こちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)で確認できます。以下はコンテンツ宣言の例です:
|
|
73
73
|
|
|
74
74
|
```typescript fileName="component.content.ts" codeFormat="typescript"
|
|
75
75
|
import { t, type Dictionary } from "intlayer";
|
|
@@ -69,7 +69,7 @@ Next.js アプリケーションでクライアントサイドコンポーネン
|
|
|
69
69
|
|
|
70
70
|
すべてのコンテンツキーがコンテンツ宣言ファイル内で定義されていることは、ランタイムエラーを防ぎ、型の安全性を確保するために非常に重要です。この方法は、コンパイル時の検証のためにTypeScriptとの統合も容易にします。
|
|
71
71
|
|
|
72
|
-
コンテンツ宣言ファイルの設定手順は[こちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
72
|
+
コンテンツ宣言ファイルの設定手順は[こちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)で確認できます。
|
|
73
73
|
|
|
74
74
|
## Next.jsでの使用例
|
|
75
75
|
|
|
@@ -68,7 +68,7 @@ history:
|
|
|
68
68
|
|
|
69
69
|
## 辞書
|
|
70
70
|
|
|
71
|
-
すべての辞書オブジェクトは型の安全性を確保し、実行時エラーを防ぐために構造化されたコンテンツファイル内で宣言する必要があります。セットアップ手順は[こちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
71
|
+
すべての辞書オブジェクトは型の安全性を確保し、実行時エラーを防ぐために構造化されたコンテンツファイル内で宣言する必要があります。セットアップ手順は[こちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)で確認できます。以下はコンテンツ宣言の例です:
|
|
72
72
|
|
|
73
73
|
```typescript fileName="./component.content.ts" contentDeclarationFormat="typescript"
|
|
74
74
|
import { t, type Dictionary } from "intlayer";
|
|
@@ -70,7 +70,7 @@ history:
|
|
|
70
70
|
|
|
71
71
|
## 辞書
|
|
72
72
|
|
|
73
|
-
すべての辞書キーは、型安全性を高めエラーを防ぐためにコンテンツ宣言ファイル内で宣言する必要があります。[設定手順はこちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
73
|
+
すべての辞書キーは、型安全性を高めエラーを防ぐためにコンテンツ宣言ファイル内で宣言する必要があります。[設定手順はこちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)で確認できます。
|
|
74
74
|
|
|
75
75
|
## Reactでの使用例
|
|
76
76
|
|
|
@@ -69,7 +69,7 @@ history:
|
|
|
69
69
|
|
|
70
70
|
## 辞書
|
|
71
71
|
|
|
72
|
-
すべての辞書キーは型安全性を高め、エラーを防ぐためにコンテンツ宣言ファイル内で宣言されている必要があります。セットアップ手順は[こちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
72
|
+
すべての辞書キーは型安全性を高め、エラーを防ぐためにコンテンツ宣言ファイル内で宣言されている必要があります。セットアップ手順は[こちら](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)で確認できます。
|
|
73
73
|
|
|
74
74
|
## Reactでの使用例
|
|
75
75
|
|
|
@@ -66,10 +66,10 @@ npm i -D @intlayer/sync-json-plugin
|
|
|
66
66
|
`intlayer.config.ts`にプラグインを追加し、既存のJSON構造を指定します。
|
|
67
67
|
|
|
68
68
|
```ts fileName="intlayer.config.ts"
|
|
69
|
-
import {
|
|
69
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
70
70
|
import { syncJSON } from "@intlayer/sync-json-plugin";
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
const config: IntlayerConfig = {
|
|
73
73
|
internationalization: {
|
|
74
74
|
locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
|
|
75
75
|
defaultLocale: Locales.ENGLISH,
|
|
@@ -82,7 +82,9 @@ export default defineConfig({
|
|
|
82
82
|
source: ({ key, locale }) => `./locales/${locale}/${key}.json`,
|
|
83
83
|
}),
|
|
84
84
|
],
|
|
85
|
-
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export default config;
|
|
86
88
|
```
|
|
87
89
|
|
|
88
90
|
代替案:ロケールごとに単一ファイル(i18next/react-intlのセットアップで一般的):
|
|
@@ -147,10 +149,10 @@ syncJSON({
|
|
|
147
149
|
- 同じ優先度のプラグインは、設定に記載された順序で処理されます
|
|
148
150
|
|
|
149
151
|
```ts fileName="intlayer.config.ts"
|
|
150
|
-
import {
|
|
152
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
151
153
|
import { syncJSON } from "@intlayer/sync-json-plugin";
|
|
152
154
|
|
|
153
|
-
|
|
155
|
+
const config: IntlayerConfig = {
|
|
154
156
|
internationalization: {
|
|
155
157
|
locales: [Locales.ENGLISH, Locales.FRENCH],
|
|
156
158
|
defaultLocale: Locales.ENGLISH,
|
|
@@ -181,7 +183,9 @@ export default defineConfig({
|
|
|
181
183
|
priority: 1,
|
|
182
184
|
}),
|
|
183
185
|
],
|
|
184
|
-
}
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export default config;
|
|
185
189
|
```
|
|
186
190
|
|
|
187
191
|
### コンフリクト解決
|
package/docs/ja/roadmap.md
CHANGED
|
@@ -39,7 +39,7 @@ Intlayerは、アプリケーション全体でコンテンツを宣言、管理
|
|
|
39
39
|
|
|
40
40
|
> リソース:
|
|
41
41
|
>
|
|
42
|
-
> - [コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/
|
|
42
|
+
> - [コンテンツ宣言](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ja/dictionary/content_file.md)
|
|
43
43
|
|
|
44
44
|
### 2. 国際化
|
|
45
45
|
|
|
@@ -77,7 +77,7 @@ const MyComponent = () => {
|
|
|
77
77
|
|
|
78
78
|
이 훅은 로케일 감지를 관리하고 현재 로케일에 대한 콘텐츠를 반환합니다. 이 훅을 사용하면 마크다운 해석, 복수형 관리 등을 수행할 수 있습니다.
|
|
79
79
|
|
|
80
|
-
> Intlayer의 모든 기능을 보려면 [사전 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
80
|
+
> Intlayer의 모든 기능을 보려면 [사전 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 읽어보세요.
|
|
81
81
|
|
|
82
82
|
## 원격 콘텐츠
|
|
83
83
|
|
package/docs/ko/index.md
CHANGED
|
@@ -55,7 +55,7 @@ Intlayer는 애플리케이션 번역을 위한 유연하고 현대적인 접근
|
|
|
55
55
|
|
|
56
56
|
코드와 가까운 곳에 다국어 콘텐츠를 조직하여 모든 것을 일관되고 유지 관리하기 쉽게 만드세요.
|
|
57
57
|
|
|
58
|
-
- **[시작하기](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
58
|
+
- **[시작하기](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)**
|
|
59
59
|
Intlayer에서 콘텐츠를 선언하는 기본을 배워보세요.
|
|
60
60
|
|
|
61
61
|
- **[번역](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/translation.md)**
|
|
@@ -67,7 +67,7 @@ yarn add react react-dom react-intlayer @astrojs/react
|
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
- **intlayer**
|
|
70
|
-
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
70
|
+
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md), 트랜스파일링 및 [CLI 명령어](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/intlayer_cli.md)를 제공하는 국제화 도구의 핵심 패키지입니다.
|
|
71
71
|
|
|
72
72
|
- **astro-intlayer**
|
|
73
73
|
Astro와 Intlayer를 [Vite 번들러](https://vite.dev/guide/why.html#why-bundle-for-production)와 통합하기 위한 Astro 통합 플러그인과 사용자의 선호 로케일 감지, 쿠키 관리, URL 리디렉션 처리를 위한 미들웨어를 포함합니다.
|
|
@@ -138,7 +138,7 @@ export default appContent;
|
|
|
138
138
|
|
|
139
139
|
> 콘텐츠 선언은 애플리케이션 내 어디에서나 정의할 수 있으며, `contentDir` 디렉토리(기본값은 `./src`)에 포함되기만 하면 됩니다. 그리고 콘텐츠 선언 파일 확장자(기본값은 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
140
140
|
|
|
141
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
141
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
142
142
|
|
|
143
143
|
### 5단계: Astro에서 콘텐츠 사용하기
|
|
144
144
|
|
|
@@ -68,7 +68,7 @@ bunx intlayer init
|
|
|
68
68
|
|
|
69
69
|
- **intlayer**
|
|
70
70
|
|
|
71
|
-
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
71
|
+
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md), 트랜스파일링 및 [CLI 명령](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/intlayer_cli.md)을 위한 국제화 도구를 제공하는 핵심 패키지입니다.
|
|
72
72
|
|
|
73
73
|
- **react-intlayer**
|
|
74
74
|
|
|
@@ -255,7 +255,7 @@ module.exports = appContent;
|
|
|
255
255
|
|
|
256
256
|
> 콘텐츠 선언은 애플리케이션 어디에서나 정의할 수 있으며, `contentDir` 디렉토리(기본값: `./src`)에 포함되고 콘텐츠 선언 파일 확장자(기본값: `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
257
257
|
|
|
258
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
258
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
259
259
|
|
|
260
260
|
> 콘텐츠 파일에 TSX 코드가 포함된 경우, 콘텐츠 파일에 `import React from "react";`를 가져오는 것을 고려해야 합니다.
|
|
261
261
|
|
|
@@ -223,7 +223,7 @@ module.exports = indexContent;
|
|
|
223
223
|
|
|
224
224
|
> 콘텐츠 선언은 애플리케이션 내 어디에서나 정의할 수 있으며, `contentDir` 디렉토리(기본값은 `./src`)에 포함되어야 합니다. 그리고 콘텐츠 선언 파일 확장자(기본값은 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
225
225
|
|
|
226
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
226
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
227
227
|
|
|
228
228
|
### Express 애플리케이션 설정
|
|
229
229
|
|
|
@@ -369,7 +369,7 @@ module.exports = appContent;
|
|
|
369
369
|
}
|
|
370
370
|
```
|
|
371
371
|
|
|
372
|
-
> 콘텐츠 선언에 대한 자세한 내용은 [Intlayer의 콘텐츠 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
372
|
+
> 콘텐츠 선언에 대한 자세한 내용은 [Intlayer의 콘텐츠 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
373
373
|
|
|
374
374
|
---
|
|
375
375
|
|
|
@@ -70,7 +70,7 @@ yarn add intlayer next-intlayer
|
|
|
70
70
|
|
|
71
71
|
- **intlayer**
|
|
72
72
|
|
|
73
|
-
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
73
|
+
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md), 트랜스파일링 및 [CLI 명령어](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/intlayer_cli.md)를 위한 국제화 도구를 제공하는 핵심 패키지입니다.
|
|
74
74
|
|
|
75
75
|
- **next-intlayer**
|
|
76
76
|
|
|
@@ -437,7 +437,7 @@ module.exports = pageContent;
|
|
|
437
437
|
|
|
438
438
|
> 콘텐츠 선언은 애플리케이션 내 어디서든 `contentDir` 디렉토리(기본값 `./src`)에 포함되기만 하면 정의할 수 있습니다. 그리고 콘텐츠 선언 파일 확장자(기본값 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
439
439
|
|
|
440
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
440
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
441
441
|
|
|
442
442
|
### 7단계: 코드에서 콘텐츠 활용하기
|
|
443
443
|
|