@jjlmoya/utils-finance 1.30.0 → 1.32.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 (215) hide show
  1. package/package.json +1 -1
  2. package/src/category/i18n/en.ts +1 -1
  3. package/src/category/i18n/es.ts +4 -4
  4. package/src/category/i18n/fr.ts +159 -159
  5. package/src/category/i18n/pl.ts +1 -1
  6. package/src/category/i18n/ru.ts +158 -158
  7. package/src/category/index.ts +39 -38
  8. package/src/category/seo.astro +1 -1
  9. package/src/components/PreviewNavSidebar.astro +1 -1
  10. package/src/components/PreviewToolbar.astro +1 -1
  11. package/src/data.ts +1 -1
  12. package/src/entries.ts +4 -1
  13. package/src/env.d.ts +1 -1
  14. package/src/index.ts +1 -0
  15. package/src/layouts/PreviewLayout.astro +113 -113
  16. package/src/pages/index.astro +1 -1
  17. package/src/tests/bibliography_wellformed_export.test.ts +46 -0
  18. package/src/tests/category_seo_quality.test.ts +76 -0
  19. package/src/tests/faq_count.test.ts +1 -1
  20. package/src/tests/locale_completeness.test.ts +2 -2
  21. package/src/tests/mocks/astro_mock.js +1 -1
  22. package/src/tests/no_h1_in_components.test.ts +1 -1
  23. package/src/tests/script_density.test.ts +94 -94
  24. package/src/tests/seo_length.test.ts +23 -23
  25. package/src/tests/seo_translation_completeness.test.ts +69 -0
  26. package/src/tests/seo_wellformed_export.test.ts +65 -0
  27. package/src/tests/tool_validation.test.ts +17 -17
  28. package/src/tool/compoundInterest/compound-interest-calculator.css +236 -236
  29. package/src/tool/compoundInterest/entry.ts +32 -32
  30. package/src/tool/compoundInterest/i18n/de.ts +195 -195
  31. package/src/tool/compoundInterest/i18n/fr.ts +195 -195
  32. package/src/tool/compoundInterest/i18n/it.ts +195 -195
  33. package/src/tool/compoundInterest/i18n/pl.ts +194 -194
  34. package/src/tool/compoundInterest/i18n/ru.ts +195 -195
  35. package/src/tool/compoundInterest/i18n/tr.ts +195 -195
  36. package/src/tool/compoundInterest/i18n/zh.ts +189 -189
  37. package/src/tool/compoundInterest/seo.astro +15 -15
  38. package/src/tool/courtFeeCalculator/i18n/it.ts +158 -158
  39. package/src/tool/courtFeeCalculator/i18n/ru.ts +158 -158
  40. package/src/tool/courtFeeCalculator/i18n/tr.ts +158 -158
  41. package/src/tool/courtFeeCalculator/seo.astro +15 -15
  42. package/src/tool/courtFeeCalculator/spanish-court-fees-calculator.css +197 -197
  43. package/src/tool/debtSnowball/bibliography.ts +12 -12
  44. package/src/tool/debtSnowball/i18n/de.ts +16 -16
  45. package/src/tool/debtSnowball/i18n/id.ts +16 -16
  46. package/src/tool/debtSnowball/i18n/it.ts +168 -168
  47. package/src/tool/debtSnowball/i18n/nl.ts +16 -16
  48. package/src/tool/debtSnowball/i18n/pl.ts +168 -168
  49. package/src/tool/debtSnowball/i18n/pt.ts +1 -1
  50. package/src/tool/debtSnowball/i18n/ru.ts +1 -1
  51. package/src/tool/debtSnowball/i18n/sv.ts +22 -29
  52. package/src/tool/debtSnowball/i18n/tr.ts +168 -168
  53. package/src/tool/debtSnowball/i18n/zh.ts +168 -168
  54. package/src/tool/debtSnowball/seo.astro +15 -15
  55. package/src/tool/dividendYield/bibliography.astro +14 -0
  56. package/src/tool/dividendYield/bibliography.ts +12 -0
  57. package/src/tool/dividendYield/component.astro +83 -0
  58. package/src/tool/dividendYield/controller.ts +85 -0
  59. package/src/tool/dividendYield/dividend-yield-calculator.css +352 -0
  60. package/src/tool/dividendYield/dom-views.ts +58 -0
  61. package/src/tool/dividendYield/entry.ts +29 -0
  62. package/src/tool/dividendYield/evaluator.ts +16 -0
  63. package/src/tool/dividendYield/i18n/de.ts +53 -0
  64. package/src/tool/dividendYield/i18n/en.ts +138 -0
  65. package/src/tool/dividendYield/i18n/es.ts +49 -0
  66. package/src/tool/dividendYield/i18n/fr.ts +49 -0
  67. package/src/tool/dividendYield/i18n/id.ts +49 -0
  68. package/src/tool/dividendYield/i18n/it.ts +49 -0
  69. package/src/tool/dividendYield/i18n/ja.ts +49 -0
  70. package/src/tool/dividendYield/i18n/ko.ts +25 -0
  71. package/src/tool/dividendYield/i18n/nl.ts +25 -0
  72. package/src/tool/dividendYield/i18n/pl.ts +25 -0
  73. package/src/tool/dividendYield/i18n/pt.ts +25 -0
  74. package/src/tool/dividendYield/i18n/ru.ts +25 -0
  75. package/src/tool/dividendYield/i18n/sv.ts +25 -0
  76. package/src/tool/dividendYield/i18n/tr.ts +25 -0
  77. package/src/tool/dividendYield/i18n/zh.ts +25 -0
  78. package/src/tool/dividendYield/index.ts +11 -0
  79. package/src/tool/dividendYield/logic.test.ts +73 -0
  80. package/src/tool/dividendYield/logic.ts +55 -0
  81. package/src/tool/dividendYield/seo.astro +14 -0
  82. package/src/tool/dividendYield/storage.ts +24 -0
  83. package/src/tool/dividendYield/ui.ts +33 -0
  84. package/src/tool/financialFreedom/financial-freedom-calculator.css +311 -311
  85. package/src/tool/financialFreedom/i18n/en.ts +182 -182
  86. package/src/tool/financialFreedom/i18n/fr.ts +128 -128
  87. package/src/tool/financialFreedom/i18n/id.ts +24 -7
  88. package/src/tool/financialFreedom/i18n/it.ts +24 -7
  89. package/src/tool/financialFreedom/i18n/ja.ts +1 -1
  90. package/src/tool/financialFreedom/i18n/nl.ts +24 -7
  91. package/src/tool/financialFreedom/i18n/pl.ts +24 -7
  92. package/src/tool/financialFreedom/i18n/pt.ts +24 -7
  93. package/src/tool/financialFreedom/i18n/ru.ts +128 -128
  94. package/src/tool/financialFreedom/i18n/sv.ts +1 -1
  95. package/src/tool/financialFreedom/i18n/tr.ts +2 -2
  96. package/src/tool/financialFreedom/i18n/zh.ts +128 -128
  97. package/src/tool/fireCalculator/i18n/it.ts +241 -241
  98. package/src/tool/fireCalculator/i18n/ru.ts +241 -241
  99. package/src/tool/fireCalculator/i18n/tr.ts +241 -241
  100. package/src/tool/fireCalculator/i18n/zh.ts +241 -241
  101. package/src/tool/fireCalculator/seo.astro +15 -15
  102. package/src/tool/ibanBicSwiftConverter/i18n/fr.ts +151 -151
  103. package/src/tool/ibanBicSwiftConverter/i18n/it.ts +118 -118
  104. package/src/tool/ibanBicSwiftConverter/i18n/ru.ts +118 -118
  105. package/src/tool/ibanBicSwiftConverter/i18n/tr.ts +118 -118
  106. package/src/tool/ibanBicSwiftConverter/iban-to-bic-swift-converter.css +366 -366
  107. package/src/tool/ibanBicSwiftConverter/seo.astro +15 -15
  108. package/src/tool/inflation/bibliography.ts +20 -20
  109. package/src/tool/inflation/entry.ts +32 -32
  110. package/src/tool/inflation/i18n/de.ts +284 -284
  111. package/src/tool/inflation/i18n/fr.ts +284 -284
  112. package/src/tool/inflation/i18n/it.ts +284 -284
  113. package/src/tool/inflation/i18n/nl.ts +284 -284
  114. package/src/tool/inflation/i18n/pl.ts +284 -284
  115. package/src/tool/inflation/i18n/pt.ts +284 -284
  116. package/src/tool/inflation/i18n/ru.ts +284 -284
  117. package/src/tool/inflation/i18n/sv.ts +284 -284
  118. package/src/tool/inflation/i18n/tr.ts +284 -284
  119. package/src/tool/inflation/i18n/zh.ts +284 -284
  120. package/src/tool/inflation/seo.astro +15 -15
  121. package/src/tool/lateInterest/bibliography.ts +16 -16
  122. package/src/tool/lateInterest/entry.ts +32 -32
  123. package/src/tool/lateInterest/i18n/de.ts +213 -213
  124. package/src/tool/lateInterest/i18n/es.ts +213 -213
  125. package/src/tool/lateInterest/i18n/it.ts +213 -213
  126. package/src/tool/lateInterest/i18n/nl.ts +213 -213
  127. package/src/tool/lateInterest/i18n/pl.ts +213 -213
  128. package/src/tool/lateInterest/i18n/pt.ts +213 -213
  129. package/src/tool/lateInterest/i18n/ru.ts +213 -213
  130. package/src/tool/lateInterest/i18n/sv.ts +213 -213
  131. package/src/tool/lateInterest/i18n/tr.ts +213 -213
  132. package/src/tool/lateInterest/i18n/zh.ts +213 -213
  133. package/src/tool/lateInterest/seo.astro +15 -15
  134. package/src/tool/legalInterestRate/i18n/it.ts +129 -129
  135. package/src/tool/legalInterestRate/i18n/ru.ts +129 -129
  136. package/src/tool/legalInterestRate/i18n/tr.ts +128 -121
  137. package/src/tool/legalInterestRate/i18n/zh.ts +11 -4
  138. package/src/tool/legalInterestRate/seo.astro +15 -15
  139. package/src/tool/lotteryOptimizer/i18n/it.ts +163 -163
  140. package/src/tool/lotteryOptimizer/i18n/pl.ts +163 -163
  141. package/src/tool/lotteryOptimizer/i18n/ru.ts +163 -163
  142. package/src/tool/lotteryOptimizer/i18n/tr.ts +163 -163
  143. package/src/tool/lotteryOptimizer/i18n/zh.ts +162 -155
  144. package/src/tool/lotteryOptimizer/seo.astro +15 -15
  145. package/src/tool/mortgage/bibliography.ts +20 -20
  146. package/src/tool/mortgage/entry.ts +32 -32
  147. package/src/tool/mortgage/i18n/de.ts +210 -210
  148. package/src/tool/mortgage/i18n/es.ts +210 -210
  149. package/src/tool/mortgage/i18n/fr.ts +210 -210
  150. package/src/tool/mortgage/i18n/id.ts +210 -210
  151. package/src/tool/mortgage/i18n/it.ts +210 -210
  152. package/src/tool/mortgage/i18n/nl.ts +210 -210
  153. package/src/tool/mortgage/i18n/pl.ts +210 -210
  154. package/src/tool/mortgage/i18n/ru.ts +210 -210
  155. package/src/tool/mortgage/i18n/tr.ts +210 -210
  156. package/src/tool/mortgage/i18n/zh.ts +210 -210
  157. package/src/tool/mortgage/mortgage-calculator.css +595 -595
  158. package/src/tool/mortgage/seo.astro +15 -15
  159. package/src/tool/percentageCalculator/bibliography.ts +16 -16
  160. package/src/tool/percentageCalculator/entry.ts +32 -32
  161. package/src/tool/percentageCalculator/i18n/de.ts +220 -220
  162. package/src/tool/percentageCalculator/i18n/en.ts +220 -220
  163. package/src/tool/percentageCalculator/i18n/es.ts +220 -220
  164. package/src/tool/percentageCalculator/i18n/fr.ts +220 -220
  165. package/src/tool/percentageCalculator/i18n/it.ts +220 -220
  166. package/src/tool/percentageCalculator/i18n/pl.ts +220 -220
  167. package/src/tool/percentageCalculator/i18n/ru.ts +220 -220
  168. package/src/tool/percentageCalculator/i18n/tr.ts +220 -220
  169. package/src/tool/percentageCalculator/i18n/zh.ts +220 -220
  170. package/src/tool/percentageCalculator/seo.astro +15 -15
  171. package/src/tool/profitability/i18n/de.ts +24 -7
  172. package/src/tool/profitability/i18n/fr.ts +121 -104
  173. package/src/tool/profitability/i18n/id.ts +2 -2
  174. package/src/tool/profitability/i18n/it.ts +24 -7
  175. package/src/tool/profitability/i18n/ja.ts +1 -1
  176. package/src/tool/profitability/i18n/nl.ts +24 -7
  177. package/src/tool/profitability/i18n/pl.ts +1 -1
  178. package/src/tool/profitability/i18n/pt.ts +24 -7
  179. package/src/tool/profitability/i18n/ru.ts +118 -118
  180. package/src/tool/profitability/i18n/sv.ts +1 -1
  181. package/src/tool/profitability/i18n/tr.ts +1 -1
  182. package/src/tool/profitability/i18n/zh.ts +118 -118
  183. package/src/tool/profitability/profitability-calculator.css +229 -229
  184. package/src/tool/rentIncreaseCalculator/i18n/it.ts +125 -125
  185. package/src/tool/rentIncreaseCalculator/i18n/tr.ts +125 -125
  186. package/src/tool/rentIncreaseCalculator/rent-increase-calculator.css +326 -326
  187. package/src/tool/rentIncreaseCalculator/seo.astro +15 -15
  188. package/src/tool/revolvingCardCalculator/i18n/de.ts +38 -20
  189. package/src/tool/revolvingCardCalculator/i18n/es.ts +19 -18
  190. package/src/tool/revolvingCardCalculator/i18n/fr.ts +32 -28
  191. package/src/tool/revolvingCardCalculator/i18n/id.ts +18 -18
  192. package/src/tool/revolvingCardCalculator/i18n/it.ts +18 -18
  193. package/src/tool/revolvingCardCalculator/i18n/ja.ts +2 -2
  194. package/src/tool/revolvingCardCalculator/i18n/ko.ts +2 -2
  195. package/src/tool/revolvingCardCalculator/i18n/nl.ts +22 -19
  196. package/src/tool/revolvingCardCalculator/i18n/pl.ts +2 -2
  197. package/src/tool/revolvingCardCalculator/i18n/pt.ts +2 -2
  198. package/src/tool/revolvingCardCalculator/i18n/ru.ts +2 -2
  199. package/src/tool/revolvingCardCalculator/i18n/sv.ts +2 -2
  200. package/src/tool/revolvingCardCalculator/i18n/tr.ts +2 -2
  201. package/src/tool/revolvingCardCalculator/i18n/zh.ts +6 -6
  202. package/src/tool/salaryEmployerCost/i18n/de.ts +10 -10
  203. package/src/tool/salaryEmployerCost/i18n/fr.ts +9 -9
  204. package/src/tool/salaryEmployerCost/i18n/id.ts +9 -9
  205. package/src/tool/salaryEmployerCost/i18n/it.ts +9 -9
  206. package/src/tool/salaryEmployerCost/i18n/ja.ts +1 -1
  207. package/src/tool/salaryEmployerCost/i18n/ko.ts +1 -1
  208. package/src/tool/salaryEmployerCost/i18n/nl.ts +2 -2
  209. package/src/tool/salaryEmployerCost/i18n/pl.ts +2 -2
  210. package/src/tool/salaryEmployerCost/i18n/pt.ts +2 -2
  211. package/src/tool/salaryEmployerCost/i18n/ru.ts +2 -2
  212. package/src/tool/salaryEmployerCost/i18n/sv.ts +2 -2
  213. package/src/tool/salaryEmployerCost/i18n/tr.ts +2 -2
  214. package/src/tool/salaryEmployerCost/i18n/zh.ts +2 -2
  215. package/src/tools.ts +2 -1
@@ -1,284 +1,284 @@
1
- import { bibliography } from '../bibliography'
2
- import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
3
- import type { ToolLocaleContent } from '../../../types';
4
- import type { InflationUI } from '../ui';
5
-
6
- const slug = 'inflation-calculator-spain';
7
- const title = '西班牙通货膨胀计算器:货币历史价值';
8
- const description =
9
- '发现您当年的比塞塔在今天价值几何,或者自 1980 年以来生活成本上升了多少。基于更新至 2026 年的西班牙历史 IPC(消费者物价指数)数据。';
10
-
11
- const faqData = [
12
- {
13
- question: '什么是 IPC,它是如何计算的?',
14
- answer:
15
- '消费者物价指数(IPC)衡量代表西班牙消费的一篮子商品和服务价格的演变。它是通过比较不同时期这一篮子商品的成本来计算的。',
16
- },
17
- {
18
- question: '自 1980 年以来货币贬值了多少?',
19
- answer:
20
- '就购买力而言,1980 年的 1,000 比塞塔大约相当于今天的 60 欧元。由于累积通货膨胀,在过去的 40 多年里,货币价值已损失超过 90%。',
21
- },
22
- {
23
- question: '如果不动用我的存款,为什么它们会贬值?',
24
- answer:
25
- '如果年通货膨胀率为 3%,而您的账户利率为 0%,那么您每年将损失 3% 的购买力。为了保持实际价值,您的存款收益必须至少等同于通货膨胀率。',
26
- },
27
- {
28
- question: '西班牙通货膨胀最严重的时期是什么时候?',
29
- answer:
30
- '80 年代是通货膨胀最严重的时期,增长率达到两位数(高达 15%)。价格逐月发生剧烈变化。自使用欧元(2002 年)以来,通货膨胀得到了更好的控制,除了 2021-2023 年期间。',
31
- },
32
- {
33
- question: '通货膨胀如何影响我的存款?',
34
- answer:
35
- '通货膨胀就像一种"隐形税收"。如果通货膨胀率为 5%,而您把钱放在枕头下,那么到年底您能购买的商品将减少 5%。投资是抵消这种影响的关键。',
36
- },
37
- ];
38
-
39
- const howToData = [
40
- {
41
- name: '选择起始年份',
42
- text: '选择您想要计算货币价值的日期(可选择 1980 年至 2026 年)。',
43
- },
44
- {
45
- name: '输入金额',
46
- text: '输入您想要比较的比塞塔金额(针对旧日期)或欧元金额。',
47
- },
48
- {
49
- name: '选择结束年份',
50
- text: '确定您想要查看购买力演变到的时间点。',
51
- },
52
- {
53
- name: '分析实际结果',
54
- text: '观察该时期的购买力等值和累积通货膨胀百分比。',
55
- },
56
- ];
57
-
58
- const faqSchema: WithContext<FAQPage> = {
59
- '@context': 'https://schema.org',
60
- '@type': 'FAQPage',
61
- mainEntity: faqData.map((item) => ({
62
- '@type': 'Question',
63
- name: item.question,
64
- acceptedAnswer: { '@type': 'Answer', text: item.answer },
65
- })),
66
- };
67
-
68
- const howToSchema: WithContext<HowTo> = {
69
- '@context': 'https://schema.org',
70
- '@type': 'HowTo',
71
- name: title,
72
- description,
73
- step: howToData.map((step, i) => ({
74
- '@type': 'HowToStep',
75
- position: i + 1,
76
- name: step.name,
77
- text: step.text,
78
- })),
79
- };
80
-
81
- const appSchema: WithContext<SoftwareApplication> = {
82
- '@context': 'https://schema.org',
83
- '@type': 'SoftwareApplication',
84
- name: title,
85
- description,
86
- applicationCategory: 'FinanceApplication',
87
- operatingSystem: 'All',
88
- offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
89
- inLanguage: 'zh',
90
- };
91
-
92
- export const content: ToolLocaleContent<InflationUI> = {
93
- slug,
94
- title,
95
- description,
96
- faq: faqData,
97
- bibliography,
98
-
99
- howTo: howToData,
100
- schemas: [faqSchema, howToSchema, appSchema],
101
- seo: [
102
- {
103
- type: 'title',
104
- text: '历史通货膨胀计算器:了解您金钱的真实价值',
105
- level: 2,
106
- },
107
- {
108
- type: 'paragraph',
109
- html: '通货膨胀是年复一年吞噬您存款的"隐形税收"。您知道自 1980 年以来您的钱贬值了多少吗?20 年前您花 300 比塞塔买的那杯咖啡,现在实际价值是多少?',
110
- },
111
- {
112
- type: 'title',
113
- text: '通货膨胀:您财富上的隐形税收',
114
- level: 3,
115
- },
116
- {
117
- type: 'paragraph',
118
- html: '<strong>通货膨胀</strong>是物价持续且普遍的增长。虽然它看起来像是一个技术性的现象,但它对实体经济的影响是直接的:它减少了您用同样金额的钱能购买到的商品数量,如果不采取保护措施,会侵蚀一辈子的积蓄。',
119
- },
120
- {
121
- type: 'stats',
122
- columns: 3,
123
- items: [
124
- {
125
- value: '15.6%',
126
- label: '1980 年历史记录',
127
- icon: 'mdi:trending-up',
128
- },
129
- {
130
- value: '8.4%',
131
- label: '2022 年价格高峰',
132
- icon: 'mdi:alert',
133
- },
134
- {
135
- value: '2.0%',
136
- label: '稳定性目标',
137
- icon: 'mdi:target',
138
- },
139
- ],
140
- },
141
- {
142
- type: 'title',
143
- text: '基本金融术语',
144
- level: 3,
145
- },
146
- {
147
- type: 'glossary',
148
- items: [
149
- {
150
- term: 'IPC',
151
- definition: '汇总基本消费篮子价格变化的指标。',
152
- },
153
- {
154
- term: '购买力',
155
- definition: '一种货币在特定时刻的实际购买能力。',
156
- },
157
- {
158
- term: '通货紧缩',
159
- definition: '价格普遍下降,可能使投资瘫痪。',
160
- },
161
- {
162
- term: '滞胀',
163
- definition: '高通货膨胀与经济停滞相结合的情景。',
164
- },
165
- ],
166
- },
167
- {
168
- type: 'title',
169
- text: '经济里程碑与对比',
170
- level: 2,
171
- },
172
- {
173
- type: 'comparative',
174
- columns: 2,
175
- items: [
176
- {
177
- title: '80 年代危机',
178
- description: '这一时期的特点是两位数的通货膨胀和巨大的就业不稳定性。',
179
- points: [
180
- '极高的利率',
181
- '比塞塔价值迅速流失',
182
- '工资被物价上涨吞噬',
183
- ],
184
- },
185
- {
186
- title: '大流行引发的通胀:2021 年至 2023 年',
187
- description: '由于能源成本和供应链问题导致的急剧上升。',
188
- highlight: true,
189
- points: [
190
- '对购物篮的直接影响',
191
- '欧洲央行提高利率以抑制消费',
192
- '购买力恢复缓慢',
193
- ],
194
- },
195
- ],
196
- },
197
- {
198
- type: 'table',
199
- headers: ['产品或指标', '1980 年价值(预估)', '2026 年价值(预测)', '变化'],
200
- rows: [
201
- ['长棍面包', '0.15€ (25 pts)', '1.40€', '833%'],
202
- ['咖啡馆咖啡', '0.30€ (50 pts)', '1.65€', '450%'],
203
- ['电影票', '1.20€ (200 pts)', '9.80€', '716%'],
204
- ['月最低工资', '154€ (25,615 pts)', '1,140€', '640%'],
205
- ],
206
- },
207
- {
208
- type: 'card',
209
- icon: 'mdi:piggy-bank',
210
- title: '现金的风险',
211
- html: '将钱放在枕头下或没有收益的活期账户中是保证资本损失的行为。平均 3% 的通货膨胀率会在不到 25 年的时间里让您的存款价值减半。',
212
- },
213
- {
214
- type: 'title',
215
- text: '保护您存款的建议',
216
- level: 2,
217
- },
218
- {
219
- type: 'proscons',
220
- title: '投资策略',
221
- items: [
222
- {
223
- pro: '实物资产:房产价值通常会随通货膨胀而升值。',
224
- con: '流动性低且进入成本高。',
225
- },
226
- {
227
- pro: '股市与基金:长期回报通常能超过 IPC。',
228
- con: '短期内的波动和市场风险。',
229
- },
230
- ],
231
- },
232
- {
233
- type: 'title',
234
- text: '健康的财务习惯',
235
- level: 3,
236
- },
237
- {
238
- type: 'list',
239
- items: [
240
- '定期检查您的支出以发现隐形涨价。',
241
- '将存款分散到不同类型的资产中。',
242
- '考虑与通货膨胀挂钩的国债。',
243
- '使用计算工具来对比报价和工资。',
244
- ],
245
- },
246
- {
247
- type: 'diagnostic',
248
- variant: 'warning',
249
- title: '针对负复利的警告',
250
- html: '通货膨胀的作用类似于反向复利。每年,损失百分比都应用于已经减少的价值上,如果不采取行动,财富损失会加速。',
251
- },
252
- {
253
- type: 'summary',
254
- title: '核心结论',
255
- items: [
256
- 'IPC 只是一个平均值;您的个人通胀取决于您的习惯。',
257
- '如果想保持劳动的实际价值,投资不是可选项,而是必须项。',
258
- '通货膨胀计算器对于理解长期合同至关重要。',
259
- ],
260
- },
261
- {
262
- type: 'message',
263
- title: '掌控您的经济',
264
- html: '我们的计算器使用西班牙统计局 (INE) 的官方数据,为您提供关于西班牙经济过去和现在最精确的视图。',
265
- },
266
- ],
267
- ui: {
268
- labelTitle: '西班牙通货膨胀计算器',
269
- labelInitialAmount: '初始资金',
270
- labelInitialYear: '在年份',
271
- labelFinalAmount: '今日等值',
272
- labelFinalYear: '2026 年',
273
- labelInflationRate: '累积通货膨胀',
274
- labelCalculatedOn: '计算使用的官方数据截至 2025 年,并结合了 2026 年底的预估预测。',
275
- currencySymbol: '€',
276
- currencyCode: 'EUR',
277
- currencyLocale: 'zh-CN',
278
- labelYearSelect: '在年份',
279
- labelIn: '在',
280
- labelEquivalentToday: '今日等值于',
281
- labelInflationAccumulated: '累积通货膨胀',
282
- labelYear: '年份',
283
- },
284
- };
1
+ import { bibliography } from '../bibliography'
2
+ import type { WithContext, FAQPage, HowTo, SoftwareApplication } from 'schema-dts';
3
+ import type { ToolLocaleContent } from '../../../types';
4
+ import type { InflationUI } from '../ui';
5
+
6
+ const slug = 'inflation-calculator-spain';
7
+ const title = '西班牙通货膨胀计算器:货币历史价值';
8
+ const description =
9
+ '发现您当年的比塞塔在今天价值几何,或者自 1980 年以来生活成本上升了多少。基于更新至 2026 年的西班牙历史 IPC(消费者物价指数)数据。';
10
+
11
+ const faqData = [
12
+ {
13
+ question: '什么是 IPC,它是如何计算的?',
14
+ answer:
15
+ '消费者物价指数(IPC)衡量代表西班牙消费的一篮子商品和服务价格的演变。它是通过比较不同时期这一篮子商品的成本来计算的。',
16
+ },
17
+ {
18
+ question: '自 1980 年以来货币贬值了多少?',
19
+ answer:
20
+ '就购买力而言,1980 年的 1,000 比塞塔大约相当于今天的 60 欧元。由于累积通货膨胀,在过去的 40 多年里,货币价值已损失超过 90%。',
21
+ },
22
+ {
23
+ question: '如果不动用我的存款,为什么它们会贬值?',
24
+ answer:
25
+ '如果年通货膨胀率为 3%,而您的账户利率为 0%,那么您每年将损失 3% 的购买力。为了保持实际价值,您的存款收益必须至少等同于通货膨胀率。',
26
+ },
27
+ {
28
+ question: '西班牙通货膨胀最严重的时期是什么时候?',
29
+ answer:
30
+ '80 年代是通货膨胀最严重的时期,增长率达到两位数(高达 15%)。价格逐月发生剧烈变化。自使用欧元(2002 年)以来,通货膨胀得到了更好的控制,除了 2021-2023 年期间。',
31
+ },
32
+ {
33
+ question: '通货膨胀如何影响我的存款?',
34
+ answer:
35
+ '通货膨胀就像一种"隐形税收"。如果通货膨胀率为 5%,而您把钱放在枕头下,那么到年底您能购买的商品将减少 5%。投资是抵消这种影响的关键。',
36
+ },
37
+ ];
38
+
39
+ const howToData = [
40
+ {
41
+ name: '选择起始年份',
42
+ text: '选择您想要计算货币价值的日期(可选择 1980 年至 2026 年)。',
43
+ },
44
+ {
45
+ name: '输入金额',
46
+ text: '输入您想要比较的比塞塔金额(针对旧日期)或欧元金额。',
47
+ },
48
+ {
49
+ name: '选择结束年份',
50
+ text: '确定您想要查看购买力演变到的时间点。',
51
+ },
52
+ {
53
+ name: '分析实际结果',
54
+ text: '观察该时期的购买力等值和累积通货膨胀百分比。',
55
+ },
56
+ ];
57
+
58
+ const faqSchema: WithContext<FAQPage> = {
59
+ '@context': 'https://schema.org',
60
+ '@type': 'FAQPage',
61
+ mainEntity: faqData.map((item) => ({
62
+ '@type': 'Question',
63
+ name: item.question,
64
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
65
+ })),
66
+ };
67
+
68
+ const howToSchema: WithContext<HowTo> = {
69
+ '@context': 'https://schema.org',
70
+ '@type': 'HowTo',
71
+ name: title,
72
+ description,
73
+ step: howToData.map((step, i) => ({
74
+ '@type': 'HowToStep',
75
+ position: i + 1,
76
+ name: step.name,
77
+ text: step.text,
78
+ })),
79
+ };
80
+
81
+ const appSchema: WithContext<SoftwareApplication> = {
82
+ '@context': 'https://schema.org',
83
+ '@type': 'SoftwareApplication',
84
+ name: title,
85
+ description,
86
+ applicationCategory: 'FinanceApplication',
87
+ operatingSystem: 'All',
88
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
89
+ inLanguage: 'zh',
90
+ };
91
+
92
+ export const content: ToolLocaleContent<InflationUI> = {
93
+ slug,
94
+ title,
95
+ description,
96
+ faq: faqData,
97
+ bibliography,
98
+
99
+ howTo: howToData,
100
+ schemas: [faqSchema, howToSchema, appSchema],
101
+ seo: [
102
+ {
103
+ type: 'title',
104
+ text: '历史通货膨胀计算器:了解您金钱的真实价值',
105
+ level: 2,
106
+ },
107
+ {
108
+ type: 'paragraph',
109
+ html: '通货膨胀是年复一年吞噬您存款的"隐形税收"。您知道自 1980 年以来您的钱贬值了多少吗?20 年前您花 300 比塞塔买的那杯咖啡,现在实际价值是多少?',
110
+ },
111
+ {
112
+ type: 'title',
113
+ text: '通货膨胀:您财富上的隐形税收',
114
+ level: 3,
115
+ },
116
+ {
117
+ type: 'paragraph',
118
+ html: '<strong>通货膨胀</strong>是物价持续且普遍的增长。虽然它看起来像是一个技术性的现象,但它对实体经济的影响是直接的:它减少了您用同样金额的钱能购买到的商品数量,如果不采取保护措施,会侵蚀一辈子的积蓄。',
119
+ },
120
+ {
121
+ type: 'stats',
122
+ columns: 3,
123
+ items: [
124
+ {
125
+ value: '15.6%',
126
+ label: '1980 年历史记录',
127
+ icon: 'mdi:trending-up',
128
+ },
129
+ {
130
+ value: '8.4%',
131
+ label: '2022 年价格高峰',
132
+ icon: 'mdi:alert',
133
+ },
134
+ {
135
+ value: '2.0%',
136
+ label: '稳定性目标',
137
+ icon: 'mdi:target',
138
+ },
139
+ ],
140
+ },
141
+ {
142
+ type: 'title',
143
+ text: '基本金融术语',
144
+ level: 3,
145
+ },
146
+ {
147
+ type: 'glossary',
148
+ items: [
149
+ {
150
+ term: 'IPC',
151
+ definition: '汇总基本消费篮子价格变化的指标。',
152
+ },
153
+ {
154
+ term: '购买力',
155
+ definition: '一种货币在特定时刻的实际购买能力。',
156
+ },
157
+ {
158
+ term: '通货紧缩',
159
+ definition: '价格普遍下降,可能使投资瘫痪。',
160
+ },
161
+ {
162
+ term: '滞胀',
163
+ definition: '高通货膨胀与经济停滞相结合的情景。',
164
+ },
165
+ ],
166
+ },
167
+ {
168
+ type: 'title',
169
+ text: '经济里程碑与对比',
170
+ level: 2,
171
+ },
172
+ {
173
+ type: 'comparative',
174
+ columns: 2,
175
+ items: [
176
+ {
177
+ title: '80 年代危机',
178
+ description: '这一时期的特点是两位数的通货膨胀和巨大的就业不稳定性。',
179
+ points: [
180
+ '极高的利率',
181
+ '比塞塔价值迅速流失',
182
+ '工资被物价上涨吞噬',
183
+ ],
184
+ },
185
+ {
186
+ title: '大流行引发的通胀:2021 年至 2023 年',
187
+ description: '由于能源成本和供应链问题导致的急剧上升。',
188
+ highlight: true,
189
+ points: [
190
+ '对购物篮的直接影响',
191
+ '欧洲央行提高利率以抑制消费',
192
+ '购买力恢复缓慢',
193
+ ],
194
+ },
195
+ ],
196
+ },
197
+ {
198
+ type: 'table',
199
+ headers: ['产品或指标', '1980 年价值(预估)', '2026 年价值(预测)', '变化'],
200
+ rows: [
201
+ ['长棍面包', '0.15€ (25 pts)', '1.40€', '833%'],
202
+ ['咖啡馆咖啡', '0.30€ (50 pts)', '1.65€', '450%'],
203
+ ['电影票', '1.20€ (200 pts)', '9.80€', '716%'],
204
+ ['月最低工资', '154€ (25,615 pts)', '1,140€', '640%'],
205
+ ],
206
+ },
207
+ {
208
+ type: 'card',
209
+ icon: 'mdi:piggy-bank',
210
+ title: '现金的风险',
211
+ html: '将钱放在枕头下或没有收益的活期账户中是保证资本损失的行为。平均 3% 的通货膨胀率会在不到 25 年的时间里让您的存款价值减半。',
212
+ },
213
+ {
214
+ type: 'title',
215
+ text: '保护您存款的建议',
216
+ level: 2,
217
+ },
218
+ {
219
+ type: 'proscons',
220
+ title: '投资策略',
221
+ items: [
222
+ {
223
+ pro: '实物资产:房产价值通常会随通货膨胀而升值。',
224
+ con: '流动性低且进入成本高。',
225
+ },
226
+ {
227
+ pro: '股市与基金:长期回报通常能超过 IPC。',
228
+ con: '短期内的波动和市场风险。',
229
+ },
230
+ ],
231
+ },
232
+ {
233
+ type: 'title',
234
+ text: '健康的财务习惯',
235
+ level: 3,
236
+ },
237
+ {
238
+ type: 'list',
239
+ items: [
240
+ '定期检查您的支出以发现隐形涨价。',
241
+ '将存款分散到不同类型的资产中。',
242
+ '考虑与通货膨胀挂钩的国债。',
243
+ '使用计算工具来对比报价和工资。',
244
+ ],
245
+ },
246
+ {
247
+ type: 'diagnostic',
248
+ variant: 'warning',
249
+ title: '针对负复利的警告',
250
+ html: '通货膨胀的作用类似于反向复利。每年,损失百分比都应用于已经减少的价值上,如果不采取行动,财富损失会加速。',
251
+ },
252
+ {
253
+ type: 'summary',
254
+ title: '核心结论',
255
+ items: [
256
+ 'IPC 只是一个平均值;您的个人通胀取决于您的习惯。',
257
+ '如果想保持劳动的实际价值,投资不是可选项,而是必须项。',
258
+ '通货膨胀计算器对于理解长期合同至关重要。',
259
+ ],
260
+ },
261
+ {
262
+ type: 'message',
263
+ title: '掌控您的经济',
264
+ html: '我们的计算器使用西班牙统计局 (INE) 的官方数据,为您提供关于西班牙经济过去和现在最精确的视图。',
265
+ },
266
+ ],
267
+ ui: {
268
+ labelTitle: '西班牙通货膨胀计算器',
269
+ labelInitialAmount: '初始资金',
270
+ labelInitialYear: '在年份',
271
+ labelFinalAmount: '今日等值',
272
+ labelFinalYear: '2026 年',
273
+ labelInflationRate: '累积通货膨胀',
274
+ labelCalculatedOn: '计算使用的官方数据截至 2025 年,并结合了 2026 年底的预估预测。',
275
+ currencySymbol: '€',
276
+ currencyCode: 'EUR',
277
+ currencyLocale: 'zh-CN',
278
+ labelYearSelect: '在年份',
279
+ labelIn: '在',
280
+ labelEquivalentToday: '今日等值于',
281
+ labelInflationAccumulated: '累积通货膨胀',
282
+ labelYear: '年份',
283
+ },
284
+ };
@@ -1,15 +1,15 @@
1
- ---
2
- import { SEORenderer } from '@jjlmoya/utils-shared';
3
- import { inflation } 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 inflation.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 { inflation } 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 inflation.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: 'Ley 3/2004 de Lucha contra la Morosidad',
6
- url: 'https://www.boe.es/',
7
- },
8
- {
9
- name: 'Banco de España: Tipos de Interés',
10
- url: 'https://www.bde.es/',
11
- },
12
- {
13
- name: 'Cálculo de Intereses Compuestos',
14
- url: 'https://www.investopedia.com/terms/c/compoundinterest.asp',
15
- },
16
- ];
1
+ import type { BibliographyEntry } from '../../types';
2
+
3
+ export const bibliography: BibliographyEntry[] = [
4
+ {
5
+ name: 'Ley 3/2004 de Lucha contra la Morosidad',
6
+ url: 'https://www.boe.es/',
7
+ },
8
+ {
9
+ name: 'Banco de España: Tipos de Interés',
10
+ url: 'https://www.bde.es/',
11
+ },
12
+ {
13
+ name: 'Cálculo de Intereses Compuestos',
14
+ url: 'https://www.investopedia.com/terms/c/compoundinterest.asp',
15
+ },
16
+ ];