@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
|
@@ -76,7 +76,7 @@ bunx intlayer init
|
|
|
76
76
|
|
|
77
77
|
- **intlayer**
|
|
78
78
|
|
|
79
|
-
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
79
|
+
구성 관리, 번역, [콘텐츠 선언](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)를 위한 국제화 도구를 제공하는 핵심 패키지입니다.
|
|
80
80
|
|
|
81
81
|
- **next-intlayer**
|
|
82
82
|
|
|
@@ -433,7 +433,7 @@ module.exports = pageContent;
|
|
|
433
433
|
|
|
434
434
|
> 콘텐츠 선언은 애플리케이션 내 어디에서든 정의할 수 있으며, `contentDir` 디렉토리(기본값 `./src`)에 포함되기만 하면 됩니다. 그리고 콘텐츠 선언 파일 확장자(기본값 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
435
435
|
|
|
436
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
436
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
437
437
|
|
|
438
438
|
### 6단계: 코드에서 콘텐츠 활용하기
|
|
439
439
|
|
|
@@ -441,7 +441,7 @@ module.exports = pageContent;
|
|
|
441
441
|
|
|
442
442
|
> 애플리케이션 내 어디에서든 `contentDir` 디렉토리(기본값은 `./src`)에 포함되기만 하면 콘텐츠 선언을 정의할 수 있습니다. 그리고 콘텐츠 선언 파일 확장자(기본값은 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
443
443
|
|
|
444
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
444
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
445
445
|
|
|
446
446
|
### 6단계: 코드에서 콘텐츠 활용하기
|
|
447
447
|
|
|
@@ -70,7 +70,7 @@ bunx intlayer init
|
|
|
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
|
|
|
@@ -472,7 +472,7 @@ module.exports = homeContent;
|
|
|
472
472
|
}
|
|
473
473
|
```
|
|
474
474
|
|
|
475
|
-
자세한 내용은 [콘텐츠 선언 가이드](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
475
|
+
자세한 내용은 [콘텐츠 선언 가이드](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
476
476
|
|
|
477
477
|
### 7단계: 코드에서 콘텐츠 활용하기
|
|
478
478
|
|
|
@@ -1516,7 +1516,7 @@ Intlayer와 함께 개발 경험을 향상시키기 위해 공식 **Intlayer VS
|
|
|
1516
1516
|
## 추가 자료
|
|
1517
1517
|
|
|
1518
1518
|
- **Intlayer 문서:** [GitHub 저장소](https://github.com/aymericzip/intlayer)
|
|
1519
|
-
- **사전 가이드:** [사전](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
1519
|
+
- **사전 가이드:** [사전](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)
|
|
1520
1520
|
- **설정 문서:** [설정 가이드](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/configuration.md)
|
|
1521
1521
|
|
|
1522
1522
|
이 가이드를 따르면 Next.js 애플리케이션에서 페이지 라우터를 사용하여 Intlayer를 효과적으로 통합할 수 있으며, 웹 프로젝트에 강력하고 확장 가능한 국제화 지원을 제공할 수 있습니다.
|
|
@@ -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
|
|
|
@@ -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/ko/dictionary/
|
|
92
|
+
구성 관리, 번역, [콘텐츠 선언](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)를 위한 국제화 도구를 제공하는 핵심 패키지입니다.
|
|
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/ko/dictionary/
|
|
292
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
293
293
|
|
|
294
294
|
### 7단계: 로케일 인식 컴포넌트 생성
|
|
295
295
|
|
|
@@ -583,7 +583,7 @@ Intlayer 개발 경험을 향상시키기 위해 공식 **Intlayer VS 코드 확
|
|
|
583
583
|
- [React Router v7 문서](https://reactrouter.com/)
|
|
584
584
|
- [useIntlayer 훅](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/packages/react-intlayer/useIntlayer.md)
|
|
585
585
|
- [useLocale 훅](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/packages/react-intlayer/useLocale.md)
|
|
586
|
-
- [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
586
|
+
- [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)
|
|
587
587
|
- [설정](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/configuration.md)
|
|
588
588
|
|
|
589
589
|
이 포괄적인 가이드는 Intlayer를 React Router v7과 통합하여 로케일 인식 라우팅과 TypeScript 지원이 포함된 완전한 국제화 애플리케이션을 구축하는 데 필요한 모든 것을 제공합니다.
|
|
@@ -88,7 +88,7 @@ bunx intlayer init
|
|
|
88
88
|
- **intlayer**
|
|
89
89
|
|
|
90
90
|
- **intlayer**
|
|
91
|
-
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
91
|
+
구성 관리, 번역, [콘텐츠 선언](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)를 위한 국제화 도구를 제공하는 핵심 패키지입니다.
|
|
92
92
|
|
|
93
93
|
- **react-intlayer**
|
|
94
94
|
Intlayer를 React 애플리케이션과 통합하는 패키지로, React 국제화를 위한 컨텍스트 제공자와 훅을 제공합니다.
|
|
@@ -259,7 +259,7 @@ export default pageContent;
|
|
|
259
259
|
|
|
260
260
|
> 콘텐츠 선언은 애플리케이션 내 어디서든 정의할 수 있으며, `contentDir` 디렉토리(기본값: `./app`)에 포함되면 자동으로 인식됩니다. 또한 콘텐츠 선언 파일 확장자(기본값: `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
261
261
|
|
|
262
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
262
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
263
263
|
|
|
264
264
|
### 7단계: 로케일 인식 컴포넌트 생성
|
|
265
265
|
|
|
@@ -528,7 +528,7 @@ Intlayer 개발 경험을 향상시키기 위해 공식 **Intlayer VS 코드 확
|
|
|
528
528
|
- [React Router v7 문서](https://reactrouter.com/)
|
|
529
529
|
- [useIntlayer 훅](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/packages/react-intlayer/useIntlayer.md)
|
|
530
530
|
- [useLocale 훅](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/packages/react-intlayer/useLocale.md)
|
|
531
|
-
- [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
531
|
+
- [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)
|
|
532
532
|
- [설정](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/configuration.md)
|
|
533
533
|
|
|
534
534
|
이 포괄적인 가이드는 Intlayer를 React Router v7과 통합하여 로케일 인식 라우팅과 TypeScript 지원이 포함된 완전한 국제화 애플리케이션을 구축하는 데 필요한 모든 것을 제공합니다.
|
|
@@ -425,7 +425,7 @@ module.exports = appContent;
|
|
|
425
425
|
|
|
426
426
|
> 콘텐츠 선언은 애플리케이션 내 어디에서든 `contentDir` 디렉토리(기본값은 `./src`)에 포함되기만 하면 정의할 수 있습니다. 그리고 콘텐츠 선언 파일 확장자(기본값은 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
427
427
|
|
|
428
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
428
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
429
429
|
|
|
430
430
|
> 콘텐츠 파일에 TSX 코드가 포함된 경우, `import { h } from "preact";`를 임포트하거나 JSX 프래그마가 Preact에 맞게 올바르게 설정되어 있는지 확인해야 할 수 있습니다.
|
|
431
431
|
|
|
@@ -104,7 +104,7 @@ bunx intlayer init
|
|
|
104
104
|
|
|
105
105
|
- **intlayer**
|
|
106
106
|
|
|
107
|
-
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
107
|
+
구성 관리, 번역, [콘텐츠 선언](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)를 위한 국제화 도구를 제공하는 핵심 패키지입니다.
|
|
108
108
|
|
|
109
109
|
- **solid-intlayer**
|
|
110
110
|
Intlayer를 Solid 애플리케이션과 통합하는 패키지입니다. Solid 국제화를 위한 컨텍스트 제공자와 훅을 제공합니다.
|
|
@@ -264,7 +264,7 @@ module.exports = appContent;
|
|
|
264
264
|
|
|
265
265
|
> 콘텐츠 선언은 애플리케이션 내 어디에서든 `contentDir` 디렉토리(기본값은 `./src`)에 포함되기만 하면 정의할 수 있습니다. 그리고 콘텐츠 선언 파일 확장자(기본값은 `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
266
266
|
|
|
267
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
267
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
268
268
|
|
|
269
269
|
### 5단계: 코드에서 Intlayer 활용하기
|
|
270
270
|
|
|
@@ -95,7 +95,7 @@ bunx intlayer init
|
|
|
95
95
|
|
|
96
96
|
- **intlayer**
|
|
97
97
|
|
|
98
|
-
구성 관리, 번역, [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
98
|
+
구성 관리, 번역, [콘텐츠 선언](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)를 위한 국제화 도구를 제공하는 핵심 패키지입니다.
|
|
99
99
|
|
|
100
100
|
- **vue-intlayer**
|
|
101
101
|
Intlayer를 Vue 애플리케이션과 통합하는 패키지로, Vue 국제화를 위한 컨텍스트 프로바이더와 컴포저블을 제공합니다.
|
|
@@ -434,7 +434,7 @@ module.exports = appContent;
|
|
|
434
434
|
|
|
435
435
|
> 귀하의 콘텐츠 선언은 애플리케이션 내 어디에서나 정의할 수 있으며, `contentDir` 디렉토리(기본값: `./src`)에 포함되기만 하면 됩니다. 또한 콘텐츠 선언 파일 확장자(기본값: `.content.{json,ts,tsx,js,jsx,mjs,cjs}`)와 일치해야 합니다.
|
|
436
436
|
|
|
437
|
-
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
437
|
+
> 자세한 내용은 [콘텐츠 선언 문서](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)를 참조하세요.
|
|
438
438
|
|
|
439
439
|
### 5단계: 코드에서 Intlayer 활용하기
|
|
440
440
|
|
package/docs/ko/introduction.md
CHANGED
|
@@ -158,7 +158,7 @@ Intlayer는 현대 웹 개발의 요구에 맞춘 다양한 기능을 제공합
|
|
|
158
158
|
|
|
159
159
|
다국어 콘텐츠를 코드 가까이에 정리하여 모든 것을 일관되고 유지 관리하기 쉽게 만드세요.
|
|
160
160
|
|
|
161
|
-
- **[시작하기](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
161
|
+
- **[시작하기](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)**
|
|
162
162
|
Intlayer에서 콘텐츠를 선언하는 기본 사항을 배우세요.
|
|
163
163
|
|
|
164
164
|
- **[번역](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/translation.md)**
|
|
@@ -69,7 +69,7 @@ history:
|
|
|
69
69
|
|
|
70
70
|
## 사전
|
|
71
71
|
|
|
72
|
-
모든 사전 객체는 타입 안전성을 보장하고 런타임 오류를 방지하기 위해 구조화된 콘텐츠 파일에 선언되어야 합니다. [설정 지침은 여기](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
72
|
+
모든 사전 객체는 타입 안전성을 보장하고 런타임 오류를 방지하기 위해 구조화된 콘텐츠 파일에 선언되어야 합니다. [설정 지침은 여기](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/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/ko/dictionary/
|
|
72
|
+
콘텐츠 선언 파일 설정에 대한 지침은 [여기](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/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/ko/dictionary/
|
|
71
|
+
모든 사전 객체는 타입 안전성을 보장하고 런타임 오류를 방지하기 위해 구조화된 콘텐츠 파일에 선언되어야 합니다. [설정 지침은 여기](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/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/ko/dictionary/
|
|
73
|
+
모든 사전 키는 타입 안전성을 높이고 오류를 방지하기 위해 콘텐츠 선언 파일 내에 선언되어야 합니다. [설정 지침은 여기에서 확인할 수 있습니다](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/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/ko/dictionary/
|
|
72
|
+
모든 사전 키는 타입 안전성을 높이고 오류를 방지하기 위해 콘텐츠 선언 파일 내에 선언되어야 합니다. [설정 지침은 여기에서 확인할 수 있습니다](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/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/ko/roadmap.md
CHANGED
|
@@ -39,7 +39,7 @@ Intlayer는 애플리케이션 전반에서 콘텐츠를 선언, 관리 및 업
|
|
|
39
39
|
|
|
40
40
|
> 참고 자료:
|
|
41
41
|
>
|
|
42
|
-
> - [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/
|
|
42
|
+
> - [콘텐츠 선언](https://github.com/aymericzip/intlayer/blob/main/docs/docs/ko/dictionary/content_file.md)
|
|
43
43
|
|
|
44
44
|
### 2. 국제화
|
|
45
45
|
|
package/docs/pl/configuration.md
CHANGED
|
@@ -732,8 +732,9 @@ Oto kilka typowych przykładów konfiguracji dla nowej struktury routingu w wers
|
|
|
732
732
|
**Podstawowa konfiguracja (domyślna)**:
|
|
733
733
|
|
|
734
734
|
```typescript
|
|
735
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
735
736
|
// intlayer.config.ts
|
|
736
|
-
|
|
737
|
+
const config: IntlayerConfig = {
|
|
737
738
|
internationalization: {
|
|
738
739
|
locales: ["en", "fr", "es"],
|
|
739
740
|
defaultLocale: "en",
|
|
@@ -742,16 +743,18 @@ export default defineConfig({
|
|
|
742
743
|
mode: "prefix-no-default",
|
|
743
744
|
storage: "localStorage",
|
|
744
745
|
headerName: "x-intlayer-locale",
|
|
745
|
-
basePath: "",
|
|
746
746
|
},
|
|
747
|
-
}
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
export default config;
|
|
748
750
|
```
|
|
749
751
|
|
|
750
752
|
**Konfiguracja zgodna z RODO**:
|
|
751
753
|
|
|
752
754
|
```typescript
|
|
755
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
753
756
|
// intlayer.config.ts
|
|
754
|
-
|
|
757
|
+
const config: IntlayerConfig = {
|
|
755
758
|
internationalization: {
|
|
756
759
|
locales: ["en", "fr", "es"],
|
|
757
760
|
defaultLocale: "en",
|
|
@@ -771,35 +774,36 @@ export default defineConfig({
|
|
|
771
774
|
httpOnly: false,
|
|
772
775
|
},
|
|
773
776
|
],
|
|
774
|
-
headerName: "x-intlayer-locale",
|
|
775
|
-
basePath: "",
|
|
776
777
|
},
|
|
777
|
-
}
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
export default config;
|
|
778
781
|
```
|
|
779
782
|
|
|
780
783
|
**Tryb parametrów wyszukiwania**:
|
|
781
784
|
|
|
782
785
|
```typescript
|
|
786
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
783
787
|
// intlayer.config.ts
|
|
784
|
-
|
|
788
|
+
const config: IntlayerConfig = {
|
|
785
789
|
internationalization: {
|
|
786
790
|
locales: ["en", "fr", "es"],
|
|
787
791
|
defaultLocale: "en",
|
|
788
792
|
},
|
|
789
793
|
routing: {
|
|
790
794
|
mode: "search-params",
|
|
791
|
-
storage: "localStorage",
|
|
792
|
-
headerName: "x-intlayer-locale",
|
|
793
|
-
basePath: "",
|
|
794
795
|
},
|
|
795
|
-
}
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
export default config;
|
|
796
799
|
```
|
|
797
800
|
|
|
798
801
|
**Tryb bez prefiksu z niestandardową pamięcią**:
|
|
799
802
|
|
|
800
803
|
```typescript
|
|
804
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
801
805
|
// intlayer.config.ts
|
|
802
|
-
|
|
806
|
+
const config: IntlayerConfig = {
|
|
803
807
|
internationalization: {
|
|
804
808
|
locales: ["en", "fr", "es"],
|
|
805
809
|
defaultLocale: "en",
|
|
@@ -808,12 +812,11 @@ export default defineConfig({
|
|
|
808
812
|
mode: "no-prefix",
|
|
809
813
|
storage: {
|
|
810
814
|
type: "sessionStorage",
|
|
811
|
-
name: "app-locale",
|
|
812
815
|
},
|
|
813
|
-
headerName: "x-custom-locale",
|
|
814
|
-
basePath: "/my-app",
|
|
815
816
|
},
|
|
816
|
-
}
|
|
817
|
+
};
|
|
818
|
+
|
|
819
|
+
export default config;
|
|
817
820
|
```
|
|
818
821
|
|
|
819
822
|
---
|
|
@@ -121,7 +121,7 @@ bunx intlayer init
|
|
|
121
121
|
|
|
122
122
|
- **intlayer**
|
|
123
123
|
|
|
124
|
-
Podstawowy pakiet, który dostarcza narzędzia do internacjonalizacji dla zarządzania konfiguracją, tłumaczeń, [deklaracji treści](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/
|
|
124
|
+
Podstawowy pakiet, który dostarcza narzędzia do internacjonalizacji dla zarządzania konfiguracją, tłumaczeń, [deklaracji treści](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/content_file.md), transpiliacji oraz [poleceń CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/intlayer_cli.md).
|
|
125
125
|
|
|
126
126
|
- **react-intlayer**
|
|
127
127
|
Pakiet integrujący Intlayer z aplikacją React. Zapewnia dostawców kontekstu oraz hooki do internacjonalizacji w React.
|
|
@@ -302,7 +302,7 @@ export default appContent;
|
|
|
302
302
|
|
|
303
303
|
> Twoje deklaracje zawartości mogą być definiowane w dowolnym miejscu w Twojej aplikacji, pod warunkiem, że zostaną umieszczone w katalogu `contentDir` (domyślnie `./app`). I będą miały rozszerzenie pliku deklaracji zawartości (domyślnie `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
|
|
304
304
|
|
|
305
|
-
> Po więcej szczegółów odsyłamy do [dokumentacji deklaracji zawartości](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/
|
|
305
|
+
> Po więcej szczegółów odsyłamy do [dokumentacji deklaracji zawartości](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/content_file.md).
|
|
306
306
|
|
|
307
307
|
### Krok 8: Tworzenie komponentów i hooków uwzględniających lokalizację
|
|
308
308
|
|
|
@@ -794,5 +794,5 @@ Aby pójść dalej, możesz zaimplementować [edytor wizualny](https://github.co
|
|
|
794
794
|
- [Dokumentacja Tanstack Start](https://reactrouter.com/)
|
|
795
795
|
- [Hook useIntlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/packages/react-intlayer/useIntlayer.md)
|
|
796
796
|
- [useLocale hook](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/packages/react-intlayer/useLocale.md)
|
|
797
|
-
- [Deklaracja treści](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/
|
|
797
|
+
- [Deklaracja treści](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/dictionary/content_file.md)
|
|
798
798
|
- [Konfiguracja](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pl/configuration.md)
|
|
@@ -63,10 +63,10 @@ npm i -D @intlayer/sync-json-plugin
|
|
|
63
63
|
Dodaj wtyczkę do swojego pliku `intlayer.config.ts` i wskaż ją na istniejącą strukturę JSON.
|
|
64
64
|
|
|
65
65
|
```ts fileName="intlayer.config.ts"
|
|
66
|
-
import {
|
|
66
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
67
67
|
import { syncJSON } from "@intlayer/sync-json-plugin";
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
const config: IntlayerConfig = {
|
|
70
70
|
internationalization: {
|
|
71
71
|
locales: [Locales.ENGLISH, Locales.FRENCH, Locales.SPANISH],
|
|
72
72
|
defaultLocale: Locales.ENGLISH,
|
|
@@ -79,7 +79,9 @@ export default defineConfig({
|
|
|
79
79
|
source: ({ key, locale }) => `./locales/${locale}/${key}.json`,
|
|
80
80
|
}),
|
|
81
81
|
],
|
|
82
|
-
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export default config;
|
|
83
85
|
```
|
|
84
86
|
|
|
85
87
|
Alternatywa: pojedynczy plik na locale (częste w konfiguracjach i18next/react-intl):
|
|
@@ -144,10 +146,10 @@ Gdy wiele wtyczek celuje w ten sam klucz słownika, parametr `priority` decyduje
|
|
|
144
146
|
- Wtyczki o tym samym priorytecie są przetwarzane w kolejności, w jakiej pojawiają się w konfiguracji
|
|
145
147
|
|
|
146
148
|
```ts fileName="intlayer.config.ts"
|
|
147
|
-
import {
|
|
149
|
+
import { Locales, type IntlayerConfig } from "intlayer";
|
|
148
150
|
import { syncJSON } from "@intlayer/sync-json-plugin";
|
|
149
151
|
|
|
150
|
-
|
|
152
|
+
const config: IntlayerConfig = {
|
|
151
153
|
internationalization: {
|
|
152
154
|
locales: [Locales.ENGLISH, Locales.FRENCH],
|
|
153
155
|
defaultLocale: Locales.ENGLISH,
|
|
@@ -178,7 +180,9 @@ export default defineConfig({
|
|
|
178
180
|
priority: 1,
|
|
179
181
|
}),
|
|
180
182
|
],
|
|
181
|
-
}
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export default config;
|
|
182
186
|
```
|
|
183
187
|
|
|
184
188
|
### Rozwiązywanie konfliktów
|
|
@@ -78,7 +78,7 @@ const MyComponent = () => {
|
|
|
78
78
|
|
|
79
79
|
Esse hook gerenciará a detecção de localidade para você e retornará o conteúdo para a localidade atual. Usando esse hook, você também poderá interpretar markdown, gerenciar pluralização e muito mais.
|
|
80
80
|
|
|
81
|
-
> Para ver todos os recursos do Intlayer, você pode ler a [documentação de dicionário](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
81
|
+
> Para ver todos os recursos do Intlayer, você pode ler a [documentação de dicionário](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md).
|
|
82
82
|
|
|
83
83
|
## Conteúdo remoto
|
|
84
84
|
|
package/docs/pt/index.md
CHANGED
|
@@ -56,7 +56,7 @@ Gerencie conteúdo e traduções usando nossa ferramenta de linha de comando. De
|
|
|
56
56
|
|
|
57
57
|
Organize seu conteúdo multilíngue próximo ao seu código para manter tudo consistente e fácil de manter.
|
|
58
58
|
|
|
59
|
-
- **[Começando](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
59
|
+
- **[Começando](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md)**
|
|
60
60
|
Aprenda o básico de como declarar seu conteúdo no Intlayer.
|
|
61
61
|
|
|
62
62
|
- **[Tradução](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/translation.md)**
|
|
@@ -67,7 +67,7 @@ yarn add react react-dom react-intlayer @astrojs/react
|
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
- **intlayer**
|
|
70
|
-
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
70
|
+
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md), transpiração e [comandos CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/intlayer_cli.md).
|
|
71
71
|
|
|
72
72
|
- **astro-intlayer**
|
|
73
73
|
Inclui o plugin de integração do Astro para integrar o Intlayer com o [empacotador Vite](https://vite.dev/guide/why.html#why-bundle-for-production), assim como middleware para detectar o idioma preferido do usuário, gerenciar cookies e lidar com redirecionamento de URL.
|
|
@@ -138,7 +138,7 @@ export default appContent;
|
|
|
138
138
|
|
|
139
139
|
> Suas declarações de conteúdo podem ser definidas em qualquer lugar da sua aplicação, desde que estejam incluídas no diretório `contentDir` (por padrão, `./src`). E correspondam à extensão do arquivo de declaração de conteúdo (por padrão, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
|
|
140
140
|
|
|
141
|
-
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
141
|
+
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md).
|
|
142
142
|
|
|
143
143
|
### Passo 5: Use seu conteúdo no Astro
|
|
144
144
|
|
|
@@ -68,7 +68,7 @@ bunx intlayer init
|
|
|
68
68
|
|
|
69
69
|
- **intlayer**
|
|
70
70
|
|
|
71
|
-
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
71
|
+
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md), transpilação e [comandos CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/intlayer_cli.md).
|
|
72
72
|
|
|
73
73
|
- **react-intlayer**
|
|
74
74
|
|
|
@@ -259,7 +259,7 @@ module.exports = appContent;
|
|
|
259
259
|
|
|
260
260
|
> Suas declarações de conteúdo podem ser definidas em qualquer lugar da sua aplicação, desde que estejam incluídas no diretório `contentDir` (por padrão, `./src`). E correspondam à extensão do arquivo de declaração de conteúdo (por padrão, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
|
|
261
261
|
|
|
262
|
-
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
262
|
+
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md).
|
|
263
263
|
|
|
264
264
|
> Se o seu arquivo de conteúdo incluir código TSX, você deve considerar importar `import React from "react";` no seu arquivo de conteúdo.
|
|
265
265
|
|
|
@@ -223,7 +223,7 @@ module.exports = indexContent;
|
|
|
223
223
|
|
|
224
224
|
> Suas declarações de conteúdo podem ser definidas em qualquer lugar da sua aplicação, desde que estejam incluídas no diretório `contentDir` (por padrão, `./src`). E correspondam à extensão de arquivo de declaração de conteúdo (por padrão, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
|
|
225
225
|
|
|
226
|
-
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
226
|
+
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md).
|
|
227
227
|
|
|
228
228
|
### Configuração da Aplicação Express
|
|
229
229
|
|
|
@@ -370,7 +370,7 @@ module.exports = appContent;
|
|
|
370
370
|
}
|
|
371
371
|
```
|
|
372
372
|
|
|
373
|
-
> Para mais detalhes sobre declarações de conteúdo, consulte a [documentação de conteúdo do Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
373
|
+
> Para mais detalhes sobre declarações de conteúdo, consulte a [documentação de conteúdo do Intlayer](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md).
|
|
374
374
|
|
|
375
375
|
---
|
|
376
376
|
|
|
@@ -66,7 +66,7 @@ bunx intlayer init
|
|
|
66
66
|
|
|
67
67
|
- **intlayer**
|
|
68
68
|
|
|
69
|
-
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
69
|
+
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md), transpilações e [comandos CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/intlayer_cli.md).
|
|
70
70
|
|
|
71
71
|
- **next-intlayer**
|
|
72
72
|
|
|
@@ -438,7 +438,7 @@ module.exports = pageContent;
|
|
|
438
438
|
|
|
439
439
|
> Suas declarações de conteúdo podem ser definidas em qualquer lugar da sua aplicação, desde que estejam incluídas no diretório `contentDir` (por padrão, `./src`). E correspondam à extensão do arquivo de declaração de conteúdo (por padrão, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
|
|
440
440
|
|
|
441
|
-
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
441
|
+
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md).
|
|
442
442
|
|
|
443
443
|
### Passo 7: Utilize o Conteúdo no Seu Código
|
|
444
444
|
|
|
@@ -76,7 +76,7 @@ bunx intlayer init
|
|
|
76
76
|
|
|
77
77
|
- **intlayer**
|
|
78
78
|
|
|
79
|
-
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
79
|
+
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md), transpiração e [comandos CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/intlayer_cli.md).
|
|
80
80
|
|
|
81
81
|
- **next-intlayer**
|
|
82
82
|
|
|
@@ -429,7 +429,7 @@ module.exports = pageContent;
|
|
|
429
429
|
|
|
430
430
|
> Suas declarações de conteúdo podem ser definidas em qualquer lugar da sua aplicação, desde que estejam incluídas no diretório `contentDir` (por padrão, `./src`). E correspondam à extensão do arquivo de declaração de conteúdo (por padrão, `.content.{json,ts,tsx,js,jsx,mjs,cjs}`).
|
|
431
431
|
|
|
432
|
-
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
432
|
+
> Para mais detalhes, consulte a [documentação de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md).
|
|
433
433
|
|
|
434
434
|
### Passo 6: Utilize o Conteúdo no Seu Código
|
|
435
435
|
|
|
@@ -72,7 +72,7 @@ bunx intlayer init
|
|
|
72
72
|
|
|
73
73
|
- **intlayer**
|
|
74
74
|
|
|
75
|
-
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
75
|
+
O pacote principal que fornece ferramentas de internacionalização para gerenciamento de configuração, tradução, [declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md), transpiração e [comandos CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/intlayer_cli.md).
|
|
76
76
|
|
|
77
77
|
- **next-intlayer**
|
|
78
78
|
|
|
@@ -448,7 +448,7 @@ module.exports = homeContent;
|
|
|
448
448
|
}
|
|
449
449
|
```
|
|
450
450
|
|
|
451
|
-
Para mais informações sobre como declarar conteúdo, consulte o [guia de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
451
|
+
Para mais informações sobre como declarar conteúdo, consulte o [guia de declaração de conteúdo](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md).
|
|
452
452
|
|
|
453
453
|
### Passo 7: Utilize o Conteúdo no Seu Código
|
|
454
454
|
|
|
@@ -1527,7 +1527,7 @@ Para mais detalhes sobre como usar a extensão, consulte a [documentação da Ex
|
|
|
1527
1527
|
## Recursos Adicionais
|
|
1528
1528
|
|
|
1529
1529
|
- **Documentação do Intlayer:** [Repositório GitHub](https://github.com/aymericzip/intlayer)
|
|
1530
|
-
- **Guia do Dicionário:** [Dicionário](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/
|
|
1530
|
+
- **Guia do Dicionário:** [Dicionário](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/dictionary/content_file.md)
|
|
1531
1531
|
- **Documentação de Configuração:** [Guia de Configuração](https://github.com/aymericzip/intlayer/blob/main/docs/docs/pt/configuration.md)
|
|
1532
1532
|
|
|
1533
1533
|
Seguindo este guia, você pode integrar efetivamente o Intlayer em sua aplicação Next.js usando o Page Router, possibilitando um suporte robusto e escalável para internacionalização em seus projetos web.
|