@jjlmoya/utils-social 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 (132) hide show
  1. package/package.json +1 -1
  2. package/src/pages/[locale]/[slug].astro +28 -12
  3. package/src/tests/locale_completeness.test.ts +4 -14
  4. package/src/tests/shared-test-helpers.ts +56 -0
  5. package/src/tests/tool_exports.test.ts +34 -0
  6. package/src/tool/redditFormatter/bibliography.astro +2 -10
  7. package/src/tool/redditFormatter/bibliography.ts +12 -0
  8. package/src/tool/redditFormatter/i18n/de.ts +3 -13
  9. package/src/tool/redditFormatter/i18n/en.ts +3 -13
  10. package/src/tool/redditFormatter/i18n/es.ts +3 -13
  11. package/src/tool/redditFormatter/i18n/fr.ts +3 -13
  12. package/src/tool/redditFormatter/i18n/id.ts +3 -13
  13. package/src/tool/redditFormatter/i18n/it.ts +3 -13
  14. package/src/tool/redditFormatter/i18n/ja.ts +3 -13
  15. package/src/tool/redditFormatter/i18n/ko.ts +3 -13
  16. package/src/tool/redditFormatter/i18n/nl.ts +3 -13
  17. package/src/tool/redditFormatter/i18n/pl.ts +3 -13
  18. package/src/tool/redditFormatter/i18n/pt.ts +3 -13
  19. package/src/tool/redditFormatter/i18n/ru.ts +3 -13
  20. package/src/tool/redditFormatter/i18n/sv.ts +3 -13
  21. package/src/tool/redditFormatter/i18n/tr.ts +3 -13
  22. package/src/tool/redditFormatter/i18n/zh.ts +3 -13
  23. package/src/tool/redditFormatter/seo.astro +2 -1
  24. package/src/tool/safeZones/bibliography.astro +2 -10
  25. package/src/tool/safeZones/bibliography.ts +20 -0
  26. package/src/tool/safeZones/i18n/de.ts +3 -21
  27. package/src/tool/safeZones/i18n/en.ts +3 -21
  28. package/src/tool/safeZones/i18n/es.ts +3 -21
  29. package/src/tool/safeZones/i18n/fr.ts +3 -21
  30. package/src/tool/safeZones/i18n/id.ts +3 -21
  31. package/src/tool/safeZones/i18n/it.ts +3 -21
  32. package/src/tool/safeZones/i18n/ja.ts +3 -21
  33. package/src/tool/safeZones/i18n/ko.ts +3 -21
  34. package/src/tool/safeZones/i18n/nl.ts +3 -21
  35. package/src/tool/safeZones/i18n/pl.ts +3 -21
  36. package/src/tool/safeZones/i18n/pt.ts +3 -21
  37. package/src/tool/safeZones/i18n/ru.ts +3 -21
  38. package/src/tool/safeZones/i18n/sv.ts +3 -21
  39. package/src/tool/safeZones/i18n/tr.ts +3 -21
  40. package/src/tool/safeZones/i18n/zh.ts +3 -21
  41. package/src/tool/safeZones/seo.astro +2 -1
  42. package/src/tool/socialImageResizer/bibliography.astro +2 -10
  43. package/src/tool/socialImageResizer/bibliography.ts +12 -0
  44. package/src/tool/socialImageResizer/i18n/de.ts +3 -13
  45. package/src/tool/socialImageResizer/i18n/en.ts +3 -13
  46. package/src/tool/socialImageResizer/i18n/es.ts +3 -13
  47. package/src/tool/socialImageResizer/i18n/fr.ts +3 -13
  48. package/src/tool/socialImageResizer/i18n/id.ts +3 -13
  49. package/src/tool/socialImageResizer/i18n/it.ts +3 -13
  50. package/src/tool/socialImageResizer/i18n/ja.ts +3 -13
  51. package/src/tool/socialImageResizer/i18n/ko.ts +3 -13
  52. package/src/tool/socialImageResizer/i18n/nl.ts +3 -13
  53. package/src/tool/socialImageResizer/i18n/pl.ts +3 -13
  54. package/src/tool/socialImageResizer/i18n/pt.ts +3 -13
  55. package/src/tool/socialImageResizer/i18n/ru.ts +3 -13
  56. package/src/tool/socialImageResizer/i18n/sv.ts +3 -13
  57. package/src/tool/socialImageResizer/i18n/tr.ts +3 -13
  58. package/src/tool/socialImageResizer/i18n/zh.ts +3 -13
  59. package/src/tool/socialImageResizer/seo.astro +2 -1
  60. package/src/tool/socialValueCalculator/bibliography.astro +2 -10
  61. package/src/tool/socialValueCalculator/bibliography.ts +16 -0
  62. package/src/tool/socialValueCalculator/i18n/de.ts +3 -17
  63. package/src/tool/socialValueCalculator/i18n/en.ts +3 -17
  64. package/src/tool/socialValueCalculator/i18n/es.ts +3 -17
  65. package/src/tool/socialValueCalculator/i18n/fr.ts +3 -17
  66. package/src/tool/socialValueCalculator/i18n/id.ts +3 -17
  67. package/src/tool/socialValueCalculator/i18n/it.ts +3 -17
  68. package/src/tool/socialValueCalculator/i18n/ja.ts +3 -17
  69. package/src/tool/socialValueCalculator/i18n/ko.ts +3 -17
  70. package/src/tool/socialValueCalculator/i18n/nl.ts +3 -17
  71. package/src/tool/socialValueCalculator/i18n/pl.ts +3 -17
  72. package/src/tool/socialValueCalculator/i18n/pt.ts +3 -17
  73. package/src/tool/socialValueCalculator/i18n/ru.ts +3 -17
  74. package/src/tool/socialValueCalculator/i18n/sv.ts +3 -17
  75. package/src/tool/socialValueCalculator/i18n/tr.ts +3 -17
  76. package/src/tool/socialValueCalculator/i18n/zh.ts +3 -17
  77. package/src/tool/socialValueCalculator/seo.astro +2 -1
  78. package/src/tool/tinderPhotoOptimizer/bibliography.astro +2 -10
  79. package/src/tool/tinderPhotoOptimizer/bibliography.ts +12 -0
  80. package/src/tool/tinderPhotoOptimizer/i18n/de.ts +3 -13
  81. package/src/tool/tinderPhotoOptimizer/i18n/en.ts +3 -13
  82. package/src/tool/tinderPhotoOptimizer/i18n/es.ts +3 -13
  83. package/src/tool/tinderPhotoOptimizer/i18n/fr.ts +3 -13
  84. package/src/tool/tinderPhotoOptimizer/i18n/id.ts +3 -13
  85. package/src/tool/tinderPhotoOptimizer/i18n/it.ts +3 -13
  86. package/src/tool/tinderPhotoOptimizer/i18n/ja.ts +3 -13
  87. package/src/tool/tinderPhotoOptimizer/i18n/ko.ts +3 -13
  88. package/src/tool/tinderPhotoOptimizer/i18n/nl.ts +3 -13
  89. package/src/tool/tinderPhotoOptimizer/i18n/pl.ts +3 -13
  90. package/src/tool/tinderPhotoOptimizer/i18n/pt.ts +3 -13
  91. package/src/tool/tinderPhotoOptimizer/i18n/ru.ts +3 -13
  92. package/src/tool/tinderPhotoOptimizer/i18n/sv.ts +3 -13
  93. package/src/tool/tinderPhotoOptimizer/i18n/tr.ts +3 -13
  94. package/src/tool/tinderPhotoOptimizer/i18n/zh.ts +3 -13
  95. package/src/tool/tinderPhotoOptimizer/seo.astro +2 -1
  96. package/src/tool/youtubeThumbnail/bibliography.astro +2 -10
  97. package/src/tool/youtubeThumbnail/bibliography.ts +16 -0
  98. package/src/tool/youtubeThumbnail/i18n/de.ts +3 -17
  99. package/src/tool/youtubeThumbnail/i18n/en.ts +3 -17
  100. package/src/tool/youtubeThumbnail/i18n/es.ts +3 -17
  101. package/src/tool/youtubeThumbnail/i18n/fr.ts +3 -17
  102. package/src/tool/youtubeThumbnail/i18n/id.ts +3 -17
  103. package/src/tool/youtubeThumbnail/i18n/it.ts +3 -17
  104. package/src/tool/youtubeThumbnail/i18n/ja.ts +3 -17
  105. package/src/tool/youtubeThumbnail/i18n/ko.ts +3 -17
  106. package/src/tool/youtubeThumbnail/i18n/nl.ts +3 -17
  107. package/src/tool/youtubeThumbnail/i18n/pl.ts +3 -17
  108. package/src/tool/youtubeThumbnail/i18n/pt.ts +3 -17
  109. package/src/tool/youtubeThumbnail/i18n/ru.ts +3 -17
  110. package/src/tool/youtubeThumbnail/i18n/sv.ts +3 -17
  111. package/src/tool/youtubeThumbnail/i18n/tr.ts +3 -17
  112. package/src/tool/youtubeThumbnail/i18n/zh.ts +3 -17
  113. package/src/tool/youtubeThumbnail/seo.astro +2 -1
  114. package/src/tool/youtubeThumbnailPreviewer/bibliography.astro +2 -10
  115. package/src/tool/youtubeThumbnailPreviewer/bibliography.ts +16 -0
  116. package/src/tool/youtubeThumbnailPreviewer/i18n/de.ts +3 -17
  117. package/src/tool/youtubeThumbnailPreviewer/i18n/en.ts +3 -17
  118. package/src/tool/youtubeThumbnailPreviewer/i18n/es.ts +3 -17
  119. package/src/tool/youtubeThumbnailPreviewer/i18n/fr.ts +3 -17
  120. package/src/tool/youtubeThumbnailPreviewer/i18n/id.ts +3 -17
  121. package/src/tool/youtubeThumbnailPreviewer/i18n/it.ts +3 -17
  122. package/src/tool/youtubeThumbnailPreviewer/i18n/ja.ts +3 -17
  123. package/src/tool/youtubeThumbnailPreviewer/i18n/ko.ts +3 -17
  124. package/src/tool/youtubeThumbnailPreviewer/i18n/nl.ts +3 -17
  125. package/src/tool/youtubeThumbnailPreviewer/i18n/pl.ts +3 -17
  126. package/src/tool/youtubeThumbnailPreviewer/i18n/pt.ts +3 -17
  127. package/src/tool/youtubeThumbnailPreviewer/i18n/ru.ts +3 -17
  128. package/src/tool/youtubeThumbnailPreviewer/i18n/sv.ts +3 -17
  129. package/src/tool/youtubeThumbnailPreviewer/i18n/tr.ts +3 -17
  130. package/src/tool/youtubeThumbnailPreviewer/i18n/zh.ts +3 -17
  131. package/src/tool/youtubeThumbnailPreviewer/seo.astro +2 -1
  132. package/src/types.ts +0 -2
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Preguntas Frecuentes',
96
- faq: faqData,
97
- bibliographyTitle: 'Referencias',
98
- bibliography: [
99
- {
100
- name: 'YouTube Help: Create custom video thumbnails',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Questions Fréquentes',
96
- faq: faqData,
97
- bibliographyTitle: 'Références',
98
- bibliography: [
99
- {
100
- name: 'YouTube Help: Create custom video thumbnails',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Pertanyaan yang Sering Diajukan',
96
- faq: faqData,
97
- bibliographyTitle: 'Referensi',
98
- bibliography: [
99
- {
100
- name: 'Bantuan YouTube: Membuat thumbnail video kustom',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Domande Frequenti',
96
- faq: faqData,
97
- bibliographyTitle: 'Riferimenti',
98
- bibliography: [
99
- {
100
- name: 'Guida di YouTube: Creare miniature personalizzate per i video',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'よくある質問',
96
- faq: faqData,
97
- bibliographyTitle: '関連リファレンス',
98
- bibliography: [
99
- {
100
- name: 'YouTubeヘルプ: カスタム動画サムネイルを追加する',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: '자주 묻는 질문',
96
- faq: faqData,
97
- bibliographyTitle: '참고 자료',
98
- bibliography: [
99
- {
100
- name: '유튜브 고객센터: 맞춤 동영상 썸네일 만들기',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Veelgestelde Vragen',
96
- faq: faqData,
97
- bibliographyTitle: 'Referenties',
98
- bibliography: [
99
- {
100
- name: 'YouTube Help: Aangepaste videothumbnails maken',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Często zadawane pytania',
96
- faq: faqData,
97
- bibliographyTitle: 'Źródła i referencje',
98
- bibliography: [
99
- {
100
- name: 'Pomoc YouTube: Tworzenie niestandardowych miniaturek filmów',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Perguntas Frequentes',
96
- faq: faqData,
97
- bibliographyTitle: 'Referências',
98
- bibliography: [
99
- {
100
- name: 'YouTube Help: Create custom video thumbnails',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Часто задаваемые вопросы',
96
- faq: faqData,
97
- bibliographyTitle: 'Ссылки и источники',
98
- bibliography: [
99
- {
100
- name: 'Справка YouTube: Как добавить персонализированный значок видео',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: Формула YouTube (стратегия значков)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Vanliga frågor',
96
- faq: faqData,
97
- bibliographyTitle: 'Referenser',
98
- bibliography: [
99
- {
100
- name: 'YouTube-hjälp: Skapa anpassade videominiatyrer',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: 'Sıkça Sorulan Sorular',
96
- faq: faqData,
97
- bibliographyTitle: 'Referanslar',
98
- bibliography: [
99
- {
100
- name: 'YouTube Yardımı: Özel video küçük resimleri oluşturma',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -1,3 +1,4 @@
1
+ import { bibliography } from '../bibliography';
1
2
  import type { WithContext, FAQPage, HowToThing, SoftwareApplication } from 'schema-dts';
2
3
  import type { ToolLocaleContent } from '../../../types';
3
4
  import type { YoutubeThumbnailPreviewerUI } from '../ui';
@@ -92,23 +93,8 @@ export const content: ToolLocaleContent<YoutubeThumbnailPreviewerUI> = {
92
93
  slug,
93
94
  title,
94
95
  description,
95
- faqTitle: '常见问题',
96
- faq: faqData,
97
- bibliographyTitle: '参考资料',
98
- bibliography: [
99
- {
100
- name: 'YouTube 帮助:制作自定义视频缩略图',
101
- url: 'https://support.google.com/youtube/answer/141805',
102
- },
103
- {
104
- name: 'Nielsen Norman Group: Visual Processing and UX Design',
105
- url: 'https://www.nngroup.com/articles/visual-processing/',
106
- },
107
- {
108
- name: 'Derral Eves: The YouTube Formula (Thumbnail Strategy)',
109
- url: 'https://derraleves.com/the-youtube-formula/',
110
- },
111
- ],
96
+ faq: faqData,
97
+ bibliography,
112
98
  howTo: howToData,
113
99
  schemas: [faqSchema, howToSchema, appSchema],
114
100
  seo: [
@@ -11,4 +11,5 @@ const { locale = 'es' } = Astro.props;
11
11
  const content = await youtubeThumbnailPreviewer.i18n[locale]?.();
12
12
  if (!content) return null;
13
13
  ---
14
- <SEORenderer content={{ locale: locale as string, sections: content.seo }} />
14
+
15
+ {content.seo?.length > 0 && <SEORenderer content={{ locale, sections: content.seo }} />}
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>[];