@intlayer/docs 5.8.1-canary.0 → 6.0.0-canary.0
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/blog/ar/rag_powered_documentation_assistant.md +282 -0
- package/blog/de/rag_powered_documentation_assistant.md +282 -0
- package/blog/en/rag_powered_documentation_assistant.md +289 -0
- package/blog/en-GB/rag_powered_documentation_assistant.md +284 -0
- package/blog/es/rag_powered_documentation_assistant.md +308 -0
- package/blog/fr/rag_powered_documentation_assistant.md +308 -0
- package/blog/hi/rag_powered_documentation_assistant.md +284 -0
- package/blog/it/rag_powered_documentation_assistant.md +284 -0
- package/blog/ja/rag_powered_documentation_assistant.md +284 -0
- package/blog/ko/rag_powered_documentation_assistant.md +283 -0
- package/blog/pt/rag_powered_documentation_assistant.md +284 -0
- package/blog/ru/rag_powered_documentation_assistant.md +284 -0
- package/blog/tr/index.md +69 -0
- package/blog/tr/internationalization_and_SEO.md +273 -0
- package/blog/tr/intlayer_with_i18next.md +162 -0
- package/blog/tr/intlayer_with_next-i18next.md +367 -0
- package/blog/tr/intlayer_with_next-intl.md +392 -0
- package/blog/tr/intlayer_with_react-i18next.md +346 -0
- package/blog/tr/intlayer_with_react-intl.md +345 -0
- package/blog/tr/list_i18n_technologies/CMS/drupal.md +143 -0
- package/blog/tr/list_i18n_technologies/CMS/wix.md +167 -0
- package/blog/tr/list_i18n_technologies/CMS/wordpress.md +188 -0
- package/blog/tr/list_i18n_technologies/frameworks/angular.md +125 -0
- package/blog/tr/list_i18n_technologies/frameworks/flutter.md +150 -0
- package/blog/tr/list_i18n_technologies/frameworks/react-native.md +217 -0
- package/blog/tr/list_i18n_technologies/frameworks/react.md +155 -0
- package/blog/tr/list_i18n_technologies/frameworks/svelte.md +129 -0
- package/blog/tr/list_i18n_technologies/frameworks/vue.md +130 -0
- package/blog/tr/next-i18next_vs_next-intl_vs_intlayer.md +170 -0
- package/blog/tr/rag_powered_documentation_assistant.md +284 -0
- package/blog/tr/react-i18next_vs_react-intl_vs_intlayer.md +162 -0
- package/blog/tr/vue-i18n_vs_intlayer.md +276 -0
- package/blog/tr/what_is_internationalization.md +166 -0
- package/blog/zh/rag_powered_documentation_assistant.md +284 -0
- package/dist/cjs/generated/blog.entry.cjs +212 -0
- package/dist/cjs/generated/blog.entry.cjs.map +1 -1
- package/dist/cjs/generated/docs.entry.cjs +660 -132
- package/dist/cjs/generated/docs.entry.cjs.map +1 -1
- package/dist/cjs/generated/frequentQuestions.entry.cjs +84 -0
- package/dist/cjs/generated/frequentQuestions.entry.cjs.map +1 -1
- package/dist/cjs/generated/legal.entry.cjs +6 -0
- package/dist/cjs/generated/legal.entry.cjs.map +1 -1
- package/dist/esm/generated/blog.entry.mjs +212 -0
- package/dist/esm/generated/blog.entry.mjs.map +1 -1
- package/dist/esm/generated/docs.entry.mjs +660 -132
- package/dist/esm/generated/docs.entry.mjs.map +1 -1
- package/dist/esm/generated/frequentQuestions.entry.mjs +84 -0
- package/dist/esm/generated/frequentQuestions.entry.mjs.map +1 -1
- package/dist/esm/generated/legal.entry.mjs +6 -0
- package/dist/esm/generated/legal.entry.mjs.map +1 -1
- package/dist/types/generated/blog.entry.d.ts +1 -0
- package/dist/types/generated/blog.entry.d.ts.map +1 -1
- package/dist/types/generated/docs.entry.d.ts +5 -2
- package/dist/types/generated/docs.entry.d.ts.map +1 -1
- package/dist/types/generated/frequentQuestions.entry.d.ts.map +1 -1
- package/dist/types/generated/legal.entry.d.ts.map +1 -1
- package/docs/ar/autoFill.md +41 -40
- package/docs/ar/configuration.md +202 -199
- package/docs/ar/dictionary/content_file.md +1059 -0
- package/docs/ar/intlayer_CMS.md +4 -4
- package/docs/ar/intlayer_with_nestjs.md +271 -0
- package/docs/ar/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ar/intlayer_with_react_router_v7.md +533 -0
- package/docs/ar/intlayer_with_tanstack.md +465 -299
- package/docs/ar/intlayer_with_vite+preact.md +7 -7
- package/docs/ar/intlayer_with_vite+react.md +7 -7
- package/docs/ar/intlayer_with_vite+vue.md +9 -9
- package/docs/ar/packages/vite-intlayer/index.md +3 -3
- package/docs/ar/readme.md +261 -0
- package/docs/ar/testing.md +199 -0
- package/docs/de/autoFill.md +42 -19
- package/docs/de/configuration.md +155 -147
- package/docs/de/dictionary/content_file.md +1059 -0
- package/docs/de/intlayer_CMS.md +4 -5
- package/docs/de/intlayer_with_nestjs.md +270 -0
- package/docs/de/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/de/intlayer_with_react_router_v7.md +537 -0
- package/docs/de/intlayer_with_tanstack.md +469 -302
- package/docs/de/intlayer_with_vite+preact.md +7 -7
- package/docs/de/intlayer_with_vite+react.md +7 -7
- package/docs/de/intlayer_with_vite+vue.md +9 -9
- package/docs/de/packages/vite-intlayer/index.md +3 -3
- package/docs/de/readme.md +261 -0
- package/docs/de/testing.md +200 -0
- package/docs/en/CI_CD.md +4 -6
- package/docs/en/autoFill.md +25 -5
- package/docs/en/configuration.md +45 -54
- package/docs/en/dictionary/content_file.md +1054 -0
- package/docs/en/intlayer_CMS.md +8 -7
- package/docs/en/intlayer_cli.md +112 -5
- package/docs/en/intlayer_with_nestjs.md +268 -0
- package/docs/en/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/en/intlayer_with_react_router_v7.md +531 -0
- package/docs/en/intlayer_with_tanstack.md +463 -294
- package/docs/en/intlayer_with_vite+preact.md +8 -8
- package/docs/en/intlayer_with_vite+react.md +8 -8
- package/docs/en/intlayer_with_vite+vue.md +8 -8
- package/docs/en/packages/intlayer/getLocalizedUrl.md +102 -25
- package/docs/en/packages/vite-intlayer/index.md +3 -3
- package/docs/en/readme.md +261 -0
- package/docs/en/testing.md +200 -0
- package/docs/en-GB/autoFill.md +29 -6
- package/docs/en-GB/configuration.md +79 -71
- package/docs/en-GB/dictionary/content_file.md +1084 -0
- package/docs/en-GB/intlayer_CMS.md +4 -5
- package/docs/en-GB/intlayer_with_nestjs.md +268 -0
- package/docs/en-GB/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/en-GB/intlayer_with_react_router_v7.md +533 -0
- package/docs/en-GB/intlayer_with_tanstack.md +466 -299
- package/docs/en-GB/intlayer_with_vite+preact.md +7 -7
- package/docs/en-GB/intlayer_with_vite+react.md +7 -7
- package/docs/en-GB/intlayer_with_vite+vue.md +9 -9
- package/docs/en-GB/packages/vite-intlayer/index.md +3 -3
- package/docs/en-GB/readme.md +261 -0
- package/docs/en-GB/testing.md +200 -0
- package/docs/es/autoFill.md +45 -23
- package/docs/es/configuration.md +171 -167
- package/docs/es/dictionary/content_file.md +1088 -0
- package/docs/es/intlayer_CMS.md +4 -5
- package/docs/es/intlayer_with_nestjs.md +268 -0
- package/docs/es/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/es/intlayer_with_react_router_v7.md +533 -0
- package/docs/es/intlayer_with_tanstack.md +469 -280
- package/docs/es/intlayer_with_vite+preact.md +7 -7
- package/docs/es/intlayer_with_vite+react.md +7 -7
- package/docs/es/intlayer_with_vite+vue.md +9 -9
- package/docs/es/packages/vite-intlayer/index.md +3 -3
- package/docs/es/readme.md +261 -0
- package/docs/es/testing.md +200 -0
- package/docs/fr/autoFill.md +47 -24
- package/docs/fr/configuration.md +213 -198
- package/docs/fr/dictionary/content_file.md +1054 -0
- package/docs/fr/intlayer_CMS.md +4 -5
- package/docs/fr/intlayer_with_nestjs.md +268 -0
- package/docs/fr/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/fr/intlayer_with_react_router_v7.md +549 -0
- package/docs/fr/intlayer_with_tanstack.md +465 -279
- package/docs/fr/intlayer_with_vite+preact.md +7 -7
- package/docs/fr/intlayer_with_vite+react.md +7 -7
- package/docs/fr/intlayer_with_vite+vue.md +9 -9
- package/docs/fr/packages/vite-intlayer/index.md +3 -3
- package/docs/fr/readme.md +261 -0
- package/docs/fr/testing.md +200 -0
- package/docs/hi/autoFill.md +47 -25
- package/docs/hi/configuration.md +194 -189
- package/docs/hi/dictionary/content_file.md +1056 -0
- package/docs/hi/intlayer_CMS.md +4 -5
- package/docs/hi/intlayer_with_nestjs.md +269 -0
- package/docs/hi/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/hi/intlayer_with_react_router_v7.md +533 -0
- package/docs/hi/intlayer_with_tanstack.md +467 -282
- package/docs/hi/intlayer_with_vite+preact.md +7 -7
- package/docs/hi/intlayer_with_vite+react.md +7 -7
- package/docs/hi/intlayer_with_vite+vue.md +9 -9
- package/docs/hi/packages/vite-intlayer/index.md +3 -3
- package/docs/hi/readme.md +261 -0
- package/docs/hi/testing.md +200 -0
- package/docs/it/autoFill.md +46 -24
- package/docs/it/configuration.md +169 -161
- package/docs/it/dictionary/content_file.md +1061 -0
- package/docs/it/intlayer_CMS.md +4 -5
- package/docs/it/intlayer_with_nestjs.md +268 -0
- package/docs/it/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/it/intlayer_with_react_router_v7.md +535 -0
- package/docs/it/intlayer_with_tanstack.md +467 -301
- package/docs/it/intlayer_with_vite+preact.md +7 -7
- package/docs/it/intlayer_with_vite+react.md +7 -7
- package/docs/it/intlayer_with_vite+vue.md +9 -9
- package/docs/it/packages/vite-intlayer/index.md +3 -3
- package/docs/it/readme.md +261 -0
- package/docs/it/testing.md +200 -0
- package/docs/ja/autoFill.md +45 -23
- package/docs/ja/configuration.md +243 -204
- package/docs/ja/dictionary/content_file.md +1064 -0
- package/docs/ja/intlayer_CMS.md +4 -5
- package/docs/ja/intlayer_with_nestjs.md +268 -0
- package/docs/ja/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ja/intlayer_with_react_router_v7.md +534 -0
- package/docs/ja/intlayer_with_tanstack.md +467 -303
- package/docs/ja/intlayer_with_vite+preact.md +7 -7
- package/docs/ja/intlayer_with_vite+react.md +7 -7
- package/docs/ja/intlayer_with_vite+vue.md +9 -9
- package/docs/ja/packages/vite-intlayer/index.md +3 -3
- package/docs/ja/readme.md +263 -0
- package/docs/ja/testing.md +200 -0
- package/docs/ko/autoFill.md +39 -16
- package/docs/ko/configuration.md +217 -197
- package/docs/ko/dictionary/content_file.md +1060 -0
- package/docs/ko/intlayer_CMS.md +4 -5
- package/docs/ko/intlayer_with_nestjs.md +268 -0
- package/docs/ko/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ko/intlayer_with_react_router_v7.md +540 -0
- package/docs/ko/intlayer_with_tanstack.md +466 -302
- package/docs/ko/intlayer_with_vite+preact.md +7 -7
- package/docs/ko/intlayer_with_vite+react.md +7 -7
- package/docs/ko/intlayer_with_vite+vue.md +9 -9
- package/docs/ko/packages/vite-intlayer/index.md +3 -3
- package/docs/ko/readme.md +261 -0
- package/docs/ko/testing.md +200 -0
- package/docs/pt/autoFill.md +39 -15
- package/docs/pt/configuration.md +165 -147
- package/docs/pt/dictionary/content_file.md +1062 -0
- package/docs/pt/intlayer_CMS.md +4 -5
- package/docs/pt/intlayer_with_nestjs.md +271 -0
- package/docs/pt/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/pt/intlayer_with_react_router_v7.md +535 -0
- package/docs/pt/intlayer_with_tanstack.md +469 -300
- package/docs/pt/intlayer_with_vite+preact.md +7 -7
- package/docs/pt/intlayer_with_vite+react.md +7 -7
- package/docs/pt/intlayer_with_vite+vue.md +9 -9
- package/docs/pt/packages/vite-intlayer/index.md +3 -3
- package/docs/pt/readme.md +261 -0
- package/docs/pt/testing.md +200 -0
- package/docs/ru/autoFill.md +52 -30
- package/docs/ru/configuration.md +164 -117
- package/docs/ru/dictionary/content_file.md +1064 -0
- package/docs/ru/intlayer_CMS.md +4 -4
- package/docs/ru/intlayer_with_nestjs.md +270 -0
- package/docs/ru/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/ru/intlayer_with_react_router_v7.md +534 -0
- package/docs/ru/intlayer_with_tanstack.md +470 -305
- package/docs/ru/intlayer_with_vite+preact.md +7 -7
- package/docs/ru/intlayer_with_vite+react.md +7 -7
- package/docs/ru/intlayer_with_vite+vue.md +9 -9
- package/docs/ru/packages/vite-intlayer/index.md +3 -3
- package/docs/ru/readme.md +261 -0
- package/docs/ru/testing.md +202 -0
- package/docs/tr/CI_CD.md +198 -0
- package/docs/tr/autoFill.md +201 -0
- package/docs/tr/configuration.md +585 -0
- package/docs/tr/dictionary/condition.md +243 -0
- package/docs/tr/dictionary/content_file.md +1055 -0
- package/docs/tr/dictionary/enumeration.md +251 -0
- package/docs/tr/dictionary/file.md +228 -0
- package/docs/tr/dictionary/function_fetching.md +218 -0
- package/docs/tr/dictionary/gender.md +279 -0
- package/docs/tr/dictionary/insertion.md +191 -0
- package/docs/tr/dictionary/markdown.md +385 -0
- package/docs/tr/dictionary/nesting.md +279 -0
- package/docs/tr/dictionary/translation.md +315 -0
- package/docs/tr/formatters.md +618 -0
- package/docs/tr/how_works_intlayer.md +254 -0
- package/docs/tr/index.md +168 -0
- package/docs/tr/interest_of_intlayer.md +288 -0
- package/docs/tr/intlayer_CMS.md +347 -0
- package/docs/tr/intlayer_cli.md +570 -0
- package/docs/tr/intlayer_visual_editor.md +269 -0
- package/docs/tr/intlayer_with_angular.md +694 -0
- package/docs/tr/intlayer_with_create_react_app.md +1218 -0
- package/docs/tr/intlayer_with_express.md +415 -0
- package/docs/tr/intlayer_with_lynx+react.md +511 -0
- package/docs/tr/intlayer_with_nestjs.md +268 -0
- package/docs/tr/intlayer_with_nextjs_14.md +1029 -0
- package/docs/tr/intlayer_with_nextjs_15.md +1506 -0
- package/docs/tr/intlayer_with_nextjs_page_router.md +1484 -0
- package/docs/tr/intlayer_with_nuxt.md +773 -0
- package/docs/tr/intlayer_with_react_native+expo.md +660 -0
- package/docs/tr/intlayer_with_react_router_v7.md +531 -0
- package/docs/tr/intlayer_with_tanstack.md +452 -0
- package/docs/tr/intlayer_with_vite+preact.md +1673 -0
- package/docs/tr/intlayer_with_vite+react.md +1632 -0
- package/docs/tr/intlayer_with_vite+solid.md +288 -0
- package/docs/tr/intlayer_with_vite+svelte.md +288 -0
- package/docs/tr/intlayer_with_vite+vue.md +1042 -0
- package/docs/tr/introduction.md +209 -0
- package/docs/tr/locale_mapper.md +244 -0
- package/docs/tr/mcp_server.md +207 -0
- package/docs/tr/packages/@intlayer/api/index.md +58 -0
- package/docs/tr/packages/@intlayer/chokidar/index.md +57 -0
- package/docs/tr/packages/@intlayer/cli/index.md +47 -0
- package/docs/tr/packages/@intlayer/config/index.md +142 -0
- package/docs/tr/packages/@intlayer/core/index.md +51 -0
- package/docs/tr/packages/@intlayer/design-system/index.md +47 -0
- package/docs/tr/packages/@intlayer/dictionary-entry/index.md +53 -0
- package/docs/tr/packages/@intlayer/editor/index.md +47 -0
- package/docs/tr/packages/@intlayer/editor-react/index.md +47 -0
- package/docs/tr/packages/@intlayer/webpack/index.md +61 -0
- package/docs/tr/packages/angular-intlayer/index.md +59 -0
- package/docs/tr/packages/express-intlayer/index.md +258 -0
- package/docs/tr/packages/express-intlayer/t.md +459 -0
- package/docs/tr/packages/intlayer/getConfiguration.md +151 -0
- package/docs/tr/packages/intlayer/getEnumeration.md +165 -0
- package/docs/tr/packages/intlayer/getHTMLTextDir.md +127 -0
- package/docs/tr/packages/intlayer/getLocaleLang.md +87 -0
- package/docs/tr/packages/intlayer/getLocaleName.md +124 -0
- package/docs/tr/packages/intlayer/getLocalizedUrl.md +324 -0
- package/docs/tr/packages/intlayer/getMultilingualUrls.md +225 -0
- package/docs/tr/packages/intlayer/getPathWithoutLocale.md +81 -0
- package/docs/tr/packages/intlayer/getTranslation.md +196 -0
- package/docs/tr/packages/intlayer/getTranslationContent.md +195 -0
- package/docs/tr/packages/intlayer/index.md +505 -0
- package/docs/tr/packages/intlayer-cli/index.md +71 -0
- package/docs/tr/packages/intlayer-editor/index.md +139 -0
- package/docs/tr/packages/lynx-intlayer/index.md +85 -0
- package/docs/tr/packages/next-intlayer/index.md +154 -0
- package/docs/tr/packages/next-intlayer/t.md +354 -0
- package/docs/tr/packages/next-intlayer/useDictionary.md +270 -0
- package/docs/tr/packages/next-intlayer/useIntlayer.md +265 -0
- package/docs/tr/packages/next-intlayer/useLocale.md +133 -0
- package/docs/tr/packages/nuxt-intlayer/index.md +59 -0
- package/docs/tr/packages/preact-intlayer/index.md +55 -0
- package/docs/tr/packages/react-intlayer/index.md +148 -0
- package/docs/tr/packages/react-intlayer/t.md +304 -0
- package/docs/tr/packages/react-intlayer/useDictionary.md +554 -0
- package/docs/tr/packages/react-intlayer/useI18n.md +478 -0
- package/docs/tr/packages/react-intlayer/useIntlayer.md +253 -0
- package/docs/tr/packages/react-intlayer/useLocale.md +212 -0
- package/docs/tr/packages/react-native-intlayer/index.md +85 -0
- package/docs/tr/packages/react-scripts-intlayer/index.md +82 -0
- package/docs/tr/packages/solid-intlayer/index.md +56 -0
- package/docs/tr/packages/svelte-intlayer/index.md +55 -0
- package/docs/tr/packages/vite-intlayer/index.md +82 -0
- package/docs/tr/packages/vue-intlayer/index.md +59 -0
- package/docs/tr/per_locale_file.md +321 -0
- package/docs/tr/readme.md +261 -0
- package/docs/tr/roadmap.md +338 -0
- package/docs/tr/testing.md +200 -0
- package/docs/tr/vs_code_extension.md +154 -0
- package/docs/zh/autoFill.md +40 -18
- package/docs/zh/configuration.md +245 -226
- package/docs/zh/dictionary/content_file.md +1064 -0
- package/docs/zh/intlayer_CMS.md +4 -5
- package/docs/zh/intlayer_with_nestjs.md +268 -0
- package/docs/zh/intlayer_with_nextjs_page_router.md +1 -1
- package/docs/zh/intlayer_with_react_router_v7.md +535 -0
- package/docs/zh/intlayer_with_tanstack.md +468 -278
- package/docs/zh/intlayer_with_vite+preact.md +7 -7
- package/docs/zh/intlayer_with_vite+react.md +7 -7
- package/docs/zh/intlayer_with_vite+vue.md +7 -7
- package/docs/zh/packages/vite-intlayer/index.md +3 -3
- package/docs/zh/readme.md +261 -0
- package/docs/zh/testing.md +198 -0
- package/frequent_questions/tr/SSR_Next_no_[locale].md +105 -0
- package/frequent_questions/tr/array_as_content_declaration.md +72 -0
- package/frequent_questions/tr/build_dictionaries.md +59 -0
- package/frequent_questions/tr/build_error_CI_CD.md +75 -0
- package/frequent_questions/tr/customized_locale_list.md +65 -0
- package/frequent_questions/tr/domain_routing.md +114 -0
- package/frequent_questions/tr/esbuild_error.md +30 -0
- package/frequent_questions/tr/get_locale_cookie.md +142 -0
- package/frequent_questions/tr/intlayer_command_undefined.md +156 -0
- package/frequent_questions/tr/locale_incorect_in_url.md +74 -0
- package/frequent_questions/tr/static_rendering.md +45 -0
- package/frequent_questions/tr/translated_path_url.md +56 -0
- package/frequent_questions/tr/unknown_command.md +98 -0
- package/legal/tr/privacy_notice.md +83 -0
- package/legal/tr/terms_of_service.md +55 -0
- package/package.json +13 -13
- package/src/generated/blog.entry.ts +212 -0
- package/src/generated/docs.entry.ts +663 -135
- package/src/generated/frequentQuestions.entry.ts +85 -1
- package/src/generated/legal.entry.ts +7 -1
- package/docs/ar/dictionary/content_extention_customization.md +0 -100
- package/docs/ar/dictionary/get_started.md +0 -527
- package/docs/de/dictionary/content_extention_customization.md +0 -100
- package/docs/de/dictionary/get_started.md +0 -531
- package/docs/en/dictionary/content_extention_customization.md +0 -102
- package/docs/en/dictionary/get_started.md +0 -529
- package/docs/en-GB/dictionary/content_extention_customization.md +0 -100
- package/docs/en-GB/dictionary/get_started.md +0 -591
- package/docs/es/dictionary/content_extention_customization.md +0 -100
- package/docs/es/dictionary/get_started.md +0 -527
- package/docs/fr/dictionary/content_extention_customization.md +0 -100
- package/docs/fr/dictionary/get_started.md +0 -527
- package/docs/hi/dictionary/content_extention_customization.md +0 -100
- package/docs/hi/dictionary/get_started.md +0 -527
- package/docs/it/dictionary/content_extention_customization.md +0 -113
- package/docs/it/dictionary/get_started.md +0 -573
- package/docs/ja/dictionary/content_extention_customization.md +0 -113
- package/docs/ja/dictionary/get_started.md +0 -576
- package/docs/ko/dictionary/content_extention_customization.md +0 -100
- package/docs/ko/dictionary/get_started.md +0 -530
- package/docs/pt/dictionary/content_extention_customization.md +0 -100
- package/docs/pt/dictionary/get_started.md +0 -532
- package/docs/ru/dictionary/content_extention_customization.md +0 -100
- package/docs/ru/dictionary/get_started.md +0 -575
- package/docs/zh/dictionary/content_extention_customization.md +0 -117
- package/docs/zh/dictionary/get_started.md +0 -533
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-09-07
|
|
3
|
+
updatedAt: 2025-09-07
|
|
4
|
+
title: Package Documentation | svelte-intlayer
|
|
5
|
+
description: See how to use the svelte-intlayer package
|
|
6
|
+
keywords:
|
|
7
|
+
- Intlayer
|
|
8
|
+
- svelte-intlayer
|
|
9
|
+
- Internationalization
|
|
10
|
+
- Documentation
|
|
11
|
+
- JavaScript
|
|
12
|
+
- Svelte
|
|
13
|
+
slugs:
|
|
14
|
+
- doc
|
|
15
|
+
- packages
|
|
16
|
+
- svelte-intlayer
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# svelte-intlayer: Bir Svelte uygulamasını uluslararasılaştırmak (i18n) için NPM Paketi
|
|
20
|
+
|
|
21
|
+
**Intlayer**, özellikle JavaScript geliştiricileri için tasarlanmış bir paket paketidir. Svelte, Svelte ve Express.js gibi çerçevelerle uyumludur.
|
|
22
|
+
|
|
23
|
+
**`svelte-intlayer` paketi**, Svelte uygulamanızı uluslararasılaştırmanıza izin verir. Svelte uluslararasılaştırması için bağlam sağlayıcıları ve kancalar sağlar.
|
|
24
|
+
|
|
25
|
+
## Neden Svelte Uygulamanızı Uluslararasılaştırasınız?
|
|
26
|
+
|
|
27
|
+
Svelte uygulamanızı uluslararasılaştırmak, küresel bir kitleye etkili bir şekilde hizmet etmek için gereklidir. Uygulamanızın her kullanıcının tercih ettiği dilde içerik ve mesajlar sunmasına izin verir. Bu yetenek, kullanıcı deneyimini geliştirir ve uygulamanızın farklı dilsel geçmişlere sahip insanlara daha erişilebilir ve ilgili hale getirerek erişimini genişletir.
|
|
28
|
+
|
|
29
|
+
## Neden Intlayer'ı entegre edelim?
|
|
30
|
+
|
|
31
|
+
- **JavaScript-Powered Content Management**: İçeriğinizi verimli bir şekilde tanımlamak ve yönetmek için JavaScript'in esnekliğini kullanın.
|
|
32
|
+
- **Type-Safe Environment**: Tüm içerik tanımlarınızın doğru ve hatasız olmasını sağlamak için TypeScript'i kullanın.
|
|
33
|
+
- **Integrated Content Files**: Çevirilerinizi ilgili bileşenlere yakın tutarak sürdürülebilirliği ve netliği artırın.
|
|
34
|
+
|
|
35
|
+
## Kurulum
|
|
36
|
+
|
|
37
|
+
Tercih ettiğiniz paket yöneticisini kullanarak gerekli paketi yükleyin:
|
|
38
|
+
|
|
39
|
+
```bash packageManager="npm"
|
|
40
|
+
npm install svelte-intlayer
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```bash packageManager="yarn"
|
|
44
|
+
yarn add svelte-intlayer
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```bash packageManager="pnpm"
|
|
48
|
+
pnpm add svelte-intlayer
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Doküman Geçmişi
|
|
52
|
+
|
|
53
|
+
| Sürüm | Tarih | Değişiklikler |
|
|
54
|
+
| ------ | ---------- | ----------------- |
|
|
55
|
+
| 5.5.10 | 2025-06-29 | Geçmiş başlatıldı |
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-09-07
|
|
3
|
+
updatedAt: 2025-09-07
|
|
4
|
+
title: Paket Dokümantasyonu | vite-intlayer
|
|
5
|
+
description: vite-intlayer paketinin nasıl kullanılacağını görün
|
|
6
|
+
keywords:
|
|
7
|
+
- Intlayer
|
|
8
|
+
- vite-intlayer
|
|
9
|
+
- Uluslararasılaştırma
|
|
10
|
+
- Dokümantasyon
|
|
11
|
+
- Next.js
|
|
12
|
+
- JavaScript
|
|
13
|
+
- React
|
|
14
|
+
slugs:
|
|
15
|
+
- doc
|
|
16
|
+
- packages
|
|
17
|
+
- vite-intlayer
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# vite-intlayer: Vite uygulamasını uluslararasılaştırmak (i18n) için NPM Paketi
|
|
21
|
+
|
|
22
|
+
**Intlayer**, özellikle JavaScript geliştiricileri için tasarlanmış bir paket paketidir. React, React ve Express.js gibi çerçevelerle uyumludur.
|
|
23
|
+
|
|
24
|
+
**`vite-intlayer` paketi**, Vite uygulamanızı uluslararasılaştırmanızı sağlar. Yapılandırmayı ortam değişkenleri aracılığıyla [Vite bundler](https://vitejs.dev/guide/why.html#why-bundle-for-production)'a ayarlamak için Vite eklentisini içerir. Ayrıca, kullanıcının tercih ettiği yerel ayarı algılamak ve [yapılandırmada](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/configuration.md) belirtildiği gibi kullanıcıyı uygun URL'ye yönlendirmek için ara yazılım sağlar.
|
|
25
|
+
|
|
26
|
+
## Neden Vite Uygulamanızı Uluslararasılaştırasınız?
|
|
27
|
+
|
|
28
|
+
Vite uygulamanızı uluslararasılaştırmak, küresel bir kitleye etkili bir şekilde hizmet etmek için gereklidir. Uygulamanızın her kullanıcının tercih ettiği dilde içerik ve mesajlar sunmasına izin verir. Bu yetenek, kullanıcı deneyimini geliştirir ve uygulamanızın farklı dilsel geçmişlere sahip insanlara daha erişilebilir ve ilgili hale getirerek erişimini genişletir.
|
|
29
|
+
|
|
30
|
+
## Yapılandırma
|
|
31
|
+
|
|
32
|
+
`vite-intlayer` paketi, [`react-intlayer` paketi](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/react-intlayer/index.md) ve [`intlayer` paketi](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/packages/intlayer/index.md) ile sorunsuz çalışır. Daha fazla bilgi için ilgili dokümantasyona bakın.
|
|
33
|
+
|
|
34
|
+
## Kurulum
|
|
35
|
+
|
|
36
|
+
Tercih ettiğiniz paket yöneticisini kullanarak gerekli paketi yükleyin:
|
|
37
|
+
|
|
38
|
+
```bash packageManager="npm"
|
|
39
|
+
npm install vite-intlayer
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```bash packageManager="yarn"
|
|
43
|
+
yarn add vite-intlayer
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```bash packageManager="pnpm"
|
|
47
|
+
pnpm add vite-intlayer
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Kullanım Örneği
|
|
51
|
+
|
|
52
|
+
Eklentileri vite yapılandırmanıza nasıl dahil edeceğinize dair bir örnek görün.
|
|
53
|
+
|
|
54
|
+
```typescript fileName="vite.config.ts"
|
|
55
|
+
import { defineConfig } from "vite";
|
|
56
|
+
import { intlayerPlugin, intlayerMiddlewarePlugin } from "vite-intlayer";
|
|
57
|
+
|
|
58
|
+
// https://vitejs.dev/config/
|
|
59
|
+
export default defineConfig({
|
|
60
|
+
plugins: [intlayerPlugin(), intlayerMiddlewarePlugin()],
|
|
61
|
+
});
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
> `intlayerPlugin()` Vite eklentisi, Intlayer'ı Vite ile entegre etmek için kullanılır. İçerik bildirim dosyalarının oluşturulmasını sağlar ve geliştirme modunda onları izler. Vite uygulamasında Intlayer ortam değişkenlerini tanımlar. Ek olarak, performansı optimize etmek için takma adlar sağlar.
|
|
65
|
+
|
|
66
|
+
> `intlayerMiddlewarePlugin()` uygulamanıza sunucu tarafı yönlendirme ekler. Bu eklenti, URL'ye göre mevcut yerel ayarı otomatik olarak algılayacak ve uygun yerel ayar çerezini ayarlayacaktır. Yerel ayar belirtilmezse, eklenti kullanıcının tarayıcı dil tercihlerine göre en uygun yerel ayarı belirleyecektir. Yerel ayar algılanmazsa, varsayılan yerel ayara yönlendirecektir.
|
|
67
|
+
|
|
68
|
+
## Vite uygulamanızın uluslararasılaştırmasını ustalaşın
|
|
69
|
+
|
|
70
|
+
Intlayer, Vite uygulamanızı uluslararasılaştırmanıza yardımcı olacak birçok özellik sağlar.
|
|
71
|
+
|
|
72
|
+
**Bu özellikler hakkında daha fazla bilgi için [React Internationalization (i18n) with Intlayer and Vite and React](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_with_vite+react.md) kılavuzuna Vite ve React uygulaması için bakın.**
|
|
73
|
+
|
|
74
|
+
## Dokümantasyon Geçmişi
|
|
75
|
+
|
|
76
|
+
| Sürüm | Tarih | Değişiklikler |
|
|
77
|
+
| ------ | ---------- | ----------------- |
|
|
78
|
+
| 5.5.10 | 2025-06-29 | Geçmiş başlatıldı |
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
```
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-09-07
|
|
3
|
+
updatedAt: 2025-09-07
|
|
4
|
+
title: Paket Dokümantasyonu | vue-intlayer
|
|
5
|
+
description: vue-intlayer paketinin nasıl kullanılacağını görün
|
|
6
|
+
keywords:
|
|
7
|
+
- Intlayer
|
|
8
|
+
- vue-intlayer
|
|
9
|
+
- Uluslararasılaştırma
|
|
10
|
+
- Dokümantasyon
|
|
11
|
+
- JavaScript
|
|
12
|
+
- Vue
|
|
13
|
+
slugs:
|
|
14
|
+
- doc
|
|
15
|
+
- packages
|
|
16
|
+
- vue-intlayer
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# vue-intlayer: Vue uygulamasını uluslararasılaştırmak (i18n) için NPM Paketi
|
|
20
|
+
|
|
21
|
+
**Intlayer**, özellikle JavaScript geliştiricileri için tasarlanmış bir paket paketidir. Vue, Vue ve Express.js gibi çerçevelerle uyumludur.
|
|
22
|
+
|
|
23
|
+
**`vue-intlayer` paketi**, Vue uygulamanızı uluslararasılaştırmanızı sağlar. Vue uluslararasılaştırması için bağlam sağlayıcıları ve kancalar sağlar.
|
|
24
|
+
|
|
25
|
+
## Neden Vue Uygulamanızı Uluslararasılaştırasınız?
|
|
26
|
+
|
|
27
|
+
Vue uygulamanızı uluslararasılaştırmak, küresel bir kitleye etkili bir şekilde hizmet etmek için gereklidir. Uygulamanızın her kullanıcının tercih ettiği dilde içerik ve mesajlar sunmasına izin verir. Bu yetenek, kullanıcı deneyimini geliştirir ve uygulamanızın farklı dilsel geçmişlere sahip insanlara daha erişilebilir ve ilgili hale getirerek erişimini genişletir.
|
|
28
|
+
|
|
29
|
+
## Neden Intlayer'ı entegre etmeli?
|
|
30
|
+
|
|
31
|
+
- **JavaScript Güçlü İçerik Yönetimi**: İçeriğinizi verimli bir şekilde tanımlamak ve yönetmek için JavaScript'in esnekliğini kullanın.
|
|
32
|
+
- **Tür Güvenli Ortam**: Tüm içerik tanımlarınızın doğru ve hatasız olmasını sağlamak için TypeScript'i kullanın.
|
|
33
|
+
- **Entegre İçerik Dosyaları**: Çevirilerinizi ilgili bileşenlere yakın tutarak sürdürülebilirliği ve netliği artırın.
|
|
34
|
+
|
|
35
|
+
## Kurulum
|
|
36
|
+
|
|
37
|
+
Tercih ettiğiniz paket yöneticisini kullanarak gerekli paketi yükleyin:
|
|
38
|
+
|
|
39
|
+
```bash packageManager="npm"
|
|
40
|
+
npm install vue-intlayer
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```bash packageManager="yarn"
|
|
44
|
+
yarn add vue-intlayer
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```bash packageManager="pnpm"
|
|
48
|
+
pnpm add vue-intlayer
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Dokümantasyon Geçmişi
|
|
52
|
+
|
|
53
|
+
| Sürüm | Tarih | Değişiklikler |
|
|
54
|
+
| ------ | ---------- | ----------------- |
|
|
55
|
+
| 5.5.10 | 2025-06-29 | Geçmiş başlatıldı |
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
```
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
---
|
|
2
|
+
createdAt: 2025-09-07
|
|
3
|
+
updatedAt: 2025-09-07
|
|
4
|
+
title: Intlayer'da `Yerel Ayar Başına` İçerik Bildirimi
|
|
5
|
+
description: Intlayer'da yerel ayar başına içerik bildiriminin nasıl yapılacağını keşfedin. Farklı formatları ve kullanım durumlarını anlamak için dokümantasyonu takip edin.
|
|
6
|
+
keywords:
|
|
7
|
+
- Uluslararasılaştırma
|
|
8
|
+
- Dokümantasyon
|
|
9
|
+
- Intlayer
|
|
10
|
+
- Yerel Ayar Başına
|
|
11
|
+
- TypeScript
|
|
12
|
+
- JavaScript
|
|
13
|
+
slugs:
|
|
14
|
+
- doc
|
|
15
|
+
- concept
|
|
16
|
+
- per-locale-file
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Intlayer'da `Yerel Ayar Başına` İçerik Bildirimi
|
|
20
|
+
|
|
21
|
+
Intlayer çok dilli içeriği bildirmek için iki yol destekler:
|
|
22
|
+
|
|
23
|
+
- Tüm çevirilerle tek dosya
|
|
24
|
+
- Yerel ayar başına bir dosya (yerel ayar başına format)
|
|
25
|
+
|
|
26
|
+
Bu esneklik şunları sağlar:
|
|
27
|
+
|
|
28
|
+
- Diğer i18n araçlarından kolay geçiş
|
|
29
|
+
- Otomatik çeviri iş akışları desteği
|
|
30
|
+
- Çevirilerin ayrı, yerel ayara özgü dosyalara net organizasyonu
|
|
31
|
+
|
|
32
|
+
## Tüm Çevirilerle Tek Dosya
|
|
33
|
+
|
|
34
|
+
Bu format şunlar için idealdir:
|
|
35
|
+
|
|
36
|
+
- Kodda hızlı yineleme.
|
|
37
|
+
- CMS ile sorunsuz entegrasyon.
|
|
38
|
+
|
|
39
|
+
Bu, çoğu kullanım durumu için önerilen yaklaşımdır. Çevirileri merkezileştirir, yinelemeyi ve CMS ile entegrasyonu kolaylaştırır.
|
|
40
|
+
|
|
41
|
+
```tsx fileName="hello-world.content.ts" contentDeclarationFormat="typescript"
|
|
42
|
+
import { t, type Dictionary } from "intlayer";
|
|
43
|
+
|
|
44
|
+
const helloWorldContent = {
|
|
45
|
+
key: "hello-world",
|
|
46
|
+
content: {
|
|
47
|
+
multilingualContent: t({
|
|
48
|
+
en: "Title of my component",
|
|
49
|
+
es: "Título de mi componente",
|
|
50
|
+
}),
|
|
51
|
+
},
|
|
52
|
+
} satisfies Dictionary;
|
|
53
|
+
|
|
54
|
+
export default helloWorldContent;
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
```js fileName="hello-world.content.mjs" contentDeclarationFormat="esm"
|
|
58
|
+
import { t } from "intlayer";
|
|
59
|
+
|
|
60
|
+
/** @type {import('intlayer').Dictionary} */
|
|
61
|
+
const helloWorldContent = {
|
|
62
|
+
key: "hello-world",
|
|
63
|
+
content: {
|
|
64
|
+
multilingualContent: t({
|
|
65
|
+
en: "Title of my component",
|
|
66
|
+
es: "Título de mi componente",
|
|
67
|
+
}),
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export default helloWorldContent;
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
```js fileName="hello-world.content.cjs" contentDeclarationFormat="json"
|
|
75
|
+
const { t } = require("intlayer");
|
|
76
|
+
|
|
77
|
+
/** @type {import('intlayer').Dictionary} */
|
|
78
|
+
const helloWorldContent = {
|
|
79
|
+
key: "hello-world",
|
|
80
|
+
content: {
|
|
81
|
+
multilingualContent: t({
|
|
82
|
+
en: "Title of my component",
|
|
83
|
+
es: "Título de mi componente",
|
|
84
|
+
}),
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
module.exports = helloWorldContent;
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```json fileName="hello-world.content.ts" contentDeclarationFormat="json"
|
|
92
|
+
{
|
|
93
|
+
"$schema": "https://intlayer.org/schema.json",
|
|
94
|
+
"key": "hello-world",
|
|
95
|
+
"content": {
|
|
96
|
+
"multilingualContent": {
|
|
97
|
+
"nodeType": "translation",
|
|
98
|
+
"translation": {
|
|
99
|
+
"en": "Title of my component",
|
|
100
|
+
"es": "Título de mi componente"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
> Önerilen: Bu format, Intlayer'ın görsel düzenleyicisini kullanırken veya çevirileri doğrudan kodda yönetirken en iyisidir.
|
|
108
|
+
|
|
109
|
+
## Yerel Ayar Başına Format
|
|
110
|
+
|
|
111
|
+
Bu format şunlar için yararlıdır:
|
|
112
|
+
|
|
113
|
+
- Çevirileri bağımsız olarak sürümlemek veya geçersiz kılmak istediğinizde.
|
|
114
|
+
- Makine veya insan çeviri iş akışlarını entegre ettiğinizde.
|
|
115
|
+
|
|
116
|
+
Yerel ayar alanını belirterek çevirileri ayrı yerel ayar dosyalarına bölebilirsiniz:
|
|
117
|
+
|
|
118
|
+
```tsx fileName="hello-world.en.content.ts" contentDeclarationFormat="typescript"
|
|
119
|
+
import { t, Locales, type Dictionary } from "intlayer";
|
|
120
|
+
|
|
121
|
+
const helloWorldContent = {
|
|
122
|
+
key: "hello-world",
|
|
123
|
+
locale: Locales.ENGLISH, // Önemli
|
|
124
|
+
content: { multilingualContent: "Title of my component" },
|
|
125
|
+
} satisfies Dictionary;
|
|
126
|
+
|
|
127
|
+
export default helloWorldContent;
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
```tsx fileName="hello-world.es.content.ts" contentDeclarationFormat="typescript"
|
|
131
|
+
import { t, Locales, type Dictionary } from "intlayer";
|
|
132
|
+
|
|
133
|
+
const helloWorldContent = {
|
|
134
|
+
key: "hello-world",
|
|
135
|
+
locale: Locales.SPANISH, // Önemli
|
|
136
|
+
content: { multilingualContent: "Título de mi componente" },
|
|
137
|
+
} satisfies Dictionary;
|
|
138
|
+
|
|
139
|
+
export default helloWorldContent;
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
```js fileName="hello-world.en.content.mjs" contentDeclarationFormat="esm"
|
|
143
|
+
import { t, Locales } from "intlayer";
|
|
144
|
+
|
|
145
|
+
/** @type {import('intlayer').Dictionary} */
|
|
146
|
+
const helloWorldContent = {
|
|
147
|
+
key: "hello-world",
|
|
148
|
+
locale: Locales.ENGLISH, // Önemli
|
|
149
|
+
content: { multilingualContent: "Title of my component" },
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export default helloWorldContent;
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
```tsx fileName="hello-world.es.content.mjs" contentDeclarationFormat="esm"
|
|
156
|
+
import { t, Locales } from "intlayer";
|
|
157
|
+
|
|
158
|
+
/** @type {import('intlayer').Dictionary} */
|
|
159
|
+
const helloWorldContent = {
|
|
160
|
+
key: "hello-world",
|
|
161
|
+
locale: Locales.SPANISH, // Önemli
|
|
162
|
+
content: { multilingualContent: "Título de mi componente" },
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export default helloWorldContent;
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
```js fileName="hello-world.en.content.cjs" contentDeclarationFormat="commonjs"
|
|
169
|
+
const { t, Locales } = require("intlayer");
|
|
170
|
+
|
|
171
|
+
/** @type {import('intlayer').Dictionary} */
|
|
172
|
+
const helloWorldContent = {
|
|
173
|
+
key: "hello-world",
|
|
174
|
+
locale: Locales.ENGLISH, // Önemli
|
|
175
|
+
content: {
|
|
176
|
+
multilingualContent: "Title of my component",
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
module.exports = helloWorldContent;
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
```tsx fileName="hello-world.es.content.cjs" contentDeclarationFormat="commonjs"
|
|
184
|
+
const { t, Locales } from "intlayer";
|
|
185
|
+
|
|
186
|
+
/** @type {import('intlayer').Dictionary} */
|
|
187
|
+
const helloWorldContent = {
|
|
188
|
+
key: "hello-world",
|
|
189
|
+
locale: Locales.SPANISH, // Önemli
|
|
190
|
+
content: {
|
|
191
|
+
multilingualContent: "Título de mi componente",
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
module.exports = helloWorldContent;
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
```json5 fileName="hello-world.en.content.json" contentDeclarationFormat="json"
|
|
199
|
+
{
|
|
200
|
+
"$schema": "https://intlayer.org/schema.json",
|
|
201
|
+
"key": "hello-world",
|
|
202
|
+
"locale": "en", // Önemli
|
|
203
|
+
"content": {
|
|
204
|
+
"multilingualContent": "Title of my component",
|
|
205
|
+
},
|
|
206
|
+
}
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
```json5 fileName="hello-world.es.content.json" contentDeclarationFormat="json"
|
|
210
|
+
{
|
|
211
|
+
"$schema": "https://intlayer.org/schema.json",
|
|
212
|
+
"key": "hello-world",
|
|
213
|
+
"locale": "es", // Önemli
|
|
214
|
+
"content": {
|
|
215
|
+
"multilingualContent": "Título de mi componente",
|
|
216
|
+
},
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
> Önemli: Yerel ayar alanının tanımlandığından emin olun. Bu, Intlayer'a dosyanın hangi dili temsil ettiğini söyler.
|
|
221
|
+
|
|
222
|
+
> Not: Her iki durumda da, içerik bildirim dosyası Intlayer tarafından tanınmak için `*.content.{ts,tsx,js,jsx,mjs,cjs,json}` adlandırma desenini takip etmelidir. `.[locale]` soneki isteğe bağlıdır ve sadece adlandırma kuralı olarak kullanılır.
|
|
223
|
+
|
|
224
|
+
## Formatları Karıştırma
|
|
225
|
+
|
|
226
|
+
Aynı içerik anahtarı için her iki bildirim yaklaşımını da birleştirebilirsiniz. Örneğin:
|
|
227
|
+
|
|
228
|
+
- Temel içeriğinizi index.content.ts gibi bir dosyada statik olarak bildirin.
|
|
229
|
+
- Belirli çevirileri index.fr.content.ts veya index.content.json gibi ayrı dosyalarda ekleyin veya geçersiz kılın.
|
|
230
|
+
|
|
231
|
+
Bu kurulum özellikle şunlar için yararlıdır:
|
|
232
|
+
|
|
233
|
+
- İlk içerik yapısını kodda tanımlamak istediğinizde.
|
|
234
|
+
- Daha sonra CMS veya otomatik araçları kullanarak çevirileri zenginleştirmeyi veya tamamlamayı planladığınızda.
|
|
235
|
+
|
|
236
|
+
```bash codeFormat="typescript"
|
|
237
|
+
.
|
|
238
|
+
└── Components
|
|
239
|
+
└── MyComponent
|
|
240
|
+
├── index.content.ts
|
|
241
|
+
├── index.content.json
|
|
242
|
+
└── index.ts
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Örnek
|
|
246
|
+
|
|
247
|
+
İşte çok dilli bir içerik bildirim dosyası:
|
|
248
|
+
|
|
249
|
+
```tsx fileName="Components/MyComponent/index.content.ts"
|
|
250
|
+
import { t, type Dictionary } from "intlayer";
|
|
251
|
+
|
|
252
|
+
const helloWorldContent = {
|
|
253
|
+
key: "hello-world",
|
|
254
|
+
locale: Locales.ENGLISH,
|
|
255
|
+
content: {
|
|
256
|
+
multilingualContent: "Title of my component",
|
|
257
|
+
projectName: "My project",
|
|
258
|
+
},
|
|
259
|
+
} satisfies Dictionary;
|
|
260
|
+
|
|
261
|
+
export default helloWorldContent;
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
```json fileName="Components/MyComponent/index.content.json"
|
|
265
|
+
{
|
|
266
|
+
"$schema": "https://intlayer.org/schema.json",
|
|
267
|
+
"key": "hello-world",
|
|
268
|
+
"content": {
|
|
269
|
+
"multilingualContent": {
|
|
270
|
+
"nodeType": "translation",
|
|
271
|
+
"translation": {
|
|
272
|
+
"fr": "Titre de mon composant",
|
|
273
|
+
"es": "Título de mi componente"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
Intlayer çok dilli ve yerel ayar başına dosyaları otomatik olarak birleştirir.
|
|
281
|
+
|
|
282
|
+
```tsx fileName="Components/MyComponent/index.ts"
|
|
283
|
+
import { getIntlayer, Locales } from "intlayer";
|
|
284
|
+
|
|
285
|
+
const intlayer = getIntlayer("hello-world"); // Varsayılan yerel ayar ENGLISH, bu yüzden ENGLISH içeriği döndürecek
|
|
286
|
+
|
|
287
|
+
console.log(JSON.stringify(intlayer, null, 2));
|
|
288
|
+
// Sonuç:
|
|
289
|
+
// {
|
|
290
|
+
// "multilingualContent": "Title of my component",
|
|
291
|
+
// "projectName": "My project"
|
|
292
|
+
// }
|
|
293
|
+
|
|
294
|
+
const intlayer = getIntlayer("hello-world", Locales.SPANISH);
|
|
295
|
+
|
|
296
|
+
console.log(JSON.stringify(intlayer, null, 2));
|
|
297
|
+
// Sonuç:
|
|
298
|
+
// {
|
|
299
|
+
// "multilingualContent": "Título de mi componente",
|
|
300
|
+
// "projectName": "My project"
|
|
301
|
+
// }
|
|
302
|
+
|
|
303
|
+
const intlayer = getIntlayer("hello-world", Locales.FRENCH);
|
|
304
|
+
|
|
305
|
+
console.log(JSON.stringify(intlayer, null, 2));
|
|
306
|
+
// Sonuç:
|
|
307
|
+
// {
|
|
308
|
+
// "multilingualContent": "Titre de mon composant",
|
|
309
|
+
// "projectName": "My project"
|
|
310
|
+
// }
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
### Otomatik Çeviri Oluşturma
|
|
314
|
+
|
|
315
|
+
Eksik çevirileri tercih ettiğiniz servisler temelinde otomatik olarak doldurmak için [intlayer CLI](https://github.com/aymericzip/intlayer/blob/main/docs/docs/en/intlayer_cli.md)'yi kullanın.
|
|
316
|
+
|
|
317
|
+
## Doküman Geçmişi
|
|
318
|
+
|
|
319
|
+
| Sürüm | Tarih | Değişiklikler |
|
|
320
|
+
| ------ | ---------- | ----------------- |
|
|
321
|
+
| 5.5.10 | 2025-06-29 | Geçmiş başlatıldı |
|