@intlayer/docs 5.7.5 → 5.7.6-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.
Files changed (97) hide show
  1. package/blog/ar/intlayer_with_i18next.md +1 -1
  2. package/dist/cjs/common.cjs +0 -1
  3. package/dist/cjs/common.cjs.map +1 -1
  4. package/dist/cjs/generated/docs.entry.cjs +80 -0
  5. package/dist/cjs/generated/docs.entry.cjs.map +1 -1
  6. package/dist/esm/common.mjs +0 -1
  7. package/dist/esm/common.mjs.map +1 -1
  8. package/dist/esm/generated/docs.entry.mjs +80 -0
  9. package/dist/esm/generated/docs.entry.mjs.map +1 -1
  10. package/dist/types/common.d.ts.map +1 -1
  11. package/dist/types/generated/docs.entry.d.ts +1 -0
  12. package/dist/types/generated/docs.entry.d.ts.map +1 -1
  13. package/docs/ar/packages/react-intlayer/useI18n.md +250 -0
  14. package/docs/de/dictionary/gender.md +3 -3
  15. package/docs/de/packages/react-intlayer/useI18n.md +250 -0
  16. package/docs/en/configuration.md +2 -2
  17. package/docs/en/packages/react-intlayer/useI18n.md +250 -0
  18. package/docs/en-GB/packages/react-intlayer/useI18n.md +254 -0
  19. package/docs/es/dictionary/enumeration.md +1 -1
  20. package/docs/es/dictionary/gender.md +3 -3
  21. package/docs/es/locale_mapper.md +1 -1
  22. package/docs/es/packages/react-intlayer/useI18n.md +250 -0
  23. package/docs/fr/intlayer_with_vite+preact.md +1 -1
  24. package/docs/fr/packages/react-intlayer/useI18n.md +250 -0
  25. package/docs/hi/dictionary/enumeration.md +0 -1
  26. package/docs/hi/packages/react-intlayer/useI18n.md +259 -0
  27. package/docs/it/packages/react-intlayer/useI18n.md +250 -0
  28. package/docs/ja/dictionary/enumeration.md +0 -1
  29. package/docs/ja/packages/react-intlayer/useI18n.md +250 -0
  30. package/docs/ko/dictionary/enumeration.md +0 -1
  31. package/docs/ko/packages/react-intlayer/useI18n.md +250 -0
  32. package/docs/pt/packages/react-intlayer/useI18n.md +250 -0
  33. package/docs/ru/dictionary/enumeration.md +0 -1
  34. package/docs/ru/packages/react-intlayer/useI18n.md +250 -0
  35. package/docs/zh/packages/react-intlayer/useI18n.md +250 -0
  36. package/frequent_questions/ar/unknown_command.md +1 -1
  37. package/frequent_questions/de/array_as_content_declaration.md +1 -1
  38. package/frequent_questions/de/build_dictionaries.md +1 -1
  39. package/frequent_questions/de/build_error_CI_CD.md +1 -1
  40. package/frequent_questions/de/customized_locale_list.md +1 -1
  41. package/frequent_questions/de/esbuild_error.md +1 -1
  42. package/frequent_questions/de/intlayer_command_undefined.md +1 -1
  43. package/frequent_questions/de/locale_incorect_in_url.md +1 -1
  44. package/frequent_questions/de/static_rendering.md +1 -1
  45. package/frequent_questions/de/translated_path_url.md +1 -1
  46. package/frequent_questions/de/unknown_command.md +1 -1
  47. package/frequent_questions/en-GB/customized_locale_list.md +1 -1
  48. package/frequent_questions/es/array_as_content_declaration.md +1 -1
  49. package/frequent_questions/es/build_dictionaries.md +1 -1
  50. package/frequent_questions/es/customized_locale_list.md +1 -1
  51. package/frequent_questions/es/domain_routing.md +1 -1
  52. package/frequent_questions/es/get_locale_cookie.md +1 -1
  53. package/frequent_questions/es/intlayer_command_undefined.md +1 -1
  54. package/frequent_questions/es/locale_incorect_in_url.md +1 -1
  55. package/frequent_questions/es/static_rendering.md +1 -1
  56. package/frequent_questions/es/translated_path_url.md +1 -1
  57. package/frequent_questions/es/unknown_command.md +1 -1
  58. package/frequent_questions/fr/array_as_content_declaration.md +1 -1
  59. package/frequent_questions/fr/build_dictionaries.md +1 -1
  60. package/frequent_questions/fr/customized_locale_list.md +1 -1
  61. package/frequent_questions/fr/domain_routing.md +1 -1
  62. package/frequent_questions/fr/esbuild_error.md +1 -1
  63. package/frequent_questions/fr/intlayer_command_undefined.md +1 -1
  64. package/frequent_questions/fr/static_rendering.md +1 -1
  65. package/frequent_questions/fr/translated_path_url.md +1 -1
  66. package/frequent_questions/fr/unknown_command.md +1 -1
  67. package/frequent_questions/it/array_as_content_declaration.md +1 -1
  68. package/frequent_questions/it/build_dictionaries.md +1 -1
  69. package/frequent_questions/it/customized_locale_list.md +1 -1
  70. package/frequent_questions/it/esbuild_error.md +1 -1
  71. package/frequent_questions/it/intlayer_command_undefined.md +1 -1
  72. package/frequent_questions/it/locale_incorect_in_url.md +1 -1
  73. package/frequent_questions/it/static_rendering.md +1 -1
  74. package/frequent_questions/it/translated_path_url.md +1 -1
  75. package/frequent_questions/it/unknown_command.md +1 -1
  76. package/frequent_questions/ko/build_dictionaries.md +2 -2
  77. package/frequent_questions/ko/customized_locale_list.md +3 -3
  78. package/frequent_questions/ko/intlayer_command_undefined.md +3 -3
  79. package/frequent_questions/pt/array_as_content_declaration.md +1 -1
  80. package/frequent_questions/pt/build_dictionaries.md +1 -1
  81. package/frequent_questions/pt/build_error_CI_CD.md +1 -1
  82. package/frequent_questions/pt/customized_locale_list.md +1 -1
  83. package/frequent_questions/pt/domain_routing.md +1 -1
  84. package/frequent_questions/pt/esbuild_error.md +1 -1
  85. package/frequent_questions/pt/intlayer_command_undefined.md +1 -1
  86. package/frequent_questions/pt/locale_incorect_in_url.md +1 -1
  87. package/frequent_questions/pt/static_rendering.md +1 -1
  88. package/frequent_questions/pt/translated_path_url.md +1 -1
  89. package/frequent_questions/pt/unknown_command.md +1 -1
  90. package/frequent_questions/zh/build_dictionaries.md +3 -3
  91. package/frequent_questions/zh/customized_locale_list.md +3 -3
  92. package/frequent_questions/zh/esbuild_error.md +3 -3
  93. package/frequent_questions/zh/intlayer_command_undefined.md +3 -3
  94. package/frequent_questions/zh/translated_path_url.md +3 -3
  95. package/package.json +8 -8
  96. package/src/common.ts +0 -1
  97. package/src/generated/docs.entry.ts +80 -0
@@ -15,9 +15,9 @@ keywords:
15
15
  - 로케일
16
16
  - 목록
17
17
  slugs:
18
- - 문서
19
- - FAQ
20
- - 사용자정의-로케일-목록
18
+ - doc
19
+ - faq
20
+ - customized-locale-list
21
21
  ---
22
22
 
23
23
  # 영어와 같은 특정 언어 유형을 차단할 수 있나요? 사전에 영어를 추가하고 있는데 웹사이트에서는 아직 영어를 사용 가능하게 하고 싶지 않습니다.
@@ -15,9 +15,9 @@ keywords:
15
15
  - next.js
16
16
  - vite
17
17
  slugs:
18
- - 문서
19
- - FAQ
20
- - intlayer-명령어-정의되지-않음
18
+ - doc
19
+ - faq
20
+ - intlayer-command-undefined
21
21
  ---
22
22
 
23
23
  # Intlayer 명령어 정의되지 않음
@@ -11,7 +11,7 @@ keywords:
11
11
  slugs:
12
12
  - doc
13
13
  - faq
14
- - array-como-declaracao-de-conteudo
14
+ - array-as-content-declaration
15
15
  ---
16
16
 
17
17
  # Posso usar um array como declaração de conteúdo?
@@ -17,7 +17,7 @@ keywords:
17
17
  slugs:
18
18
  - doc
19
19
  - faq
20
- - construir-dicionarios
20
+ - build-dictionaries
21
21
  ---
22
22
 
23
23
  # Construir Dicionários
@@ -17,7 +17,7 @@ keywords:
17
17
  slugs:
18
18
  - doc
19
19
  - faq
20
- - erro-build-ci-cd
20
+ - build-error-ci-cd
21
21
  ---
22
22
 
23
23
  # Erro no build em CI/CD
@@ -17,7 +17,7 @@ keywords:
17
17
  slugs:
18
18
  - doc
19
19
  - faq
20
- - lista-de-idiomas-personalizada
20
+ - customized-locale-list
21
21
  ---
22
22
 
23
23
  # É possível bloquear um tipo de idioma, como o inglês? Estou adicionando inglês nos meus dicionários, mas ainda não quero que o inglês esteja disponível no site
@@ -17,7 +17,7 @@ keywords:
17
17
  slugs:
18
18
  - doc
19
19
  - faq
20
- - roteamento-por-dominio
20
+ - domain-routing
21
21
  ---
22
22
 
23
23
  # Como configurar **roteamento baseado em domínio** com Intlayer em vez de caminhos `/[locale]/`?
@@ -16,7 +16,7 @@ keywords:
16
16
  slugs:
17
17
  - doc
18
18
  - faq
19
- - erro-esbuild
19
+ - esbuild-error
20
20
  ---
21
21
 
22
22
  # Erro ESBuild
@@ -17,7 +17,7 @@ keywords:
17
17
  slugs:
18
18
  - doc
19
19
  - faq
20
- - comando-intlayer-indefinido
20
+ - intlayer-command-undefined
21
21
  ---
22
22
 
23
23
  # Comando Intlayer indefinido
@@ -17,7 +17,7 @@ keywords:
17
17
  slugs:
18
18
  - doc
19
19
  - faq
20
- - locale-incoreto-na-url
20
+ - locale-incorect-in-url
21
21
  ---
22
22
 
23
23
  # Locale Incorreto Recuperado da URL
@@ -17,7 +17,7 @@ keywords:
17
17
  slugs:
18
18
  - doc
19
19
  - faq
20
- - renderizacao-estatica
20
+ - static-rendering
21
21
  ---
22
22
 
23
23
  # Renderização Estática vs Dinâmica com i18n no Next.js
@@ -17,7 +17,7 @@ keywords:
17
17
  slugs:
18
18
  - doc
19
19
  - faq
20
- - caminho-url-traduzido
20
+ - translated-path-url
21
21
  ---
22
22
 
23
23
  # É possível traduzir a URL da seguinte forma:
@@ -17,7 +17,7 @@ keywords:
17
17
  slugs:
18
18
  - doc
19
19
  - faq
20
- - comando-desconhecido
20
+ - unknown-command
21
21
  ---
22
22
 
23
23
  # erro: comando desconhecido fill / build / etc
@@ -15,9 +15,9 @@ keywords:
15
15
  - next.js
16
16
  - vite
17
17
  slugs:
18
- - 文档
19
- - 常见问题
20
- - 构建字典
18
+ - doc
19
+ - faq
20
+ - build-dictionaries
21
21
  ---
22
22
 
23
23
  # 构建字典
@@ -15,9 +15,9 @@ keywords:
15
15
  - 语言环境
16
16
  - 列表
17
17
  slugs:
18
- - 文档
19
- - 常见问题
20
- - 自定义语言列表
18
+ - doc
19
+ - faq
20
+ - customized-locale-list
21
21
  ---
22
22
 
23
23
  # 是否可以屏蔽某种语言类型,比如英语?我在词典中添加了英语,但暂时不想让网站上显示英语
@@ -14,9 +14,9 @@ keywords:
14
14
  - react-native
15
15
  - lynx
16
16
  slugs:
17
- - 文档
18
- - 常见问题
19
- - esbuild-错误
17
+ - doc
18
+ - faq
19
+ - esbuild-error
20
20
  ---
21
21
 
22
22
  # ESBuild 错误
@@ -15,9 +15,9 @@ keywords:
15
15
  - next.js
16
16
  - vite
17
17
  slugs:
18
- - 文档
19
- - 常见问题
20
- - intlayer-命令-未定义
18
+ - doc
19
+ - faq
20
+ - intlayer-command-undefined
21
21
  ---
22
22
 
23
23
  # Intlayer 命令未定义
@@ -15,9 +15,9 @@ keywords:
15
15
  - 语言环境
16
16
  - url
17
17
  slugs:
18
- - 文档
19
- - 常见问题
20
- - 翻译路径-url
18
+ - doc
19
+ - faq
20
+ - translated-path-url
21
21
  ---
22
22
 
23
23
  # 是否可以按以下方式翻译 URL:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/docs",
3
- "version": "5.7.5",
3
+ "version": "5.7.6-canary.0",
4
4
  "private": false,
5
5
  "description": "Intlayer documentation",
6
6
  "keywords": [
@@ -49,8 +49,8 @@
49
49
  "legal"
50
50
  ],
51
51
  "dependencies": {
52
- "@intlayer/config": "5.7.5",
53
- "intlayer": "5.7.5"
52
+ "@intlayer/config": "5.7.6-canary.0",
53
+ "intlayer": "5.7.6-canary.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/node": "^22.15.30",
@@ -65,16 +65,16 @@
65
65
  "tsx": "^4.19.4",
66
66
  "typescript": "^5.8.3",
67
67
  "vitest": "^3.2.2",
68
- "@intlayer/api": "5.7.5",
69
- "@intlayer/cli": "5.7.5",
68
+ "@intlayer/cli": "5.7.6-canary.0",
69
+ "@intlayer/api": "5.7.6-canary.0",
70
70
  "@utils/ts-config": "1.0.4",
71
71
  "@utils/ts-config-types": "1.0.4",
72
72
  "@utils/tsup-config": "1.0.4"
73
73
  },
74
74
  "peerDependencies": {
75
- "@intlayer/api": "5.7.5",
76
- "@intlayer/cli": "5.7.5",
77
- "@intlayer/config": "5.7.5"
75
+ "@intlayer/api": "5.7.6-canary.0",
76
+ "@intlayer/cli": "5.7.6-canary.0",
77
+ "@intlayer/config": "5.7.6-canary.0"
78
78
  },
79
79
  "engines": {
80
80
  "node": ">=14.18"
package/src/common.ts CHANGED
@@ -106,7 +106,6 @@ export const getFileMetadata = async <
106
106
 
107
107
  return formatMetadata(docKey as string, file, locale) as R;
108
108
  } catch (error) {
109
- console.log({ error, docKey, locale });
110
109
  throw error;
111
110
  }
112
111
  };
@@ -5121,6 +5121,86 @@ export const docsEntry = {
5121
5121
  )
5122
5122
  ),
5123
5123
  } as unknown as Record<LocalesValues, Promise<string>>,
5124
+ './docs/en/packages/react-intlayer/useI18n.md': {
5125
+ en: Promise.resolve(
5126
+ readFile(
5127
+ join(dir, '../../../docs/en/packages/react-intlayer/useI18n.md'),
5128
+ 'utf8'
5129
+ )
5130
+ ),
5131
+ fr: Promise.resolve(
5132
+ readFile(
5133
+ join(dir, '../../../docs/fr/packages/react-intlayer/useI18n.md'),
5134
+ 'utf8'
5135
+ )
5136
+ ),
5137
+ ru: Promise.resolve(
5138
+ readFile(
5139
+ join(dir, '../../../docs/ru/packages/react-intlayer/useI18n.md'),
5140
+ 'utf8'
5141
+ )
5142
+ ),
5143
+ ja: Promise.resolve(
5144
+ readFile(
5145
+ join(dir, '../../../docs/ja/packages/react-intlayer/useI18n.md'),
5146
+ 'utf8'
5147
+ )
5148
+ ),
5149
+ ko: Promise.resolve(
5150
+ readFile(
5151
+ join(dir, '../../../docs/ko/packages/react-intlayer/useI18n.md'),
5152
+ 'utf8'
5153
+ )
5154
+ ),
5155
+ zh: Promise.resolve(
5156
+ readFile(
5157
+ join(dir, '../../../docs/zh/packages/react-intlayer/useI18n.md'),
5158
+ 'utf8'
5159
+ )
5160
+ ),
5161
+ es: Promise.resolve(
5162
+ readFile(
5163
+ join(dir, '../../../docs/es/packages/react-intlayer/useI18n.md'),
5164
+ 'utf8'
5165
+ )
5166
+ ),
5167
+ de: Promise.resolve(
5168
+ readFile(
5169
+ join(dir, '../../../docs/de/packages/react-intlayer/useI18n.md'),
5170
+ 'utf8'
5171
+ )
5172
+ ),
5173
+ ar: Promise.resolve(
5174
+ readFile(
5175
+ join(dir, '../../../docs/ar/packages/react-intlayer/useI18n.md'),
5176
+ 'utf8'
5177
+ )
5178
+ ),
5179
+ pt: Promise.resolve(
5180
+ readFile(
5181
+ join(dir, '../../../docs/pt/packages/react-intlayer/useI18n.md'),
5182
+ 'utf8'
5183
+ )
5184
+ ),
5185
+ 'en-GB': Promise.resolve(
5186
+ readFile(
5187
+ join(dir, '../../../docs/en-GB/packages/react-intlayer/useI18n.md'),
5188
+ 'utf8'
5189
+ )
5190
+ ),
5191
+ it: Promise.resolve(
5192
+ readFile(
5193
+ join(dir, '../../../docs/it/packages/react-intlayer/useI18n.md'),
5194
+ 'utf8'
5195
+ )
5196
+ ),
5197
+ hi: Promise.resolve(
5198
+ readFile(
5199
+ join(dir, '../../../docs/hi/packages/react-intlayer/useI18n.md'),
5200
+ 'utf8'
5201
+ )
5202
+ ),
5203
+ } as unknown as Record<LocalesValues, Promise<string>>,
5124
5204
  './docs/en/packages/react-intlayer/useIntlayer.md': {
5125
5205
  en: Promise.resolve(
5126
5206
  readFile(