@jjlmoya/utils-textiles 1.20.0 → 1.22.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 (209) hide show
  1. package/package.json +1 -1
  2. package/src/category/i18n/de.ts +76 -76
  3. package/src/category/i18n/en.ts +76 -76
  4. package/src/category/i18n/es.ts +76 -76
  5. package/src/category/i18n/fr.ts +76 -76
  6. package/src/category/i18n/id.ts +76 -76
  7. package/src/category/i18n/it.ts +76 -76
  8. package/src/category/i18n/ja.ts +76 -76
  9. package/src/category/i18n/ko.ts +76 -76
  10. package/src/category/i18n/nl.ts +76 -76
  11. package/src/category/i18n/pl.ts +76 -76
  12. package/src/category/i18n/pt.ts +76 -76
  13. package/src/category/i18n/ru.ts +76 -76
  14. package/src/category/i18n/sv.ts +76 -76
  15. package/src/category/i18n/zh.ts +76 -76
  16. package/src/category/index.ts +2 -0
  17. package/src/category/seo.astro +1 -1
  18. package/src/components/PreviewNavSidebar.astro +1 -1
  19. package/src/components/PreviewToolbar.astro +1 -1
  20. package/src/data.ts +1 -1
  21. package/src/entries.ts +4 -1
  22. package/src/env.d.ts +1 -1
  23. package/src/index.ts +1 -1
  24. package/src/layouts/PreviewLayout.astro +113 -113
  25. package/src/pages/index.astro +1 -1
  26. package/src/tests/faq_count.test.ts +19 -19
  27. package/src/tests/i18n_coverage.test.ts +4 -2
  28. package/src/tests/locale_spelling.test.ts +44 -0
  29. package/src/tests/mocks/astro_mock.js +1 -1
  30. package/src/tests/no_en_dash.test.ts +70 -70
  31. package/src/tests/no_h1_in_components.test.ts +1 -1
  32. package/src/tests/seo_length.test.ts +22 -22
  33. package/src/tests/seo_translation_completeness.test.ts +69 -0
  34. package/src/tests/spanish_leakage.test.ts +175 -153
  35. package/src/tests/tool_validation.test.ts +17 -17
  36. package/src/tool/burnTest/i18n/es.ts +211 -211
  37. package/src/tool/burnTest/i18n/fr.ts +211 -211
  38. package/src/tool/burnTest/i18n/ja.ts +211 -211
  39. package/src/tool/burnTest/i18n/ko.ts +211 -211
  40. package/src/tool/burnTest/i18n/pl.ts +211 -211
  41. package/src/tool/burnTest/i18n/ru.ts +211 -211
  42. package/src/tool/burnTest/i18n/sv.ts +211 -211
  43. package/src/tool/burnTest/i18n/zh.ts +211 -211
  44. package/src/tool/burnTest/seo.astro +15 -15
  45. package/src/tool/clothingSizeConverter/i18n/de.ts +348 -348
  46. package/src/tool/clothingSizeConverter/i18n/en.ts +348 -348
  47. package/src/tool/clothingSizeConverter/i18n/fr.ts +348 -348
  48. package/src/tool/clothingSizeConverter/i18n/ja.ts +348 -348
  49. package/src/tool/clothingSizeConverter/i18n/ko.ts +348 -348
  50. package/src/tool/clothingSizeConverter/i18n/nl.ts +348 -348
  51. package/src/tool/clothingSizeConverter/i18n/pl.ts +348 -348
  52. package/src/tool/clothingSizeConverter/i18n/ru.ts +348 -348
  53. package/src/tool/clothingSizeConverter/i18n/sv.ts +348 -348
  54. package/src/tool/clothingSizeConverter/i18n/tr.ts +348 -348
  55. package/src/tool/clothingSizeConverter/i18n/zh.ts +348 -348
  56. package/src/tool/clothingSizeConverter/seo.astro +15 -15
  57. package/src/tool/embroideryStitchPricingEstimator/bibliography.astro +6 -0
  58. package/src/tool/embroideryStitchPricingEstimator/bibliography.ts +12 -0
  59. package/src/tool/embroideryStitchPricingEstimator/component.astro +111 -0
  60. package/src/tool/embroideryStitchPricingEstimator/controller.ts +111 -0
  61. package/src/tool/embroideryStitchPricingEstimator/dom-views.ts +94 -0
  62. package/src/tool/embroideryStitchPricingEstimator/embroidery-stitch-count-pricing-estimator.css +438 -0
  63. package/src/tool/embroideryStitchPricingEstimator/entry.ts +29 -0
  64. package/src/tool/embroideryStitchPricingEstimator/evaluator.ts +22 -0
  65. package/src/tool/embroideryStitchPricingEstimator/i18n/de.ts +38 -0
  66. package/src/tool/embroideryStitchPricingEstimator/i18n/en.ts +194 -0
  67. package/src/tool/embroideryStitchPricingEstimator/i18n/es.ts +38 -0
  68. package/src/tool/embroideryStitchPricingEstimator/i18n/fr.ts +38 -0
  69. package/src/tool/embroideryStitchPricingEstimator/i18n/id.ts +38 -0
  70. package/src/tool/embroideryStitchPricingEstimator/i18n/it.ts +38 -0
  71. package/src/tool/embroideryStitchPricingEstimator/i18n/ja.ts +38 -0
  72. package/src/tool/embroideryStitchPricingEstimator/i18n/ko.ts +38 -0
  73. package/src/tool/embroideryStitchPricingEstimator/i18n/nl.ts +38 -0
  74. package/src/tool/embroideryStitchPricingEstimator/i18n/pl.ts +38 -0
  75. package/src/tool/embroideryStitchPricingEstimator/i18n/pt.ts +38 -0
  76. package/src/tool/embroideryStitchPricingEstimator/i18n/ru.ts +38 -0
  77. package/src/tool/embroideryStitchPricingEstimator/i18n/sv.ts +38 -0
  78. package/src/tool/embroideryStitchPricingEstimator/i18n/tr.ts +38 -0
  79. package/src/tool/embroideryStitchPricingEstimator/i18n/zh.ts +38 -0
  80. package/src/tool/embroideryStitchPricingEstimator/index.ts +11 -0
  81. package/src/tool/embroideryStitchPricingEstimator/logic.test.ts +40 -0
  82. package/src/tool/embroideryStitchPricingEstimator/logic.ts +86 -0
  83. package/src/tool/embroideryStitchPricingEstimator/seo.astro +15 -0
  84. package/src/tool/embroideryStitchPricingEstimator/storage.ts +20 -0
  85. package/src/tool/embroideryStitchPricingEstimator/ui.ts +53 -0
  86. package/src/tool/fabricProjectCalculator/i18n/de.ts +236 -236
  87. package/src/tool/fabricProjectCalculator/i18n/ja.ts +236 -236
  88. package/src/tool/fabricProjectCalculator/i18n/ko.ts +236 -236
  89. package/src/tool/fabricProjectCalculator/i18n/nl.ts +236 -236
  90. package/src/tool/fabricProjectCalculator/i18n/pl.ts +236 -236
  91. package/src/tool/fabricProjectCalculator/i18n/ru.ts +236 -236
  92. package/src/tool/fabricProjectCalculator/i18n/sv.ts +236 -236
  93. package/src/tool/fabricProjectCalculator/i18n/tr.ts +236 -236
  94. package/src/tool/fabricProjectCalculator/i18n/zh.ts +236 -236
  95. package/src/tool/fabricProjectCalculator/seo.astro +15 -15
  96. package/src/tool/fabricTruth/i18n/de.ts +268 -268
  97. package/src/tool/fabricTruth/i18n/en.ts +268 -268
  98. package/src/tool/fabricTruth/i18n/es.ts +302 -302
  99. package/src/tool/fabricTruth/i18n/fr.ts +268 -268
  100. package/src/tool/fabricTruth/i18n/id.ts +268 -268
  101. package/src/tool/fabricTruth/i18n/it.ts +268 -268
  102. package/src/tool/fabricTruth/i18n/ja.ts +268 -268
  103. package/src/tool/fabricTruth/i18n/ko.ts +268 -268
  104. package/src/tool/fabricTruth/i18n/nl.ts +268 -268
  105. package/src/tool/fabricTruth/i18n/pl.ts +268 -268
  106. package/src/tool/fabricTruth/i18n/pt.ts +268 -268
  107. package/src/tool/fabricTruth/i18n/ru.ts +268 -268
  108. package/src/tool/fabricTruth/i18n/sv.ts +268 -268
  109. package/src/tool/fabricTruth/i18n/tr.ts +268 -268
  110. package/src/tool/fabricTruth/i18n/zh.ts +272 -272
  111. package/src/tool/fabricTruth/seo.astro +15 -15
  112. package/src/tool/fiberPrep/i18n/de.ts +215 -215
  113. package/src/tool/fiberPrep/i18n/fr.ts +215 -215
  114. package/src/tool/fiberPrep/i18n/ja.ts +215 -215
  115. package/src/tool/fiberPrep/i18n/ko.ts +215 -215
  116. package/src/tool/fiberPrep/i18n/nl.ts +215 -215
  117. package/src/tool/fiberPrep/i18n/pl.ts +215 -215
  118. package/src/tool/fiberPrep/i18n/ru.ts +215 -215
  119. package/src/tool/fiberPrep/i18n/sv.ts +215 -215
  120. package/src/tool/fiberPrep/i18n/tr.ts +215 -215
  121. package/src/tool/fiberPrep/i18n/zh.ts +215 -215
  122. package/src/tool/fiberPrep/seo.astro +15 -15
  123. package/src/tool/knittingGauge/i18n/de.ts +224 -224
  124. package/src/tool/knittingGauge/i18n/ja.ts +224 -224
  125. package/src/tool/knittingGauge/i18n/ko.ts +224 -224
  126. package/src/tool/knittingGauge/i18n/pl.ts +224 -224
  127. package/src/tool/knittingGauge/i18n/ru.ts +224 -224
  128. package/src/tool/knittingGauge/i18n/tr.ts +224 -224
  129. package/src/tool/knittingGauge/i18n/zh.ts +224 -224
  130. package/src/tool/knittingGauge/seo.astro +15 -15
  131. package/src/tool/laundryGuide/i18n/de.ts +271 -271
  132. package/src/tool/laundryGuide/i18n/en.ts +271 -271
  133. package/src/tool/laundryGuide/i18n/es.ts +271 -271
  134. package/src/tool/laundryGuide/i18n/fr.ts +255 -255
  135. package/src/tool/laundryGuide/i18n/id.ts +271 -271
  136. package/src/tool/laundryGuide/i18n/it.ts +271 -271
  137. package/src/tool/laundryGuide/i18n/ja.ts +271 -271
  138. package/src/tool/laundryGuide/i18n/ko.ts +271 -271
  139. package/src/tool/laundryGuide/i18n/nl.ts +271 -271
  140. package/src/tool/laundryGuide/i18n/pl.ts +271 -271
  141. package/src/tool/laundryGuide/i18n/pt.ts +271 -271
  142. package/src/tool/laundryGuide/i18n/ru.ts +271 -271
  143. package/src/tool/laundryGuide/i18n/sv.ts +271 -271
  144. package/src/tool/laundryGuide/i18n/tr.ts +271 -271
  145. package/src/tool/laundryGuide/i18n/zh.ts +271 -271
  146. package/src/tool/laundryGuide/seo.astro +15 -15
  147. package/src/tool/needleConverter/i18n/de.ts +202 -202
  148. package/src/tool/needleConverter/i18n/es.ts +207 -207
  149. package/src/tool/needleConverter/i18n/fr.ts +207 -207
  150. package/src/tool/needleConverter/i18n/ja.ts +202 -202
  151. package/src/tool/needleConverter/i18n/ko.ts +202 -202
  152. package/src/tool/needleConverter/i18n/nl.ts +202 -202
  153. package/src/tool/needleConverter/i18n/pl.ts +202 -202
  154. package/src/tool/needleConverter/i18n/ru.ts +202 -202
  155. package/src/tool/needleConverter/i18n/sv.ts +202 -202
  156. package/src/tool/needleConverter/i18n/tr.ts +202 -202
  157. package/src/tool/needleConverter/i18n/zh.ts +202 -202
  158. package/src/tool/needleConverter/seo.astro +15 -15
  159. package/src/tool/sewingPatternScaler/component.astro +236 -236
  160. package/src/tool/sewingPatternScaler/i18n/fr.ts +170 -170
  161. package/src/tool/sewingPatternScaler/i18n/ja.ts +114 -114
  162. package/src/tool/sewingPatternScaler/i18n/ko.ts +114 -114
  163. package/src/tool/sewingPatternScaler/i18n/nl.ts +114 -114
  164. package/src/tool/sewingPatternScaler/i18n/pl.ts +114 -114
  165. package/src/tool/sewingPatternScaler/i18n/ru.ts +114 -114
  166. package/src/tool/sewingPatternScaler/i18n/sv.ts +114 -114
  167. package/src/tool/sewingPatternScaler/i18n/tr.ts +114 -114
  168. package/src/tool/sewingPatternScaler/i18n/zh.ts +114 -114
  169. package/src/tool/sewingPatternScaler/seo.astro +15 -15
  170. package/src/tool/shoeSizeConverter/i18n/fr.ts +183 -183
  171. package/src/tool/shoeSizeConverter/i18n/ja.ts +179 -179
  172. package/src/tool/shoeSizeConverter/i18n/ko.ts +179 -179
  173. package/src/tool/shoeSizeConverter/i18n/nl.ts +179 -179
  174. package/src/tool/shoeSizeConverter/i18n/pl.ts +179 -179
  175. package/src/tool/shoeSizeConverter/i18n/ru.ts +179 -179
  176. package/src/tool/shoeSizeConverter/i18n/sv.ts +179 -179
  177. package/src/tool/shoeSizeConverter/i18n/tr.ts +179 -179
  178. package/src/tool/shoeSizeConverter/i18n/zh.ts +179 -179
  179. package/src/tool/shoeSizeConverter/seo.astro +15 -15
  180. package/src/tool/stainChemistry/bibliography.ts +16 -16
  181. package/src/tool/stainChemistry/i18n/de.ts +286 -286
  182. package/src/tool/stainChemistry/i18n/en.ts +289 -289
  183. package/src/tool/stainChemistry/i18n/es.ts +286 -286
  184. package/src/tool/stainChemistry/i18n/fr.ts +296 -296
  185. package/src/tool/stainChemistry/i18n/id.ts +286 -286
  186. package/src/tool/stainChemistry/i18n/it.ts +286 -286
  187. package/src/tool/stainChemistry/i18n/ja.ts +286 -286
  188. package/src/tool/stainChemistry/i18n/ko.ts +283 -283
  189. package/src/tool/stainChemistry/i18n/nl.ts +286 -286
  190. package/src/tool/stainChemistry/i18n/pl.ts +286 -286
  191. package/src/tool/stainChemistry/i18n/pt.ts +286 -286
  192. package/src/tool/stainChemistry/i18n/ru.ts +286 -286
  193. package/src/tool/stainChemistry/i18n/sv.ts +286 -286
  194. package/src/tool/stainChemistry/i18n/tr.ts +286 -286
  195. package/src/tool/stainChemistry/i18n/zh.ts +281 -281
  196. package/src/tool/stainChemistry/seo.astro +15 -15
  197. package/src/tool/yarnCalculator/i18n/de.ts +296 -296
  198. package/src/tool/yarnCalculator/i18n/es.ts +296 -296
  199. package/src/tool/yarnCalculator/i18n/fr.ts +296 -296
  200. package/src/tool/yarnCalculator/i18n/ja.ts +296 -296
  201. package/src/tool/yarnCalculator/i18n/ko.ts +296 -296
  202. package/src/tool/yarnCalculator/i18n/nl.ts +296 -296
  203. package/src/tool/yarnCalculator/i18n/pl.ts +296 -296
  204. package/src/tool/yarnCalculator/i18n/ru.ts +296 -296
  205. package/src/tool/yarnCalculator/i18n/sv.ts +296 -296
  206. package/src/tool/yarnCalculator/i18n/tr.ts +296 -296
  207. package/src/tool/yarnCalculator/i18n/zh.ts +295 -295
  208. package/src/tool/yarnCalculator/seo.astro +15 -15
  209. package/src/tools.ts +2 -2
@@ -1,179 +1,179 @@
1
- import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
- import type { ToolLocaleContent } from '../../../types';
3
- import { bibliography } from '../bibliography';
4
- import type { ShoeSizeConverterUI } from '../ui';
5
-
6
- const slug = 'shoe-size-converter';
7
- const title = '鞋码尺寸转换器';
8
- const description = '在美码 (US)、欧码 (EU)、英码 (UK) 和厘米 (CM) 系统之间转换鞋子尺码。男鞋和女鞋国际尺码指南。';
9
-
10
- const faqData = [
11
- {
12
- question: '如何确定我的美国鞋码 (US)?',
13
- answer: '对于男性,美码 (US) 通常比英码 (UK) 大一个单位。对于女性,比例有所不同。最准确的方法是测量脚的厘米长度,并使用我们的转换器获取确切的美码数值。',
14
- },
15
- {
16
- question: '英码 (UK) 和美码 (US) 鞋号有什么区别?',
17
- answer: '虽然两者都使用英制系统,但它们的起点不同。通常情况下,男鞋的英码 8 号相当于美码 9 号。',
18
- },
19
- {
20
- question: '如何测量脚长以确定厘米 (CM) 尺码?',
21
- answer: '将脚后跟靠墙放置,标记最长脚趾结束的位置,然后测量距离。以厘米 (CM) 为单位的该测量值是购买国际品牌运动鞋最可靠的依据。',
22
- },
23
- ];
24
-
25
- const howToData = [
26
- {
27
- name: '选择性别',
28
- text: '选择您是寻找男鞋还是女鞋尺码,因为比例会有所不同。',
29
- },
30
- {
31
- name: '选择地区/系统',
32
- text: '指明您所了解的尺码系统(欧码、美码、英码或厘米)。',
33
- },
34
- {
35
- name: '选择您的码数',
36
- text: '使用选择器或直接点击欧码对照表。',
37
- },
38
- {
39
- name: '查看对照结果',
40
- text: '立即获取世界其他地区对应的码数。',
41
- },
42
- ];
43
-
44
- const faqSchema: WithContext<FAQPage> = {
45
- '@context': 'https://schema.org',
46
- '@type': 'FAQPage',
47
- mainEntity: faqData.map((item) => ({
48
- '@type': 'Question',
49
- name: item.question,
50
- acceptedAnswer: { '@type': 'Answer', text: item.answer },
51
- })),
52
- };
53
-
54
- const howToSchema: WithContext<HowTo> = {
55
- '@context': 'https://schema.org',
56
- '@type': 'HowTo',
57
- name: title,
58
- description,
59
- step: howToData.map((step) => ({
60
- '@type': 'HowToStep',
61
- name: step.name,
62
- text: step.text,
63
- })),
64
- };
65
-
66
- const appSchema: WithContext<SoftwareApplication> = {
67
- '@context': 'https://schema.org',
68
- '@type': 'SoftwareApplication',
69
- name: title,
70
- description,
71
- applicationCategory: 'UtilityApplication',
72
- operatingSystem: 'All',
73
- offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
74
- inLanguage: 'zh',
75
- };
76
-
77
- export const content: ToolLocaleContent<ShoeSizeConverterUI> = {
78
- slug,
79
- title,
80
- description,
81
- faq: faqData,
82
- bibliography: bibliography,
83
- howTo: howToData,
84
- schemas: [faqSchema, howToSchema, appSchema],
85
- seo: [
86
- {
87
- type: 'title',
88
- text: '鞋码转换器:完整国际尺码指南',
89
- level: 2,
90
- },
91
- {
92
- type: 'paragraph',
93
- html: '在国际商店购买鞋类可能是一项物流挑战。<strong>鞋码转换器</strong>是避免不必要退货的关键工具,并确保无论是从 Amazon、AliExpress 还是专业运动商店购买,每一次购物都能成功。',
94
- },
95
- {
96
- type: 'title',
97
- text: '鞋码对照是如何运作的?',
98
- level: 2,
99
- },
100
- {
101
- type: 'paragraph',
102
- html: '鞋类世界并没有统一。从历史上看,每个地区都根据当地的测量单位(如英寸或"巴黎点")开发了自己的系统。',
103
- },
104
- {
105
- type: 'list',
106
- items: [
107
- '<span><strong>欧码 EU (欧洲):</strong> 基于"巴黎点",相当于 2/3 厘米。这是中国最常用的参考系统之一。</span>',
108
- '<span><strong>美码 US (美国):</strong> 使用英寸,且男女鞋的起点不同。</span>',
109
- '<span><strong>英码 UK (英国):</strong> 同样采用英制系统,但刻度比美国低一个单位。</span>',
110
- '<span><strong>厘米 CM / Mondopoint:</strong> 最精确的。直接使用以厘米为单位的脚长。</span>',
111
- ],
112
- },
113
- {
114
- type: 'title',
115
- text: '如何测量脚长并找到您的准确尺码指南',
116
- level: 2,
117
- },
118
- {
119
- type: 'paragraph',
120
- html: '在使用转换器之前,了解您脚的真实尺寸至关重要。对于鞋子来说,基本测量值是从脚后跟到最长脚趾的长度。',
121
- },
122
- {
123
- type: 'tip',
124
- title: '专家建议',
125
- html: '请在一天结束时测量脚长。脚部往往会随着活动和热量而膨胀,因此早晨的测量值可能会导致下午穿鞋时感到挤脚。',
126
- },
127
- {
128
- type: 'title',
129
- text: '为什么不同品牌的运动鞋尺码会有所不同',
130
- level: 2,
131
- },
132
- {
133
- type: 'paragraph',
134
- html: '为什么 Nike 穿 42 码,而在 Adidas 却穿 41 1/3 码?品牌使用自己的"鞋楦"。有些运动品牌往往尺码偏小,这迫使人们不得不购买比平时大半号的鞋子。',
135
- },
136
- ],
137
- ui: {
138
- genderMenTitle: '男鞋',
139
- genderWomenTitle: '女鞋',
140
- regionLabel: '您的尺码系统',
141
- regionEU: '欧码 (EU)',
142
- regionUS: '美码 (US)',
143
- regionUK: '英码 (UK)',
144
- regionCM: '公分 (CM)',
145
- gridTitle: '选择您的尺码',
146
- gridDesc: '点击查看国际对照结果',
147
- labelEU: '欧码 (EU)',
148
- labelUS: '美码 (US)',
149
- labelUK: '英码 (UK)',
150
- labelCM: 'Mondopoint',
151
- unitCM: 'cm',
152
- infoBannerHtml: '<strong>CM</strong> 尺码代表脚部的物理长度。这是购买国际品牌运动鞋最可靠的方法。',
153
- menData: [
154
- { EU: '39', US: '6.5', UK: '6', CM: '24.5' },
155
- { EU: '40', US: '7.5', UK: '7', CM: '25.0' },
156
- { EU: '40.5', US: '8', UK: '7.5', CM: '25.5' },
157
- { EU: '41', US: '8.5', UK: '8', CM: '26.0' },
158
- { EU: '42', US: '9', UK: '8.5', CM: '26.5' },
159
- { EU: '42.5', US: '9.5', UK: '9', CM: '27.0' },
160
- { EU: '43', US: '10', UK: '9.5', CM: '27.5' },
161
- { EU: '44', US: '10.5', UK: '10', CM: '28.0' },
162
- { EU: '44.5', US: '11', UK: '10.5', CM: '28.5' },
163
- { EU: '45', US: '11.5', UK: '11', CM: '29.0' },
164
- { EU: '46', US: '12', UK: '11.5', CM: '30.0' },
165
- ],
166
- womenData: [
167
- { EU: '35', US: '5', UK: '3', CM: '22.0' },
168
- { EU: '36', US: '6', UK: '4', CM: '22.5' },
169
- { EU: '37', US: '6.5', UK: '4.5', CM: '23.5' },
170
- { EU: '37.5', US: '7', UK: '5', CM: '23.8' },
171
- { EU: '38', US: '7.5', UK: '5.5', CM: '24.0' },
172
- { EU: '38.5', US: '8', UK: '6', CM: '24.5' },
173
- { EU: '39', US: '8.5', UK: '6.5', CM: '25.0' },
174
- { EU: '40', US: '9', UK: '7', CM: '25.5' },
175
- { EU: '41', US: '10', UK: '8', CM: '26.5' },
176
- { EU: '42', US: '11', UK: '9', CM: '27.0' },
177
- ],
178
- },
179
- };
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import { bibliography } from '../bibliography';
4
+ import type { ShoeSizeConverterUI } from '../ui';
5
+
6
+ const slug = 'shoe-size-converter';
7
+ const title = '鞋码尺寸转换器';
8
+ const description = '在美码 (US)、欧码 (EU)、英码 (UK) 和厘米 (CM) 系统之间转换鞋子尺码。男鞋和女鞋国际尺码指南。';
9
+
10
+ const faqData = [
11
+ {
12
+ question: '如何确定我的美国鞋码 (US)?',
13
+ answer: '对于男性,美码 (US) 通常比英码 (UK) 大一个单位。对于女性,比例有所不同。最准确的方法是测量脚的厘米长度,并使用我们的转换器获取确切的美码数值。',
14
+ },
15
+ {
16
+ question: '英码 (UK) 和美码 (US) 鞋号有什么区别?',
17
+ answer: '虽然两者都使用英制系统,但它们的起点不同。通常情况下,男鞋的英码 8 号相当于美码 9 号。',
18
+ },
19
+ {
20
+ question: '如何测量脚长以确定厘米 (CM) 尺码?',
21
+ answer: '将脚后跟靠墙放置,标记最长脚趾结束的位置,然后测量距离。以厘米 (CM) 为单位的该测量值是购买国际品牌运动鞋最可靠的依据。',
22
+ },
23
+ ];
24
+
25
+ const howToData = [
26
+ {
27
+ name: '选择性别',
28
+ text: '选择您是寻找男鞋还是女鞋尺码,因为比例会有所不同。',
29
+ },
30
+ {
31
+ name: '选择地区/系统',
32
+ text: '指明您所了解的尺码系统(欧码、美码、英码或厘米)。',
33
+ },
34
+ {
35
+ name: '选择您的码数',
36
+ text: '使用选择器或直接点击欧码对照表。',
37
+ },
38
+ {
39
+ name: '查看对照结果',
40
+ text: '立即获取世界其他地区对应的码数。',
41
+ },
42
+ ];
43
+
44
+ const faqSchema: WithContext<FAQPage> = {
45
+ '@context': 'https://schema.org',
46
+ '@type': 'FAQPage',
47
+ mainEntity: faqData.map((item) => ({
48
+ '@type': 'Question',
49
+ name: item.question,
50
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
51
+ })),
52
+ };
53
+
54
+ const howToSchema: WithContext<HowTo> = {
55
+ '@context': 'https://schema.org',
56
+ '@type': 'HowTo',
57
+ name: title,
58
+ description,
59
+ step: howToData.map((step) => ({
60
+ '@type': 'HowToStep',
61
+ name: step.name,
62
+ text: step.text,
63
+ })),
64
+ };
65
+
66
+ const appSchema: WithContext<SoftwareApplication> = {
67
+ '@context': 'https://schema.org',
68
+ '@type': 'SoftwareApplication',
69
+ name: title,
70
+ description,
71
+ applicationCategory: 'UtilityApplication',
72
+ operatingSystem: 'All',
73
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
74
+ inLanguage: 'zh',
75
+ };
76
+
77
+ export const content: ToolLocaleContent<ShoeSizeConverterUI> = {
78
+ slug,
79
+ title,
80
+ description,
81
+ faq: faqData,
82
+ bibliography: bibliography,
83
+ howTo: howToData,
84
+ schemas: [faqSchema, howToSchema, appSchema],
85
+ seo: [
86
+ {
87
+ type: 'title',
88
+ text: '鞋码转换器:完整国际尺码指南',
89
+ level: 2,
90
+ },
91
+ {
92
+ type: 'paragraph',
93
+ html: '在国际商店购买鞋类可能是一项物流挑战。<strong>鞋码转换器</strong>是避免不必要退货的关键工具,并确保无论是从 Amazon、AliExpress 还是专业运动商店购买,每一次购物都能成功。',
94
+ },
95
+ {
96
+ type: 'title',
97
+ text: '鞋码对照是如何运作的?',
98
+ level: 2,
99
+ },
100
+ {
101
+ type: 'paragraph',
102
+ html: '鞋类世界并没有统一。从历史上看,每个地区都根据当地的测量单位(如英寸或"巴黎点")开发了自己的系统。',
103
+ },
104
+ {
105
+ type: 'list',
106
+ items: [
107
+ '<span><strong>欧码 EU (欧洲):</strong> 基于"巴黎点",相当于 2/3 厘米。这是中国最常用的参考系统之一。</span>',
108
+ '<span><strong>美码 US (美国):</strong> 使用英寸,且男女鞋的起点不同。</span>',
109
+ '<span><strong>英码 UK (英国):</strong> 同样采用英制系统,但刻度比美国低一个单位。</span>',
110
+ '<span><strong>厘米 CM / Mondopoint:</strong> 最精确的。直接使用以厘米为单位的脚长。</span>',
111
+ ],
112
+ },
113
+ {
114
+ type: 'title',
115
+ text: '如何测量脚长并找到您的准确尺码指南',
116
+ level: 2,
117
+ },
118
+ {
119
+ type: 'paragraph',
120
+ html: '在使用转换器之前,了解您脚的真实尺寸至关重要。对于鞋子来说,基本测量值是从脚后跟到最长脚趾的长度。',
121
+ },
122
+ {
123
+ type: 'tip',
124
+ title: '专家建议',
125
+ html: '请在一天结束时测量脚长。脚部往往会随着活动和热量而膨胀,因此早晨的测量值可能会导致下午穿鞋时感到挤脚。',
126
+ },
127
+ {
128
+ type: 'title',
129
+ text: '为什么不同品牌的运动鞋尺码会有所不同',
130
+ level: 2,
131
+ },
132
+ {
133
+ type: 'paragraph',
134
+ html: '为什么 Nike 穿 42 码,而在 Adidas 却穿 41 1/3 码?品牌使用自己的"鞋楦"。有些运动品牌往往尺码偏小,这迫使人们不得不购买比平时大半号的鞋子。',
135
+ },
136
+ ],
137
+ ui: {
138
+ genderMenTitle: '男鞋',
139
+ genderWomenTitle: '女鞋',
140
+ regionLabel: '您的尺码系统',
141
+ regionEU: '欧码 (EU)',
142
+ regionUS: '美码 (US)',
143
+ regionUK: '英码 (UK)',
144
+ regionCM: '公分 (CM)',
145
+ gridTitle: '选择您的尺码',
146
+ gridDesc: '点击查看国际对照结果',
147
+ labelEU: '欧码 (EU)',
148
+ labelUS: '美码 (US)',
149
+ labelUK: '英码 (UK)',
150
+ labelCM: 'Mondopoint',
151
+ unitCM: 'cm',
152
+ infoBannerHtml: '<strong>CM</strong> 尺码代表脚部的物理长度。这是购买国际品牌运动鞋最可靠的方法。',
153
+ menData: [
154
+ { EU: '39', US: '6.5', UK: '6', CM: '24.5' },
155
+ { EU: '40', US: '7.5', UK: '7', CM: '25.0' },
156
+ { EU: '40.5', US: '8', UK: '7.5', CM: '25.5' },
157
+ { EU: '41', US: '8.5', UK: '8', CM: '26.0' },
158
+ { EU: '42', US: '9', UK: '8.5', CM: '26.5' },
159
+ { EU: '42.5', US: '9.5', UK: '9', CM: '27.0' },
160
+ { EU: '43', US: '10', UK: '9.5', CM: '27.5' },
161
+ { EU: '44', US: '10.5', UK: '10', CM: '28.0' },
162
+ { EU: '44.5', US: '11', UK: '10.5', CM: '28.5' },
163
+ { EU: '45', US: '11.5', UK: '11', CM: '29.0' },
164
+ { EU: '46', US: '12', UK: '11.5', CM: '30.0' },
165
+ ],
166
+ womenData: [
167
+ { EU: '35', US: '5', UK: '3', CM: '22.0' },
168
+ { EU: '36', US: '6', UK: '4', CM: '22.5' },
169
+ { EU: '37', US: '6.5', UK: '4.5', CM: '23.5' },
170
+ { EU: '37.5', US: '7', UK: '5', CM: '23.8' },
171
+ { EU: '38', US: '7.5', UK: '5.5', CM: '24.0' },
172
+ { EU: '38.5', US: '8', UK: '6', CM: '24.5' },
173
+ { EU: '39', US: '8.5', UK: '6.5', CM: '25.0' },
174
+ { EU: '40', US: '9', UK: '7', CM: '25.5' },
175
+ { EU: '41', US: '10', UK: '8', CM: '26.5' },
176
+ { EU: '42', US: '11', UK: '9', CM: '27.0' },
177
+ ],
178
+ },
179
+ };
@@ -1,15 +1,15 @@
1
- ---
2
- import { SEORenderer } from '@jjlmoya/utils-shared';
3
- import { shoeSizeConverter } from './index';
4
- import type { KnownLocale } from '../../types';
5
-
6
- interface Props {
7
- locale?: KnownLocale;
8
- }
9
-
10
- const { locale = 'es' } = Astro.props;
11
- const content = await shoeSizeConverter.i18n[locale]?.();
12
- if (!content) return null;
13
- ---
14
-
15
- {content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}
1
+ ---
2
+ import { SEORenderer } from '@jjlmoya/utils-shared';
3
+ import { shoeSizeConverter } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await shoeSizeConverter.i18n[locale]?.();
12
+ if (!content) return null;
13
+ ---
14
+
15
+ {content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}
@@ -1,16 +1,16 @@
1
- import type { BibliographyEntry } from '../../types';
2
-
3
- export const bibliography: BibliographyEntry[] = [
4
- {
5
- name: 'AATCC - Association for Advancing Color Technology and Chemistry',
6
- url: 'https://www.aatcc.org',
7
- },
8
- {
9
- name: 'Kissa, E. - Textile Auxiliaries',
10
- url: 'https://www.springer.com/gp/book/9783642057328',
11
- },
12
- {
13
- name: 'ISO 105 - Textiles: Tests for Colour Fastness',
14
- url: 'https://www.iso.org/standard/72682.html',
15
- },
16
- ];
1
+ import type { BibliographyEntry } from '../../types';
2
+
3
+ export const bibliography: BibliographyEntry[] = [
4
+ {
5
+ name: 'AATCC - Association for Advancing Color Technology and Chemistry',
6
+ url: 'https://www.aatcc.org',
7
+ },
8
+ {
9
+ name: 'Kissa, E. - Textile Auxiliaries',
10
+ url: 'https://www.springer.com/gp/book/9783642057328',
11
+ },
12
+ {
13
+ name: 'ISO 105 - Textiles: Tests for Colour Fastness',
14
+ url: 'https://www.iso.org/standard/72682.html',
15
+ },
16
+ ];