@jjlmoya/utils-nature 1.13.0 → 1.14.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 (76) hide show
  1. package/package.json +1 -1
  2. package/src/pages/[locale]/[slug].astro +32 -14
  3. package/src/tests/locale_completeness.test.ts +1 -31
  4. package/src/tests/shared-test-helpers.ts +56 -0
  5. package/src/tests/tool_exports.test.ts +34 -0
  6. package/src/tool/cricketThermometer/bibliography.ts +12 -0
  7. package/src/tool/cricketThermometer/i18n/de.ts +2 -14
  8. package/src/tool/cricketThermometer/i18n/en.ts +2 -14
  9. package/src/tool/cricketThermometer/i18n/es.ts +2 -14
  10. package/src/tool/cricketThermometer/i18n/fr.ts +2 -14
  11. package/src/tool/cricketThermometer/i18n/id.ts +2 -14
  12. package/src/tool/cricketThermometer/i18n/it.ts +2 -14
  13. package/src/tool/cricketThermometer/i18n/ja.ts +2 -14
  14. package/src/tool/cricketThermometer/i18n/ko.ts +2 -14
  15. package/src/tool/cricketThermometer/i18n/nl.ts +2 -14
  16. package/src/tool/cricketThermometer/i18n/pl.ts +2 -14
  17. package/src/tool/cricketThermometer/i18n/pt.ts +2 -14
  18. package/src/tool/cricketThermometer/i18n/ru.ts +2 -14
  19. package/src/tool/cricketThermometer/i18n/sv.ts +2 -14
  20. package/src/tool/cricketThermometer/i18n/tr.ts +2 -14
  21. package/src/tool/cricketThermometer/i18n/zh.ts +2 -14
  22. package/src/tool/cricketThermometer/seo.astro +1 -1
  23. package/src/tool/cricketThermometer/ui.ts +0 -2
  24. package/src/tool/digitalCarbon/bibliography.ts +8 -0
  25. package/src/tool/digitalCarbon/i18n/de.ts +2 -8
  26. package/src/tool/digitalCarbon/i18n/en.ts +2 -8
  27. package/src/tool/digitalCarbon/i18n/es.ts +2 -8
  28. package/src/tool/digitalCarbon/i18n/fr.ts +2 -8
  29. package/src/tool/digitalCarbon/i18n/id.ts +2 -8
  30. package/src/tool/digitalCarbon/i18n/it.ts +2 -8
  31. package/src/tool/digitalCarbon/i18n/ja.ts +2 -8
  32. package/src/tool/digitalCarbon/i18n/ko.ts +2 -8
  33. package/src/tool/digitalCarbon/i18n/nl.ts +2 -8
  34. package/src/tool/digitalCarbon/i18n/pl.ts +2 -8
  35. package/src/tool/digitalCarbon/i18n/pt.ts +2 -8
  36. package/src/tool/digitalCarbon/i18n/ru.ts +2 -8
  37. package/src/tool/digitalCarbon/i18n/sv.ts +2 -8
  38. package/src/tool/digitalCarbon/i18n/tr.ts +2 -8
  39. package/src/tool/digitalCarbon/i18n/zh.ts +2 -8
  40. package/src/tool/digitalCarbon/seo.astro +1 -1
  41. package/src/tool/rainHarvester/bibliography.ts +20 -0
  42. package/src/tool/rainHarvester/i18n/de.ts +2 -20
  43. package/src/tool/rainHarvester/i18n/en.ts +2 -20
  44. package/src/tool/rainHarvester/i18n/es.ts +2 -20
  45. package/src/tool/rainHarvester/i18n/fr.ts +2 -20
  46. package/src/tool/rainHarvester/i18n/id.ts +2 -20
  47. package/src/tool/rainHarvester/i18n/it.ts +2 -20
  48. package/src/tool/rainHarvester/i18n/ja.ts +2 -20
  49. package/src/tool/rainHarvester/i18n/ko.ts +2 -20
  50. package/src/tool/rainHarvester/i18n/nl.ts +2 -20
  51. package/src/tool/rainHarvester/i18n/pl.ts +2 -20
  52. package/src/tool/rainHarvester/i18n/pt.ts +2 -20
  53. package/src/tool/rainHarvester/i18n/ru.ts +2 -20
  54. package/src/tool/rainHarvester/i18n/sv.ts +2 -20
  55. package/src/tool/rainHarvester/i18n/tr.ts +2 -20
  56. package/src/tool/rainHarvester/i18n/zh.ts +2 -20
  57. package/src/tool/rainHarvester/seo.astro +1 -1
  58. package/src/tool/seedCalculator/bibliography.ts +16 -0
  59. package/src/tool/seedCalculator/i18n/de.ts +2 -18
  60. package/src/tool/seedCalculator/i18n/en.ts +2 -18
  61. package/src/tool/seedCalculator/i18n/es.ts +2 -18
  62. package/src/tool/seedCalculator/i18n/fr.ts +2 -18
  63. package/src/tool/seedCalculator/i18n/id.ts +2 -18
  64. package/src/tool/seedCalculator/i18n/it.ts +2 -18
  65. package/src/tool/seedCalculator/i18n/ja.ts +2 -18
  66. package/src/tool/seedCalculator/i18n/ko.ts +2 -18
  67. package/src/tool/seedCalculator/i18n/nl.ts +2 -18
  68. package/src/tool/seedCalculator/i18n/pl.ts +2 -18
  69. package/src/tool/seedCalculator/i18n/pt.ts +2 -18
  70. package/src/tool/seedCalculator/i18n/ru.ts +2 -18
  71. package/src/tool/seedCalculator/i18n/sv.ts +2 -18
  72. package/src/tool/seedCalculator/i18n/tr.ts +2 -18
  73. package/src/tool/seedCalculator/i18n/zh.ts +2 -18
  74. package/src/tool/seedCalculator/seo.astro +8 -2
  75. package/src/tool/seedCalculator/ui.ts +0 -2
  76. package/src/types.ts +0 -2
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'Questions Fréquentes',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Références Scientifiques',
93
- bibliography: [
94
- {
95
- name: 'KWS Espagne',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Ministère de l\'Agriculture espagnol (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara Espagne',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: 'Haute population',
208
194
  noteBeet: 'Semis superficiel critique',
209
195
  noteRapeseed: 'Très petite graine',
210
- faqTitle: 'Questions Fréquentes',
211
- bibliographyTitle: 'Références Scientifiques',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'Pertanyaan yang Sering Diajukan',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Referensi Ilmiah',
93
- bibliography: [
94
- {
95
- name: 'KWS Spanyol',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Kementerian Pertanian Spanyol (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara Spanyol',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: 'Populasi tinggi',
208
194
  noteBeet: 'Penaburan dangkal kritis',
209
195
  noteRapeseed: 'Benih sangat kecil',
210
- faqTitle: 'Pertanyaan yang Sering Diajukan',
211
- bibliographyTitle: 'Referensi Ilmiah',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'Domande Frequenti',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Riferimenti Scientifici',
93
- bibliography: [
94
- {
95
- name: 'KWS Spagna',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Ministero dell\'Agricoltura Spagnolo (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara Spagna',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: 'Alta popolazione',
208
194
  noteBeet: 'Semina superficiale critica',
209
195
  noteRapeseed: 'Seme molto piccolo',
210
- faqTitle: 'Domande Frequenti',
211
- bibliographyTitle: 'Riferimenti Scientifici',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'よくある質問',
91
91
  faq: faqData,
92
- bibliographyTitle: '科学的参考文献',
93
- bibliography: [
94
- {
95
- name: 'KWS スペイン',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'スペイン農林水産省 (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara スペイン',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: '高個体数',
208
194
  noteBeet: '浅播きが重要',
209
195
  noteRapeseed: '非常に小さな種',
210
- faqTitle: 'よくある質問',
211
- bibliographyTitle: '科学的参考文献',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: '자주 묻는 질문',
91
91
  faq: faqData,
92
- bibliographyTitle: '과학적 참고 문헌',
93
- bibliography: [
94
- {
95
- name: 'KWS 스페인',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: '스페인 농림수산부 (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara 스페인',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: '높은 밀도',
208
194
  noteBeet: '얕은 파종이 중요함',
209
195
  noteRapeseed: '매우 작은 종자',
210
- faqTitle: '자주 묻는 질문',
211
- bibliographyTitle: '과학적 참고 문헌',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'Veelgestelde vragen',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Wetenschappelijke bronnen',
93
- bibliography: [
94
- {
95
- name: 'KWS Spanje',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Spaans Ministerie van Landbouw (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara Spanje',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: 'Hoge populatie',
208
194
  noteBeet: 'Kritisch ondiep zaaien',
209
195
  noteRapeseed: 'Zeer klein zaad',
210
- faqTitle: 'Veelgestelde vragen',
211
- bibliographyTitle: 'Wetenschappelijke bronnen',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'Często zadawane pytania',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Źródła Naukowe',
93
- bibliography: [
94
- {
95
- name: 'KWS Hiszpania',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Hiszpańskie Ministerstwo Rolnictwa (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara Hiszpania',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: 'Wysoka obsada',
208
194
  noteBeet: 'Krytyczny płytki siew',
209
195
  noteRapeseed: 'Bardzo małe nasiona',
210
- faqTitle: 'Często zadawane pytania',
211
- bibliographyTitle: 'Źródła Naukowe',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'Perguntas Frequentes',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Referências Científicas',
93
- bibliography: [
94
- {
95
- name: 'KWS Espanha',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Ministério da Agricultura de Espanha (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara Espanha',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: 'Alta população',
208
194
  noteBeet: 'Sementeira superficial crítica',
209
195
  noteRapeseed: 'Semente muito pequena',
210
- faqTitle: 'Perguntas Frequentes',
211
- bibliographyTitle: 'Referências Científicas',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'Часто задаваемые вопросы',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Научные источники',
93
- bibliography: [
94
- {
95
- name: 'KWS Испания',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Министерство сельского хозяйства Испании (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara Испания',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: 'Высокая норма высева',
208
194
  noteBeet: 'Критичен мелкий посев',
209
195
  noteRapeseed: 'Очень мелкие семена',
210
- faqTitle: 'Часто задаваемые вопросы',
211
- bibliographyTitle: 'Научные источники',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'Vanliga frågor',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Vetenskapliga referenser',
93
- bibliography: [
94
- {
95
- name: 'KWS Spanien',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Spanska jordbruksministeriet (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara Spanien',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: 'Hög population',
208
194
  noteBeet: 'Kritiskt grund sådd',
209
195
  noteRapeseed: 'Mycket litet frö',
210
- faqTitle: 'Vanliga frågor',
211
- bibliographyTitle: 'Vetenskapliga referenser',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: 'Sıkça Sorulan Sorular',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Bilimsel Referanslar',
93
- bibliography: [
94
- {
95
- name: 'KWS İspanya',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'İspanya Tarım Bakanlığı (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara İspanya',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: 'Yüksek popülasyon',
208
194
  noteBeet: 'Kritik sığ ekim',
209
195
  noteRapeseed: 'Çok küçük tohum',
210
- faqTitle: 'Sıkça Sorulan Sorular',
211
- bibliographyTitle: 'Bilimsel Referanslar',
212
196
  },
213
197
  };
@@ -1,4 +1,5 @@
1
1
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
+ import { bibliography } from '../bibliography';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { SeedCalculatorUI } from '../ui';
4
5
 
@@ -87,23 +88,8 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
87
88
  slug,
88
89
  title,
89
90
  description,
90
- faqTitle: '常见问题',
91
91
  faq: faqData,
92
- bibliographyTitle: '科学参考文献',
93
- bibliography: [
94
- {
95
- name: 'KWS 西班牙',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: '西班牙农业部 (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara 西班牙',
104
- url: 'https://www.yara.es/nutricion-vegetal/maiz/',
105
- },
106
- ],
92
+ bibliography,
107
93
  howTo: howToData,
108
94
  schemas: [faqSchema, howToSchema, appSchema],
109
95
  seo: [
@@ -207,7 +193,5 @@ export const content: ToolLocaleContent<SeedCalculatorUI> = {
207
193
  noteSoy: '高密度植株',
208
194
  noteBeet: '关键浅播作业',
209
195
  noteRapeseed: '种子极其细小',
210
- faqTitle: '常见问题',
211
- bibliographyTitle: '科学参考文献',
212
196
  },
213
197
  };
@@ -1,9 +1,15 @@
1
1
  ---
2
2
  import { SEORenderer } from '@jjlmoya/utils-shared';
3
3
  import { seedCalculator } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
4
9
 
5
10
  const { locale = 'es' } = Astro.props;
6
- const content = await seedCalculator.i18n[locale as keyof typeof seedCalculator.i18n]?.();
11
+ const content = await seedCalculator.i18n[locale]?.();
7
12
  if (!content) return null;
8
13
  ---
9
- <SEORenderer content={{ locale: locale as string, sections: content.seo }} />
14
+
15
+ {content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}
@@ -34,6 +34,4 @@ export interface SeedCalculatorUI extends Record<string, string> {
34
34
  noteSoy: string;
35
35
  noteBeet: string;
36
36
  noteRapeseed: string;
37
- faqTitle: string;
38
- bibliographyTitle: string;
39
37
  }
package/src/types.ts CHANGED
@@ -29,9 +29,7 @@ export interface ToolLocaleContent<TUI extends Record<string, string> = Record<s
29
29
  description: string;
30
30
  ui: TUI;
31
31
  seo: SEOSection[];
32
- faqTitle?: string;
33
32
  faq: FAQItem[];
34
- bibliographyTitle?: string;
35
33
  bibliography: BibliographyEntry[];
36
34
  howTo: HowToStep[];
37
35
  schemas: WithContext<Thing>[];