@jjlmoya/utils-nature 1.12.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 (80) 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/cricket-thermometer.css +4 -4
  8. package/src/tool/cricketThermometer/i18n/de.ts +2 -14
  9. package/src/tool/cricketThermometer/i18n/en.ts +2 -14
  10. package/src/tool/cricketThermometer/i18n/es.ts +2 -14
  11. package/src/tool/cricketThermometer/i18n/fr.ts +2 -14
  12. package/src/tool/cricketThermometer/i18n/id.ts +2 -14
  13. package/src/tool/cricketThermometer/i18n/it.ts +2 -14
  14. package/src/tool/cricketThermometer/i18n/ja.ts +2 -14
  15. package/src/tool/cricketThermometer/i18n/ko.ts +2 -14
  16. package/src/tool/cricketThermometer/i18n/nl.ts +2 -14
  17. package/src/tool/cricketThermometer/i18n/pl.ts +2 -14
  18. package/src/tool/cricketThermometer/i18n/pt.ts +2 -14
  19. package/src/tool/cricketThermometer/i18n/ru.ts +2 -14
  20. package/src/tool/cricketThermometer/i18n/sv.ts +2 -14
  21. package/src/tool/cricketThermometer/i18n/tr.ts +2 -14
  22. package/src/tool/cricketThermometer/i18n/zh.ts +2 -14
  23. package/src/tool/cricketThermometer/seo.astro +1 -1
  24. package/src/tool/cricketThermometer/ui.ts +0 -2
  25. package/src/tool/digitalCarbon/bibliography.ts +8 -0
  26. package/src/tool/digitalCarbon/digital-carbon-footprint-calculator.css +11 -11
  27. package/src/tool/digitalCarbon/i18n/de.ts +2 -8
  28. package/src/tool/digitalCarbon/i18n/en.ts +2 -8
  29. package/src/tool/digitalCarbon/i18n/es.ts +2 -8
  30. package/src/tool/digitalCarbon/i18n/fr.ts +2 -8
  31. package/src/tool/digitalCarbon/i18n/id.ts +2 -8
  32. package/src/tool/digitalCarbon/i18n/it.ts +2 -8
  33. package/src/tool/digitalCarbon/i18n/ja.ts +2 -8
  34. package/src/tool/digitalCarbon/i18n/ko.ts +2 -8
  35. package/src/tool/digitalCarbon/i18n/nl.ts +2 -8
  36. package/src/tool/digitalCarbon/i18n/pl.ts +2 -8
  37. package/src/tool/digitalCarbon/i18n/pt.ts +2 -8
  38. package/src/tool/digitalCarbon/i18n/ru.ts +2 -8
  39. package/src/tool/digitalCarbon/i18n/sv.ts +2 -8
  40. package/src/tool/digitalCarbon/i18n/tr.ts +2 -8
  41. package/src/tool/digitalCarbon/i18n/zh.ts +2 -8
  42. package/src/tool/digitalCarbon/seo.astro +1 -1
  43. package/src/tool/rainHarvester/bibliography.ts +20 -0
  44. package/src/tool/rainHarvester/i18n/de.ts +2 -20
  45. package/src/tool/rainHarvester/i18n/en.ts +2 -20
  46. package/src/tool/rainHarvester/i18n/es.ts +2 -20
  47. package/src/tool/rainHarvester/i18n/fr.ts +2 -20
  48. package/src/tool/rainHarvester/i18n/id.ts +2 -20
  49. package/src/tool/rainHarvester/i18n/it.ts +2 -20
  50. package/src/tool/rainHarvester/i18n/ja.ts +2 -20
  51. package/src/tool/rainHarvester/i18n/ko.ts +2 -20
  52. package/src/tool/rainHarvester/i18n/nl.ts +2 -20
  53. package/src/tool/rainHarvester/i18n/pl.ts +2 -20
  54. package/src/tool/rainHarvester/i18n/pt.ts +2 -20
  55. package/src/tool/rainHarvester/i18n/ru.ts +2 -20
  56. package/src/tool/rainHarvester/i18n/sv.ts +2 -20
  57. package/src/tool/rainHarvester/i18n/tr.ts +2 -20
  58. package/src/tool/rainHarvester/i18n/zh.ts +2 -20
  59. package/src/tool/rainHarvester/rainwater-calculator.css +1 -1
  60. package/src/tool/rainHarvester/seo.astro +1 -1
  61. package/src/tool/seedCalculator/bibliography.ts +16 -0
  62. package/src/tool/seedCalculator/i18n/de.ts +2 -18
  63. package/src/tool/seedCalculator/i18n/en.ts +2 -18
  64. package/src/tool/seedCalculator/i18n/es.ts +2 -18
  65. package/src/tool/seedCalculator/i18n/fr.ts +2 -18
  66. package/src/tool/seedCalculator/i18n/id.ts +2 -18
  67. package/src/tool/seedCalculator/i18n/it.ts +2 -18
  68. package/src/tool/seedCalculator/i18n/ja.ts +2 -18
  69. package/src/tool/seedCalculator/i18n/ko.ts +2 -18
  70. package/src/tool/seedCalculator/i18n/nl.ts +2 -18
  71. package/src/tool/seedCalculator/i18n/pl.ts +2 -18
  72. package/src/tool/seedCalculator/i18n/pt.ts +2 -18
  73. package/src/tool/seedCalculator/i18n/ru.ts +2 -18
  74. package/src/tool/seedCalculator/i18n/sv.ts +2 -18
  75. package/src/tool/seedCalculator/i18n/tr.ts +2 -18
  76. package/src/tool/seedCalculator/i18n/zh.ts +2 -18
  77. package/src/tool/seedCalculator/seed-calculator.css +11 -11
  78. package/src/tool/seedCalculator/seo.astro +8 -2
  79. package/src/tool/seedCalculator/ui.ts +0 -2
  80. 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: 'Häufig gestellte Fragen',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Wissenschaftliche Referenzen',
93
- bibliography: [
94
- {
95
- name: 'KWS Spanien',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Spanisches Landwirtschaftsministerium (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: 'Hohe Population',
208
194
  noteBeet: 'Kritische flache Aussaat',
209
195
  noteRapeseed: 'Sehr kleiner Samen',
210
- faqTitle: 'Häufig gestellte Fragen',
211
- bibliographyTitle: 'Wissenschaftliche Referenzen',
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: 'Frequently Asked Questions',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Scientific References',
93
- bibliography: [
94
- {
95
- name: 'KWS Spain',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Spanish Ministry of Agriculture (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara Spain',
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: 'High population',
208
194
  noteBeet: 'Critical shallow sowing',
209
195
  noteRapeseed: 'Very small seed',
210
- faqTitle: 'Frequently Asked Questions',
211
- bibliographyTitle: 'Scientific References',
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: 'Preguntas Frecuentes',
91
91
  faq: faqData,
92
- bibliographyTitle: 'Referencias Científicas',
93
- bibliography: [
94
- {
95
- name: 'KWS España',
96
- url: 'https://www.kws.com/es/es/',
97
- },
98
- {
99
- name: 'Ministerio de Agricultura (MAPA)',
100
- url: 'https://www.mapa.gob.es/es/agricultura/temas/producciones-agricolas/cultivos-herbaceos/',
101
- },
102
- {
103
- name: 'Yara España',
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 población',
208
194
  noteBeet: 'Siembra crítica superficial',
209
195
  noteRapeseed: 'Semilla muy pequeña',
210
- faqTitle: 'Preguntas Frecuentes',
211
- bibliographyTitle: 'Referencias 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: '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
  };
@@ -23,7 +23,7 @@
23
23
  user-select: none;
24
24
  }
25
25
 
26
- :global(.theme-dark) .sc-wrap {
26
+ .theme-dark .sc-wrap {
27
27
  --sc-bg: #18181b;
28
28
  --sc-bg-params: #18181b;
29
29
  --sc-bg-speed: #27272a;
@@ -146,7 +146,7 @@
146
146
  pointer-events: none;
147
147
  }
148
148
 
149
- :global(.crop-btn.active) .sc-selection-ring {
149
+ .crop-btn.active .sc-selection-ring {
150
150
  opacity: 1;
151
151
  transform: scale(1);
152
152
  border-width: 3px;
@@ -270,7 +270,7 @@
270
270
  color: var(--sc-text);
271
271
  }
272
272
 
273
- :global(.speed-btn.active) {
273
+ .speed-btn.active {
274
274
  background-color: #059669;
275
275
  color: #fff;
276
276
  box-shadow: 0 4px 6px -1px rgba(5,150,105,0.4);
@@ -372,22 +372,22 @@
372
372
  transition: width 0.3s;
373
373
  }
374
374
 
375
- :global(.sc-hz-bar[data-state="volumetric"]) {
375
+ .sc-hz-bar[data-state="volumetric"] {
376
376
  background: #3b82f6;
377
377
  box-shadow: 0 0 10px rgba(59,130,246,0.5);
378
378
  }
379
379
 
380
- :global(.sc-hz-bar[data-state="optimal"]) {
380
+ .sc-hz-bar[data-state="optimal"] {
381
381
  background: #34d399;
382
382
  box-shadow: 0 0 10px rgba(52,211,153,0.5);
383
383
  }
384
384
 
385
- :global(.sc-hz-bar[data-state="high"]) {
385
+ .sc-hz-bar[data-state="high"] {
386
386
  background: #facc15;
387
387
  box-shadow: 0 0 10px rgba(250,204,21,0.5);
388
388
  }
389
389
 
390
- :global(.sc-hz-bar[data-state="limit"]) {
390
+ .sc-hz-bar[data-state="limit"] {
391
391
  background: #ef4444;
392
392
  box-shadow: 0 0 10px rgba(239,68,68,0.5);
393
393
  }
@@ -404,10 +404,10 @@
404
404
  color: rgba(255,255,255,0.75);
405
405
  }
406
406
 
407
- :global(.sc-hz-val[data-state="volumetric"]) { color: #bfdbfe; }
408
- :global(.sc-hz-val[data-state="optimal"]) { color: #6ee7b7; }
409
- :global(.sc-hz-val[data-state="high"]) { color: #fef08a; }
410
- :global(.sc-hz-val[data-state="limit"]) { color: #fca5a5; }
407
+ .sc-hz-val[data-state="volumetric"] { color: #bfdbfe; }
408
+ .sc-hz-val[data-state="optimal"] { color: #6ee7b7; }
409
+ .sc-hz-val[data-state="high"] { color: #fef08a; }
410
+ .sc-hz-val[data-state="limit"] { color: #fca5a5; }
411
411
 
412
412
  .sc-hz-status {
413
413
  color: rgba(255,255,255,0.75);
@@ -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
  }