@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,268 +1,268 @@
1
- import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
- import type { ToolLocaleContent } from '../../../types';
3
- import { bibliography } from '../bibliography';
4
- import type { FabricTruthUI } from '../ui';
5
-
6
- const slug = 'fabric-truthfulness';
7
- const title = 'Fabric Truthfulness: Textile Quality Analysis';
8
- const description = 'Discover the real quality of your garments by analyzing their composition. Is it real cotton or expensive plastic? Scientific fiber analysis.';
9
-
10
- const faqData = [
11
- {
12
- question: 'What is "Greenwashing" in fashion?',
13
- answer: 'It\'s a marketing technique where brands use terms like "Eco-Friendly" or "Sustainable" without real proof. Analyzing the actual composition of fibers is the only way to verify if a garment is truly natural or synthetic.',
14
- },
15
- {
16
- question: 'Why is polyester usually lower quality than cotton?',
17
- answer: 'Polyester is plastic (PET). While durable, it doesn\'t breathe, promotes odor from bacteria, and sheds microplastics with every wash. Natural fibers like cotton or linen offer better thermal regulation.',
18
- },
19
- {
20
- question: 'Is it bad if my clothes have elastane?',
21
- answer: 'In small amounts (1-5%), elastane (Lycra) provides comfort and fit. However, it greatly complicates garment recycling by mixing plastic with natural fibers, which usually indicates a "fast fashion" garment.',
22
- },
23
- {
24
- question: 'How to spot a high-quality garment by its label?',
25
- answer: 'Look for single-material compositions (100% Cotton, 100% Wool). Complex blends are usually used to cut production costs and hide synthetic fibers under attractive brand names.',
26
- },
27
- ];
28
-
29
- const howToData = [
30
- {
31
- name: 'Locate the internal label',
32
- text: 'Find the white composition label that\'s usually on the inside seam or neck of your garment.',
33
- },
34
- {
35
- name: 'Identify the components',
36
- text: 'Read the percentages of each fiber (e.g., 70% Cotton, 30% Polyester).',
37
- },
38
- {
39
- name: 'Enter the data in the analyzer',
40
- text: 'Type the proportions of the fibers in our tool to get a technical quality score.',
41
- },
42
- {
43
- name: 'Interpret the diagnosis',
44
- text: 'Review the generated report to understand if your garment is breathable, durable, or if it requires special care due to its synthetic composition.',
45
- },
46
- ];
47
-
48
- const faqSchema: WithContext<FAQPage> = {
49
- '@context': 'https://schema.org',
50
- '@type': 'FAQPage',
51
- mainEntity: faqData.map((item) => ({
52
- '@type': 'Question',
53
- name: item.question,
54
- acceptedAnswer: { '@type': 'Answer', text: item.answer },
55
- })),
56
- };
57
-
58
- const howToSchema: WithContext<HowTo> = {
59
- '@context': 'https://schema.org',
60
- '@type': 'HowTo',
61
- name: title,
62
- description: description,
63
- step: howToData.map((step) => ({
64
- '@type': 'HowToStep',
65
- name: step.name,
66
- text: step.text,
67
- })),
68
- };
69
-
70
- const appSchema: WithContext<SoftwareApplication> = {
71
- '@context': 'https://schema.org',
72
- '@type': 'SoftwareApplication',
73
- name: title,
74
- description: description,
75
- applicationCategory: 'UtilityApplication',
76
- operatingSystem: 'All',
77
- offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
78
- inLanguage: 'en',
79
- };
80
-
81
- export const content: ToolLocaleContent<FabricTruthUI> = {
82
- slug,
83
- title,
84
- description,
85
- ui: {
86
- toolTitle: 'Fabric Truthfulness',
87
- addFiber: 'Add Fiber',
88
- total: 'Total',
89
- composition: 'Composition Analysis',
90
- description: 'Add the percentages as they appear on your garment label to discover the truth about its quality.',
91
- verdict: 'Verdict',
92
- breathability: 'Breathability',
93
- durability: 'Durability',
94
- warmth: 'Warmth',
95
- careWarning: 'Special Care Warning',
96
- specialCareWarning: 'STANDARD WASHING: Always follow the instructions on the physical label.',
97
- validationError: 'The composition must add up to exactly 100% to see the verdict',
98
- actualTotal: 'Actual',
99
- missingLabel: 'missing',
100
- disclaimer: 'Breathability, durability, and warmth data are estimates based on industry averages for each fiber type.',
101
- careWarnings: {
102
- delicate: 'VERY DELICATE: Hand wash in cold water. Do not use dryer. Avoid wringing.',
103
- wool: 'WOOL / NOBLE HAIR: Wash in cold water with special program. Dry flat to prevent deformation. Do not use dryer.',
104
- linen: 'LINEN: Tends to wrinkle greatly. Iron slightly damp for best results.',
105
- semisynthetic: 'SEMI-SYNTHETICS: Weakens when wet. Handle with care and do not spin hard.',
106
- standard: 'STANDARD WASHING: Always follow the instructions on the physical label.',
107
- },
108
- fiberData: {
109
- cotton: {
110
- name: 'Cotton',
111
- family: 'natural',
112
- breathability: 9,
113
- durability: 7,
114
- warmth: 4,
115
- isNoble: false,
116
- },
117
- linen: {
118
- name: 'Linen',
119
- family: 'natural',
120
- breathability: 10,
121
- durability: 9,
122
- warmth: 2,
123
- isNoble: true,
124
- },
125
- wool: {
126
- name: 'Wool / Merino',
127
- family: 'natural',
128
- breathability: 8,
129
- durability: 6,
130
- warmth: 10,
131
- isNoble: true,
132
- },
133
- silk: {
134
- name: 'Silk',
135
- family: 'natural',
136
- breathability: 7,
137
- durability: 5,
138
- warmth: 6,
139
- isNoble: true,
140
- },
141
- cashmere: {
142
- name: 'Cashmere',
143
- family: 'natural',
144
- breathability: 9,
145
- durability: 5,
146
- warmth: 10,
147
- isNoble: true,
148
- },
149
- mohair: {
150
- name: 'Mohair',
151
- family: 'natural',
152
- breathability: 8,
153
- durability: 9,
154
- warmth: 9,
155
- isNoble: true,
156
- },
157
- angora: {
158
- name: 'Angora',
159
- family: 'natural',
160
- breathability: 8,
161
- durability: 4,
162
- warmth: 10,
163
- isNoble: true,
164
- },
165
- alpaca: {
166
- name: 'Alpaca',
167
- family: 'natural',
168
- breathability: 9,
169
- durability: 8,
170
- warmth: 10,
171
- isNoble: true,
172
- },
173
- polyester: {
174
- name: 'Polyester',
175
- family: 'synthetic',
176
- breathability: 2,
177
- durability: 10,
178
- warmth: 5,
179
- isNoble: false,
180
- },
181
- viscose: {
182
- name: 'Viscose / Rayon',
183
- family: 'artificial',
184
- breathability: 8,
185
- durability: 4,
186
- warmth: 3,
187
- isNoble: false,
188
- },
189
- nylon: {
190
- name: 'Nylon (Polyamide)',
191
- family: 'synthetic',
192
- breathability: 3,
193
- durability: 10,
194
- warmth: 4,
195
- isNoble: false,
196
- },
197
- acrylic: {
198
- name: 'Acrylic',
199
- family: 'synthetic',
200
- breathability: 4,
201
- durability: 6,
202
- warmth: 8,
203
- isNoble: false,
204
- },
205
- },
206
- verdicts: {
207
- plasticy: {
208
- label: 'Expensive Plastic',
209
- description: 'Most of this garment is petroleum. Be prepared to sweat and see pilling quickly.',
210
- },
211
- hook: {
212
- label: 'Marketing Hook',
213
- description: 'That small percentage of noble fiber is only there for the label. You won\'t notice its benefits.',
214
- },
215
- fragile: {
216
- label: 'Soft but Fragile',
217
- description: 'Very pleasant to the touch, but be careful when washing: tends to deform and shrink easily.',
218
- },
219
- natural: {
220
- label: 'Natural Quality',
221
- description: 'Breathable and durable garment. Ideal for sensitive skin and prolonged use.',
222
- },
223
- technical: {
224
- label: 'Technical / Ultra-Synthetic',
225
- description: 'Unless it\'s specific sports clothing, you\'re paying for pure plastic.',
226
- },
227
- luxury: {
228
- label: 'Real Luxury',
229
- description: 'An investment in comfort and durability. Treat it with the respect it deserves.',
230
- },
231
- balanced: {
232
- label: 'Balanced Blend',
233
- description: 'A functional combination, probably seeking to balance cost and durability.',
234
- },
235
- },
236
- },
237
- seo: [
238
- { type: 'title', text: 'The Truth Behind the Label: A Master Guide to Textile Composition', level: 2 },
239
- { type: 'paragraph', html: 'Ever wondered why that branded shirt makes you sweat so much, or why that "wool" sweater is unbearably itchy? The answer isn\'t in the design, but in the chemistry of its fibers.' },
240
- { type: 'paragraph', html: 'In a world dominated by <strong>Fast Fashion</strong>, the quality of fabrics has taken a back seat to ephemeral aesthetics. However, understanding textile composition is the only way to make a smart, durable, and skin-respecting purchase. Our <strong>Fabric Truthfulness</strong> tool analyzes official percentages to reveal whether you\'re facing a quality garment or just a block of processed plastic.' },
241
- { type: 'title', text: 'Our Methodology', level: 2 },
242
- { type: 'paragraph', html: 'We use a weighted algorithm based on three fundamental pillars drawn from European and North American industrial standards:' },
243
- { type: 'list', items: ['<strong>Breathability:</strong> The fiber\'s ability to allow water vapor and air to pass through.', '<strong>Durability:</strong> Resistance to abrasion, traction, and pilling formation.', '<strong>Thermal Efficiency:</strong> Capacity for heat retention or mechanical coolness.'] },
244
- { type: 'tip', title: 'Important', html: 'The law requires that all garments sold in the EU and US list their components in decreasing order of percentage. If a garment has no label or the label is illegible, be wary: it probably doesn\'t meet minimum textile safety standards.' },
245
- { type: 'title', text: 'Common "Deceptions" in Retail', level: 2 },
246
- { type: 'paragraph', html: 'There are sophisticated marketing techniques designed to elevate the perceived value of a mediocre garment. Here\'s how to spot them:' },
247
- { type: 'card', title: 'The Noble Fiber Hook', icon: 'mdi:alert', html: 'You\'ll see labels saying "WITH CASHMERE" or "WITH SILK" in large letters. Looking at the composition, you discover 3% silk and 97% polyester. That 3% adds no softness, shine, or warmth; it\'s just there so the brand can raise the price by 20%.' },
248
- { type: 'card', title: 'The "Eco-Friendly Viscose" Myth', icon: 'mdi:leaf', html: 'Although viscose comes from cellulose (wood), its current manufacturing process is often highly polluting, and the final result is a fiber that weakens drastically when wet. Unless it\'s Lyocell or Tencel, its durability is limited.' },
249
- { type: 'title', text: 'In-Depth Analysis by Categories', level: 2 },
250
- { type: 'title', text: '1. Natural Fibers (Proudly Organic)', level: 3 },
251
- { type: 'paragraph', html: 'These are the gold standard. Long-staple Cotton (like Pima or Egyptian) offers eternal softness. Linen is scientifically the best fiber for heat due to its molecular structure that repels heat and absorbs moisture. Wool and Hemp are natural antibacterials; they don\'t need frequent washing because they don\'t retain odors.' },
252
- { type: 'title', text: '2. Semi-Synthetic Fibers (The Hybrid)', level: 3 },
253
- { type: 'paragraph', html: 'Here we find Viscose, Rayon, and Modal. They feel like silk but cost like cotton. They\'re excellent for garments with lots of drape, but they\'re "thirsty": they absorb lots of water and take a long time to dry, which can promote mold growth if not cared for. Lyocell (Tencel) is the premium and sustainable version of this group, with a closed production cycle and greater resistance.' },
254
- { type: 'title', text: '3. Synthetic Fibers (Spun Plastics)', level: 3 },
255
- { type: 'paragraph', html: 'Polyester is the king of the market. It\'s cheap, doesn\'t wrinkle, and is eternal (literally, it will take 200 years to decompose). The problem is that it doesn\'t breathe. It creates a humid microclimate between the fabric and your skin, the ideal breeding ground for bacteria. Acrylic is the cheap imitation of wool: it warms, but generates lots of static electricity and fills with pills in two washes.' },
256
- { type: 'title', text: 'Textile Survival Tips', level: 2 },
257
- { type: 'paragraph', html: 'Even the best garment in the world can be ruined in a single improper wash. Here are the golden rules:' },
258
- { type: 'tip', title: 'Cold Water is Your Friend', html: '90% of garments don\'t need more than 30°C. Heat degrades elastic fibers and shrinks natural ones.' },
259
- { type: 'tip', title: 'Less is More (Detergent)', html: 'Excess soap leaves residue that attracts dirt and makes clothes feel stiff.' },
260
- { type: 'tip', title: 'Dryer: The Subtle Enemy', html: 'The lint you see in the dryer filter is pieces of your clothes that have come off due to friction and heat.' },
261
- { type: 'tip', title: 'Inside Out Washing', html: 'Protects color and embroidery from rubbing against the drum and other garments.' },
262
- { type: 'paragraph', html: '"Buy less, choose better, and make it last." - This calculator is your first step towards a conscious and high-quality wardrobe.' },
263
- ],
264
- faq: faqData,
265
- bibliography: bibliography,
266
- howTo: howToData,
267
- schemas: [faqSchema, howToSchema, appSchema],
268
- };
1
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import { bibliography } from '../bibliography';
4
+ import type { FabricTruthUI } from '../ui';
5
+
6
+ const slug = 'fabric-truthfulness';
7
+ const title = 'Fabric Truthfulness: Textile Quality Analysis';
8
+ const description = 'Discover the real quality of your garments by analyzing their composition. Is it real cotton or expensive plastic? Scientific fiber analysis.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'What is "Greenwashing" in fashion?',
13
+ answer: 'It\'s a marketing technique where brands use terms like "Eco-Friendly" or "Sustainable" without real proof. Analyzing the actual composition of fibers is the only way to verify if a garment is truly natural or synthetic.',
14
+ },
15
+ {
16
+ question: 'Why is polyester usually lower quality than cotton?',
17
+ answer: 'Polyester is plastic (PET). While durable, it doesn\'t breathe, promotes odor from bacteria, and sheds microplastics with every wash. Natural fibers like cotton or linen offer better thermal regulation.',
18
+ },
19
+ {
20
+ question: 'Is it bad if my clothes have elastane?',
21
+ answer: 'In small amounts (1-5%), elastane (Lycra) provides comfort and fit. However, it greatly complicates garment recycling by mixing plastic with natural fibers, which usually indicates a "fast fashion" garment.',
22
+ },
23
+ {
24
+ question: 'How to spot a high-quality garment by its label?',
25
+ answer: 'Look for single-material compositions (100% Cotton, 100% Wool). Complex blends are usually used to cut production costs and hide synthetic fibers under attractive brand names.',
26
+ },
27
+ ];
28
+
29
+ const howToData = [
30
+ {
31
+ name: 'Locate the internal label',
32
+ text: 'Find the white composition label that\'s usually on the inside seam or neck of your garment.',
33
+ },
34
+ {
35
+ name: 'Identify the components',
36
+ text: 'Read the percentages of each fiber (e.g., 70% Cotton, 30% Polyester).',
37
+ },
38
+ {
39
+ name: 'Enter the data in the analyzer',
40
+ text: 'Type the proportions of the fibers in our tool to get a technical quality score.',
41
+ },
42
+ {
43
+ name: 'Interpret the diagnosis',
44
+ text: 'Review the generated report to understand if your garment is breathable, durable, or if it requires special care due to its synthetic composition.',
45
+ },
46
+ ];
47
+
48
+ const faqSchema: WithContext<FAQPage> = {
49
+ '@context': 'https://schema.org',
50
+ '@type': 'FAQPage',
51
+ mainEntity: faqData.map((item) => ({
52
+ '@type': 'Question',
53
+ name: item.question,
54
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
55
+ })),
56
+ };
57
+
58
+ const howToSchema: WithContext<HowTo> = {
59
+ '@context': 'https://schema.org',
60
+ '@type': 'HowTo',
61
+ name: title,
62
+ description: description,
63
+ step: howToData.map((step) => ({
64
+ '@type': 'HowToStep',
65
+ name: step.name,
66
+ text: step.text,
67
+ })),
68
+ };
69
+
70
+ const appSchema: WithContext<SoftwareApplication> = {
71
+ '@context': 'https://schema.org',
72
+ '@type': 'SoftwareApplication',
73
+ name: title,
74
+ description: description,
75
+ applicationCategory: 'UtilityApplication',
76
+ operatingSystem: 'All',
77
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
78
+ inLanguage: 'en',
79
+ };
80
+
81
+ export const content: ToolLocaleContent<FabricTruthUI> = {
82
+ slug,
83
+ title,
84
+ description,
85
+ ui: {
86
+ toolTitle: 'Fabric Truthfulness',
87
+ addFiber: 'Add Fiber',
88
+ total: 'Total',
89
+ composition: 'Composition Analysis',
90
+ description: 'Add the percentages as they appear on your garment label to discover the truth about its quality.',
91
+ verdict: 'Verdict',
92
+ breathability: 'Breathability',
93
+ durability: 'Durability',
94
+ warmth: 'Warmth',
95
+ careWarning: 'Special Care Warning',
96
+ specialCareWarning: 'STANDARD WASHING: Always follow the instructions on the physical label.',
97
+ validationError: 'The composition must add up to exactly 100% to see the verdict',
98
+ actualTotal: 'Actual',
99
+ missingLabel: 'missing',
100
+ disclaimer: 'Breathability, durability, and warmth data are estimates based on industry averages for each fiber type.',
101
+ careWarnings: {
102
+ delicate: 'VERY DELICATE: Hand wash in cold water. Do not use dryer. Avoid wringing.',
103
+ wool: 'WOOL / NOBLE HAIR: Wash in cold water with special program. Dry flat to prevent deformation. Do not use dryer.',
104
+ linen: 'LINEN: Tends to wrinkle greatly. Iron slightly damp for best results.',
105
+ semisynthetic: 'SEMI-SYNTHETICS: Weakens when wet. Handle with care and do not spin hard.',
106
+ standard: 'STANDARD WASHING: Always follow the instructions on the physical label.',
107
+ },
108
+ fiberData: {
109
+ cotton: {
110
+ name: 'Cotton',
111
+ family: 'natural',
112
+ breathability: 9,
113
+ durability: 7,
114
+ warmth: 4,
115
+ isNoble: false,
116
+ },
117
+ linen: {
118
+ name: 'Linen',
119
+ family: 'natural',
120
+ breathability: 10,
121
+ durability: 9,
122
+ warmth: 2,
123
+ isNoble: true,
124
+ },
125
+ wool: {
126
+ name: 'Wool / Merino',
127
+ family: 'natural',
128
+ breathability: 8,
129
+ durability: 6,
130
+ warmth: 10,
131
+ isNoble: true,
132
+ },
133
+ silk: {
134
+ name: 'Silk',
135
+ family: 'natural',
136
+ breathability: 7,
137
+ durability: 5,
138
+ warmth: 6,
139
+ isNoble: true,
140
+ },
141
+ cashmere: {
142
+ name: 'Cashmere',
143
+ family: 'natural',
144
+ breathability: 9,
145
+ durability: 5,
146
+ warmth: 10,
147
+ isNoble: true,
148
+ },
149
+ mohair: {
150
+ name: 'Mohair',
151
+ family: 'natural',
152
+ breathability: 8,
153
+ durability: 9,
154
+ warmth: 9,
155
+ isNoble: true,
156
+ },
157
+ angora: {
158
+ name: 'Angora',
159
+ family: 'natural',
160
+ breathability: 8,
161
+ durability: 4,
162
+ warmth: 10,
163
+ isNoble: true,
164
+ },
165
+ alpaca: {
166
+ name: 'Alpaca',
167
+ family: 'natural',
168
+ breathability: 9,
169
+ durability: 8,
170
+ warmth: 10,
171
+ isNoble: true,
172
+ },
173
+ polyester: {
174
+ name: 'Polyester',
175
+ family: 'synthetic',
176
+ breathability: 2,
177
+ durability: 10,
178
+ warmth: 5,
179
+ isNoble: false,
180
+ },
181
+ viscose: {
182
+ name: 'Viscose / Rayon',
183
+ family: 'artificial',
184
+ breathability: 8,
185
+ durability: 4,
186
+ warmth: 3,
187
+ isNoble: false,
188
+ },
189
+ nylon: {
190
+ name: 'Nylon (Polyamide)',
191
+ family: 'synthetic',
192
+ breathability: 3,
193
+ durability: 10,
194
+ warmth: 4,
195
+ isNoble: false,
196
+ },
197
+ acrylic: {
198
+ name: 'Acrylic',
199
+ family: 'synthetic',
200
+ breathability: 4,
201
+ durability: 6,
202
+ warmth: 8,
203
+ isNoble: false,
204
+ },
205
+ },
206
+ verdicts: {
207
+ plasticy: {
208
+ label: 'Expensive Plastic',
209
+ description: 'Most of this garment is petroleum. Be prepared to sweat and see pilling quickly.',
210
+ },
211
+ hook: {
212
+ label: 'Marketing Hook',
213
+ description: 'That small percentage of noble fiber is only there for the label. You won\'t notice its benefits.',
214
+ },
215
+ fragile: {
216
+ label: 'Soft but Fragile',
217
+ description: 'Very pleasant to the touch, but be careful when washing: tends to deform and shrink easily.',
218
+ },
219
+ natural: {
220
+ label: 'Natural Quality',
221
+ description: 'Breathable and durable garment. Ideal for sensitive skin and prolonged use.',
222
+ },
223
+ technical: {
224
+ label: 'Technical / Ultra-Synthetic',
225
+ description: 'Unless it\'s specific sports clothing, you\'re paying for pure plastic.',
226
+ },
227
+ luxury: {
228
+ label: 'Real Luxury',
229
+ description: 'An investment in comfort and durability. Treat it with the respect it deserves.',
230
+ },
231
+ balanced: {
232
+ label: 'Balanced Blend',
233
+ description: 'A functional combination, probably seeking to balance cost and durability.',
234
+ },
235
+ },
236
+ },
237
+ seo: [
238
+ { type: 'title', text: 'The Truth Behind the Label: A Master Guide to Textile Composition', level: 2 },
239
+ { type: 'paragraph', html: 'Ever wondered why that branded shirt makes you sweat so much, or why that "wool" sweater is unbearably itchy? The answer isn\'t in the design, but in the chemistry of its fibers.' },
240
+ { type: 'paragraph', html: 'In a world dominated by <strong>Fast Fashion</strong>, the quality of fabrics has taken a back seat to ephemeral aesthetics. However, understanding textile composition is the only way to make a smart, durable, and skin-respecting purchase. Our <strong>Fabric Truthfulness</strong> tool analyzes official percentages to reveal whether you\'re facing a quality garment or just a block of processed plastic.' },
241
+ { type: 'title', text: 'Our Methodology', level: 2 },
242
+ { type: 'paragraph', html: 'We use a weighted algorithm based on three fundamental pillars drawn from European and North American industrial standards:' },
243
+ { type: 'list', items: ['<strong>Breathability:</strong> The fiber\'s ability to allow water vapor and air to pass through.', '<strong>Durability:</strong> Resistance to abrasion, traction, and pilling formation.', '<strong>Thermal Efficiency:</strong> Capacity for heat retention or mechanical coolness.'] },
244
+ { type: 'tip', title: 'Important', html: 'The law requires that all garments sold in the EU and US list their components in decreasing order of percentage. If a garment has no label or the label is illegible, be wary: it probably doesn\'t meet minimum textile safety standards.' },
245
+ { type: 'title', text: 'Common "Deceptions" in Retail', level: 2 },
246
+ { type: 'paragraph', html: 'There are sophisticated marketing techniques designed to elevate the perceived value of a mediocre garment. Here\'s how to spot them:' },
247
+ { type: 'card', title: 'The Noble Fiber Hook', icon: 'mdi:alert', html: 'You\'ll see labels saying "WITH CASHMERE" or "WITH SILK" in large letters. Looking at the composition, you discover 3% silk and 97% polyester. That 3% adds no softness, shine, or warmth; it\'s just there so the brand can raise the price by 20%.' },
248
+ { type: 'card', title: 'The "Eco-Friendly Viscose" Myth', icon: 'mdi:leaf', html: 'Although viscose comes from cellulose (wood), its current manufacturing process is often highly polluting, and the final result is a fiber that weakens drastically when wet. Unless it\'s Lyocell or Tencel, its durability is limited.' },
249
+ { type: 'title', text: 'In-Depth Analysis by Categories', level: 2 },
250
+ { type: 'title', text: '1. Natural Fibers (Proudly Organic)', level: 3 },
251
+ { type: 'paragraph', html: 'These are the gold standard. Long-staple Cotton (like Pima or Egyptian) offers eternal softness. Linen is scientifically the best fiber for heat due to its molecular structure that repels heat and absorbs moisture. Wool and Hemp are natural antibacterials; they don\'t need frequent washing because they don\'t retain odors.' },
252
+ { type: 'title', text: '2. Semi-Synthetic Fibers (The Hybrid)', level: 3 },
253
+ { type: 'paragraph', html: 'Here we find Viscose, Rayon, and Modal. They feel like silk but cost like cotton. They\'re excellent for garments with lots of drape, but they\'re "thirsty": they absorb lots of water and take a long time to dry, which can promote mold growth if not cared for. Lyocell (Tencel) is the premium and sustainable version of this group, with a closed production cycle and greater resistance.' },
254
+ { type: 'title', text: '3. Synthetic Fibers (Spun Plastics)', level: 3 },
255
+ { type: 'paragraph', html: 'Polyester is the king of the market. It\'s cheap, doesn\'t wrinkle, and is eternal (literally, it will take 200 years to decompose). The problem is that it doesn\'t breathe. It creates a humid microclimate between the fabric and your skin, the ideal breeding ground for bacteria. Acrylic is the cheap imitation of wool: it warms, but generates lots of static electricity and fills with pills in two washes.' },
256
+ { type: 'title', text: 'Textile Survival Tips', level: 2 },
257
+ { type: 'paragraph', html: 'Even the best garment in the world can be ruined in a single improper wash. Here are the golden rules:' },
258
+ { type: 'tip', title: 'Cold Water is Your Friend', html: '90% of garments don\'t need more than 30°C. Heat degrades elastic fibers and shrinks natural ones.' },
259
+ { type: 'tip', title: 'Less is More (Detergent)', html: 'Excess soap leaves residue that attracts dirt and makes clothes feel stiff.' },
260
+ { type: 'tip', title: 'Dryer: The Subtle Enemy', html: 'The lint you see in the dryer filter is pieces of your clothes that have come off due to friction and heat.' },
261
+ { type: 'tip', title: 'Inside Out Washing', html: 'Protects color and embroidery from rubbing against the drum and other garments.' },
262
+ { type: 'paragraph', html: '"Buy less, choose better, and make it last." - This calculator is your first step towards a conscious and high-quality wardrobe.' },
263
+ ],
264
+ faq: faqData,
265
+ bibliography: bibliography,
266
+ howTo: howToData,
267
+ schemas: [faqSchema, howToSchema, appSchema],
268
+ };