@payloadcms/plugin-seo 3.0.0-beta.11 → 3.0.0-beta.13
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.
|
@@ -131,5 +131,27 @@ export declare const translations: {
|
|
|
131
131
|
tooShort: string;
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
+
uk: {
|
|
135
|
+
$schema: string;
|
|
136
|
+
'plugin-seo': {
|
|
137
|
+
almostThere: string;
|
|
138
|
+
autoGenerate: string;
|
|
139
|
+
bestPractices: string;
|
|
140
|
+
characterCount: string;
|
|
141
|
+
charactersLeftOver: string;
|
|
142
|
+
charactersToGo: string;
|
|
143
|
+
charactersTooMany: string;
|
|
144
|
+
checksPassing: string;
|
|
145
|
+
good: string;
|
|
146
|
+
imageAutoGenerationTip: string;
|
|
147
|
+
lengthTipDescription: string;
|
|
148
|
+
lengthTipTitle: string;
|
|
149
|
+
noImage: string;
|
|
150
|
+
preview: string;
|
|
151
|
+
previewDescription: string;
|
|
152
|
+
tooLong: string;
|
|
153
|
+
tooShort: string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
134
156
|
};
|
|
135
157
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/translations/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/translations/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6KxB,CAAA"}
|
|
@@ -130,6 +130,28 @@ export const translations = {
|
|
|
130
130
|
tooLong: 'Zbyt długie',
|
|
131
131
|
tooShort: 'Zbyt krótkie'
|
|
132
132
|
}
|
|
133
|
+
},
|
|
134
|
+
uk: {
|
|
135
|
+
$schema: './translation-schema.json',
|
|
136
|
+
'plugin-seo': {
|
|
137
|
+
almostThere: 'Ще трошки',
|
|
138
|
+
autoGenerate: 'Згенерувати',
|
|
139
|
+
bestPractices: 'найкращі практики',
|
|
140
|
+
characterCount: '{{current}}/{{minLength}}-{{maxLength}} символів, ',
|
|
141
|
+
charactersLeftOver: 'залишилось {{characters}} символів',
|
|
142
|
+
charactersToGo: ' на {{characters}} символів коротше',
|
|
143
|
+
charactersTooMany: 'на {{characters}} символів довше',
|
|
144
|
+
checksPassing: '{{current}}/{{max}} перевірок пройдено',
|
|
145
|
+
good: 'Чудово',
|
|
146
|
+
imageAutoGenerationTip: 'Автоматична генерація використає зображення з головного блоку',
|
|
147
|
+
lengthTipDescription: 'Має бути від {{minLength}} до {{maxLength}} символів. Щоб дізнатися, як писати якісні метаописи — перегляньте ',
|
|
148
|
+
lengthTipTitle: 'Має бути від {{minLength}} до {{maxLength}} символів. Щоб дізнатися, як писати якісні метазаголовки — перегляньте ',
|
|
149
|
+
noImage: 'Немає зображення',
|
|
150
|
+
preview: 'Попередній перегляд',
|
|
151
|
+
previewDescription: 'Реальне відображення може відрізнятися в залежності від вмісту та релевантності пошуку.',
|
|
152
|
+
tooLong: 'Задовгий',
|
|
153
|
+
tooShort: 'Закороткий'
|
|
154
|
+
}
|
|
133
155
|
}
|
|
134
156
|
};
|
|
135
157
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/translations/index.ts"],"sourcesContent":["export const translations = {\n en: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'Almost there',\n autoGenerate: 'Auto-generate',\n bestPractices: 'best practices',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} chars, ',\n charactersLeftOver: '{{characters}} left over',\n charactersToGo: '{{characters}} to go',\n charactersTooMany: '{{characters}} too many',\n checksPassing: '{{current}}/{{max}} checks are passing',\n good: 'Good',\n imageAutoGenerationTip: 'Auto-generation will retrieve the selected hero image.',\n lengthTipDescription:\n 'This should be between {{minLength}} and {{maxLength}} characters. For help in writing quality meta descriptions, see ',\n lengthTipTitle:\n 'This should be between {{minLength}} and {{maxLength}} characters. For help in writing quality meta titles, see ',\n noImage: 'No image',\n preview: 'Preview',\n previewDescription: 'Exact result listings may vary based on content and search relevancy.',\n tooLong: 'Too long',\n tooShort: 'Too short',\n },\n },\n es: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'Ya casi está',\n autoGenerate: 'Autogénerar',\n bestPractices: 'mejores prácticas',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} letras, ',\n charactersLeftOver: '{{characters}} letras sobrantes',\n charactersToGo: '{{characters}} letras sobrantes',\n charactersTooMany: '{{characters}} letras demasiados',\n checksPassing: '{{current}}/{{max}} las comprobaciones están pasando',\n good: 'Bien',\n imageAutoGenerationTip: 'La autogeneración recuperará la imagen de héroe seleccionada.',\n lengthTipDescription:\n 'Esto debe estar entre {{minLength}} y {{maxLength}} caracteres. Para obtener ayuda sobre cómo escribir meta descripciones de calidad, consulte ',\n lengthTipTitle:\n 'Debe tener entre {{minLength}} y {{maxLength}} caracteres. Para obtener ayuda sobre cómo escribir metatítulos de calidad, consulte ',\n noImage: 'Sin imagen',\n preview: 'Vista previa',\n previewDescription:\n 'Las listas de resultados pueden variar segun la relevancia de buesqueda y el contenido.',\n tooLong: 'Demasiado largo',\n tooShort: 'Demasiado corto',\n },\n },\n fa: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'چیزیی باقی نمونده',\n autoGenerate: 'تولید خودکار',\n bestPractices: 'آموزش بیشتر',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} کلمه، ',\n charactersLeftOver: '{{characters}} باقی مانده',\n charactersToGo: '{{characters}} باقی مانده',\n charactersTooMany: '{{characters}} بیش از حد',\n checksPassing: '{{current}}/{{max}} بررسیها با موفقیت انجام شده است',\n good: 'خوب',\n imageAutoGenerationTip:\n 'این قابلیت، تصویر فعلی بارگذاری شده در مجموعه محتوای شما را بازیابی میکند',\n lengthTipDescription:\n 'این باید بین {{minLength}} و {{maxLength}} کلمه باشد. برای کمک در نوشتن توضیحات متا با کیفیت، مراجعه کنید به ',\n lengthTipTitle:\n 'این باید بین {{minLength}} و {{maxLength}} کلمه باشد. برای کمک در نوشتن عناوین متا با کیفیت، مراجعه کنید به ',\n noImage: 'بدون تصویر',\n preview: 'پیشنمایش',\n previewDescription:\n 'فهرست نتایج ممکن است بر اساس محتوا و متناسب با کلمه کلیدی جستجو شده باشند',\n tooLong: 'خیلی طولانی',\n tooShort: 'خیلی کوتاه',\n },\n },\n fr: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'On y est presque',\n autoGenerate: 'Auto-générer',\n bestPractices: 'bonnes pratiques',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} caractères, ',\n charactersLeftOver: '{{characters}} restants',\n charactersToGo: '{{characters}} à ajouter',\n charactersTooMany: '{{characters}} en trop',\n checksPassing: '{{current}}/{{max}} vérifications réussies',\n good: 'Bien',\n imageAutoGenerationTip: \"L'auto-génération récupérera l'image principale sélectionnée.\",\n lengthTipDescription:\n \"Ceci devrait contenir entre {{minLength}} et {{maxLength}} caractères. Pour obtenir de l'aide pour rédiger des descriptions meta de qualité, consultez les \",\n lengthTipTitle:\n \"Ceci devrait contenir entre {{minLength}} et {{maxLength}} caractères. Pour obtenir de l'aide pour rédiger des titres meta de qualité, consultez les \",\n noImage: \"Pas d'image\",\n preview: 'Aperçu',\n previewDescription:\n 'Les résultats exacts peuvent varier en fonction du contenu et de la pertinence de la recherche.',\n tooLong: 'Trop long',\n tooShort: 'Trop court',\n },\n },\n nb: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'Nesten der',\n autoGenerate: 'Auto-generer',\n bestPractices: 'beste praksis',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} tegn, ',\n charactersLeftOver: '{{characters}} til overs',\n charactersToGo: '{{characters}} igjen',\n charactersTooMany: '{{characters}} for mange',\n checksPassing: '{{current}}/{{max}} sjekker bestått',\n good: 'Bra',\n imageAutoGenerationTip: 'Auto-generering vil hente det valgte hero-bildet.',\n lengthTipDescription:\n 'Dette bør være mellom {{minLength}} og {{maxLength}} tegn. For hjelp til å skrive beskrivelser av god kvalitet, se ',\n lengthTipTitle:\n 'Dette bør være mellom {{minLength}} og {{maxLength}} tegn. For hjelp til å skrive metatitler av god kvalitet, se ',\n noImage: 'Bilde mangler',\n preview: 'Forhåndsvisning',\n previewDescription:\n 'Eksakte resultatoppføringer kan variere basert på innhold og søke relevans.',\n tooLong: 'For lang',\n tooShort: 'For kort',\n },\n },\n pl: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'Prawie gotowe',\n autoGenerate: 'Wygeneruj automatycznie',\n bestPractices: 'najlepsze praktyki',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} znaków, ',\n charactersLeftOver: 'zostało {{characters}} znaków',\n charactersToGo: 'pozostało {{characters}} znaków',\n charactersTooMany: '{{characters}} znaków za dużo',\n checksPassing: '{{current}}/{{max}} testów zakończonych pomyślnie',\n good: 'Dobrze',\n imageAutoGenerationTip: 'Automatyczne generowanie pobierze wybrany główny obraz.',\n lengthTipDescription:\n 'Długość powinna wynosić od {{minLength}} do {{maxLength}} znaków. Po porady dotyczące pisania wysokiej jakości meta opisów zobacz ',\n lengthTipTitle:\n 'Długość powinna wynosić od {{minLength}} do {{maxLength}} znaków. Po porady dotyczące pisania wysokiej jakości meta tytułów zobacz ',\n noImage: 'Brak obrazu',\n preview: 'Podgląd',\n previewDescription:\n 'Dokładne wyniki listowania mogą się różnić w zależności od treści i zgodności z kryteriami wyszukiwania.',\n tooLong: 'Zbyt długie',\n tooShort: 'Zbyt krótkie',\n },\n },\n}\n"],"names":["translations","en","$schema","almostThere","autoGenerate","bestPractices","characterCount","charactersLeftOver","charactersToGo","charactersTooMany","checksPassing","good","imageAutoGenerationTip","lengthTipDescription","lengthTipTitle","noImage","preview","previewDescription","tooLong","tooShort","es","fa","fr","nb","pl"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,OAAO,MAAMA,eAAe;IAC1BC,IAAI;QACFC,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBAAoB;YACpBC,SAAS;YACTC,UAAU;QACZ;IACF;IACAC,IAAI;QACFlB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;IACAE,IAAI;QACFnB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBACE;YACFC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;IACAG,IAAI;QACFpB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;IACAI,IAAI;QACFrB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;IACAK,IAAI;QACFtB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;AACF,EAAC"}
|
|
1
|
+
{"version":3,"sources":["../../src/translations/index.ts"],"sourcesContent":["export const translations = {\n en: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'Almost there',\n autoGenerate: 'Auto-generate',\n bestPractices: 'best practices',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} chars, ',\n charactersLeftOver: '{{characters}} left over',\n charactersToGo: '{{characters}} to go',\n charactersTooMany: '{{characters}} too many',\n checksPassing: '{{current}}/{{max}} checks are passing',\n good: 'Good',\n imageAutoGenerationTip: 'Auto-generation will retrieve the selected hero image.',\n lengthTipDescription:\n 'This should be between {{minLength}} and {{maxLength}} characters. For help in writing quality meta descriptions, see ',\n lengthTipTitle:\n 'This should be between {{minLength}} and {{maxLength}} characters. For help in writing quality meta titles, see ',\n noImage: 'No image',\n preview: 'Preview',\n previewDescription: 'Exact result listings may vary based on content and search relevancy.',\n tooLong: 'Too long',\n tooShort: 'Too short',\n },\n },\n es: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'Ya casi está',\n autoGenerate: 'Autogénerar',\n bestPractices: 'mejores prácticas',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} letras, ',\n charactersLeftOver: '{{characters}} letras sobrantes',\n charactersToGo: '{{characters}} letras sobrantes',\n charactersTooMany: '{{characters}} letras demasiados',\n checksPassing: '{{current}}/{{max}} las comprobaciones están pasando',\n good: 'Bien',\n imageAutoGenerationTip: 'La autogeneración recuperará la imagen de héroe seleccionada.',\n lengthTipDescription:\n 'Esto debe estar entre {{minLength}} y {{maxLength}} caracteres. Para obtener ayuda sobre cómo escribir meta descripciones de calidad, consulte ',\n lengthTipTitle:\n 'Debe tener entre {{minLength}} y {{maxLength}} caracteres. Para obtener ayuda sobre cómo escribir metatítulos de calidad, consulte ',\n noImage: 'Sin imagen',\n preview: 'Vista previa',\n previewDescription:\n 'Las listas de resultados pueden variar segun la relevancia de buesqueda y el contenido.',\n tooLong: 'Demasiado largo',\n tooShort: 'Demasiado corto',\n },\n },\n fa: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'چیزیی باقی نمونده',\n autoGenerate: 'تولید خودکار',\n bestPractices: 'آموزش بیشتر',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} کلمه، ',\n charactersLeftOver: '{{characters}} باقی مانده',\n charactersToGo: '{{characters}} باقی مانده',\n charactersTooMany: '{{characters}} بیش از حد',\n checksPassing: '{{current}}/{{max}} بررسیها با موفقیت انجام شده است',\n good: 'خوب',\n imageAutoGenerationTip:\n 'این قابلیت، تصویر فعلی بارگذاری شده در مجموعه محتوای شما را بازیابی میکند',\n lengthTipDescription:\n 'این باید بین {{minLength}} و {{maxLength}} کلمه باشد. برای کمک در نوشتن توضیحات متا با کیفیت، مراجعه کنید به ',\n lengthTipTitle:\n 'این باید بین {{minLength}} و {{maxLength}} کلمه باشد. برای کمک در نوشتن عناوین متا با کیفیت، مراجعه کنید به ',\n noImage: 'بدون تصویر',\n preview: 'پیشنمایش',\n previewDescription:\n 'فهرست نتایج ممکن است بر اساس محتوا و متناسب با کلمه کلیدی جستجو شده باشند',\n tooLong: 'خیلی طولانی',\n tooShort: 'خیلی کوتاه',\n },\n },\n fr: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'On y est presque',\n autoGenerate: 'Auto-générer',\n bestPractices: 'bonnes pratiques',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} caractères, ',\n charactersLeftOver: '{{characters}} restants',\n charactersToGo: '{{characters}} à ajouter',\n charactersTooMany: '{{characters}} en trop',\n checksPassing: '{{current}}/{{max}} vérifications réussies',\n good: 'Bien',\n imageAutoGenerationTip: \"L'auto-génération récupérera l'image principale sélectionnée.\",\n lengthTipDescription:\n \"Ceci devrait contenir entre {{minLength}} et {{maxLength}} caractères. Pour obtenir de l'aide pour rédiger des descriptions meta de qualité, consultez les \",\n lengthTipTitle:\n \"Ceci devrait contenir entre {{minLength}} et {{maxLength}} caractères. Pour obtenir de l'aide pour rédiger des titres meta de qualité, consultez les \",\n noImage: \"Pas d'image\",\n preview: 'Aperçu',\n previewDescription:\n 'Les résultats exacts peuvent varier en fonction du contenu et de la pertinence de la recherche.',\n tooLong: 'Trop long',\n tooShort: 'Trop court',\n },\n },\n nb: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'Nesten der',\n autoGenerate: 'Auto-generer',\n bestPractices: 'beste praksis',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} tegn, ',\n charactersLeftOver: '{{characters}} til overs',\n charactersToGo: '{{characters}} igjen',\n charactersTooMany: '{{characters}} for mange',\n checksPassing: '{{current}}/{{max}} sjekker bestått',\n good: 'Bra',\n imageAutoGenerationTip: 'Auto-generering vil hente det valgte hero-bildet.',\n lengthTipDescription:\n 'Dette bør være mellom {{minLength}} og {{maxLength}} tegn. For hjelp til å skrive beskrivelser av god kvalitet, se ',\n lengthTipTitle:\n 'Dette bør være mellom {{minLength}} og {{maxLength}} tegn. For hjelp til å skrive metatitler av god kvalitet, se ',\n noImage: 'Bilde mangler',\n preview: 'Forhåndsvisning',\n previewDescription:\n 'Eksakte resultatoppføringer kan variere basert på innhold og søke relevans.',\n tooLong: 'For lang',\n tooShort: 'For kort',\n },\n },\n pl: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'Prawie gotowe',\n autoGenerate: 'Wygeneruj automatycznie',\n bestPractices: 'najlepsze praktyki',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} znaków, ',\n charactersLeftOver: 'zostało {{characters}} znaków',\n charactersToGo: 'pozostało {{characters}} znaków',\n charactersTooMany: '{{characters}} znaków za dużo',\n checksPassing: '{{current}}/{{max}} testów zakończonych pomyślnie',\n good: 'Dobrze',\n imageAutoGenerationTip: 'Automatyczne generowanie pobierze wybrany główny obraz.',\n lengthTipDescription:\n 'Długość powinna wynosić od {{minLength}} do {{maxLength}} znaków. Po porady dotyczące pisania wysokiej jakości meta opisów zobacz ',\n lengthTipTitle:\n 'Długość powinna wynosić od {{minLength}} do {{maxLength}} znaków. Po porady dotyczące pisania wysokiej jakości meta tytułów zobacz ',\n noImage: 'Brak obrazu',\n preview: 'Podgląd',\n previewDescription:\n 'Dokładne wyniki listowania mogą się różnić w zależności od treści i zgodności z kryteriami wyszukiwania.',\n tooLong: 'Zbyt długie',\n tooShort: 'Zbyt krótkie',\n },\n },\n uk: {\n $schema: './translation-schema.json',\n 'plugin-seo': {\n almostThere: 'Ще трошки',\n autoGenerate: 'Згенерувати',\n bestPractices: 'найкращі практики',\n characterCount: '{{current}}/{{minLength}}-{{maxLength}} символів, ',\n charactersLeftOver: 'залишилось {{characters}} символів',\n charactersToGo: ' на {{characters}} символів коротше',\n charactersTooMany: 'на {{characters}} символів довше',\n checksPassing: '{{current}}/{{max}} перевірок пройдено',\n good: 'Чудово',\n imageAutoGenerationTip: 'Автоматична генерація використає зображення з головного блоку',\n lengthTipDescription: 'Має бути від {{minLength}} до {{maxLength}} символів. Щоб дізнатися, як писати якісні метаописи — перегляньте ',\n lengthTipTitle: 'Має бути від {{minLength}} до {{maxLength}} символів. Щоб дізнатися, як писати якісні метазаголовки — перегляньте ',\n noImage: 'Немає зображення',\n preview: 'Попередній перегляд',\n previewDescription: 'Реальне відображення може відрізнятися в залежності від вмісту та релевантності пошуку.',\n tooLong: 'Задовгий',\n tooShort: 'Закороткий',\n },\n },\n}\n"],"names":["translations","en","$schema","almostThere","autoGenerate","bestPractices","characterCount","charactersLeftOver","charactersToGo","charactersTooMany","checksPassing","good","imageAutoGenerationTip","lengthTipDescription","lengthTipTitle","noImage","preview","previewDescription","tooLong","tooShort","es","fa","fr","nb","pl","uk"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":"AAAA,OAAO,MAAMA,eAAe;IAC1BC,IAAI;QACFC,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBAAoB;YACpBC,SAAS;YACTC,UAAU;QACZ;IACF;IACAC,IAAI;QACFlB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;IACAE,IAAI;QACFnB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBACE;YACFC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;IACAG,IAAI;QACFpB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;IACAI,IAAI;QACFrB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;IACAK,IAAI;QACFtB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBACE;YACFC,gBACE;YACFC,SAAS;YACTC,SAAS;YACTC,oBACE;YACFC,SAAS;YACTC,UAAU;QACZ;IACF;IACAM,IAAI;QACFvB,SAAS;QACT,cAAc;YACZC,aAAa;YACbC,cAAc;YACdC,eAAe;YACfC,gBAAgB;YAChBC,oBAAoB;YACpBC,gBAAgB;YAChBC,mBAAmB;YACnBC,eAAe;YACfC,MAAM;YACNC,wBAAwB;YACxBC,sBAAsB;YACtBC,gBAAgB;YAChBC,SAAS;YACTC,SAAS;YACTC,oBAAoB;YACpBC,SAAS;YACTC,UAAU;QACZ;IACF;AACF,EAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./translation-schema.json",
|
|
3
|
+
"plugin-seo": {
|
|
4
|
+
"almostThere": "Ще трошки",
|
|
5
|
+
"autoGenerate": "Згенерувати",
|
|
6
|
+
"bestPractices": "найкращі практики",
|
|
7
|
+
"characterCount": "{{current}}/{{minLength}}-{{maxLength}} символів, ",
|
|
8
|
+
"charactersLeftOver": "залишилось {{characters}} символів",
|
|
9
|
+
"charactersToGo": " на {{characters}} символів коротше",
|
|
10
|
+
"charactersTooMany": "на {{characters}} символів довше",
|
|
11
|
+
"checksPassing": "{{current}}/{{max}} перевірок пройдено",
|
|
12
|
+
"good": "Чудово",
|
|
13
|
+
"imageAutoGenerationTip": "Автоматична генерація використає зображення з головного блоку",
|
|
14
|
+
"lengthTipDescription": "Має бути від {{minLength}} до {{maxLength}} символів. Щоб дізнатися, як писати якісні метаописи — перегляньте ",
|
|
15
|
+
"lengthTipTitle": "Має бути від {{minLength}} до {{maxLength}} символів. Щоб дізнатися, як писати якісні метазаголовки — перегляньте ",
|
|
16
|
+
"noImage": "Немає зображення",
|
|
17
|
+
"preview": "Попередній перегляд",
|
|
18
|
+
"previewDescription": "Реальне відображення може відрізнятися в залежності від вмісту та релевантності пошуку.",
|
|
19
|
+
"tooLong": "Задовгий",
|
|
20
|
+
"tooShort": "Закороткий"
|
|
21
|
+
}
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/plugin-seo",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.13",
|
|
4
4
|
"homepage:": "https://payloadcms.com",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^18.0.0",
|
|
27
|
-
"payload": "3.0.0-beta.
|
|
28
|
-
"@payloadcms/translations": "3.0.0-beta.
|
|
29
|
-
"@payloadcms/ui": "3.0.0-beta.
|
|
27
|
+
"payload": "3.0.0-beta.13",
|
|
28
|
+
"@payloadcms/translations": "3.0.0-beta.13",
|
|
29
|
+
"@payloadcms/ui": "3.0.0-beta.13"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/react": "18.2.74",
|
|
33
33
|
"react": "^18.0.0",
|
|
34
34
|
"@payloadcms/eslint-config": "1.1.1",
|
|
35
|
-
"@payloadcms/
|
|
36
|
-
"
|
|
37
|
-
"
|
|
35
|
+
"@payloadcms/ui": "3.0.0-beta.13",
|
|
36
|
+
"@payloadcms/translations": "3.0.0-beta.13",
|
|
37
|
+
"payload": "3.0.0-beta.13"
|
|
38
38
|
},
|
|
39
39
|
"exports": {
|
|
40
40
|
".": {
|
package/src/index.tsx
DELETED
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
import type { Config } from 'payload/config'
|
|
2
|
-
import type { Field, GroupField, TabsField, TextField } from 'payload/types'
|
|
3
|
-
|
|
4
|
-
import { deepMerge } from 'payload/utilities'
|
|
5
|
-
import React from 'react'
|
|
6
|
-
|
|
7
|
-
import type {
|
|
8
|
-
GenerateDescription,
|
|
9
|
-
GenerateImage,
|
|
10
|
-
GenerateTitle,
|
|
11
|
-
GenerateURL,
|
|
12
|
-
PluginConfig,
|
|
13
|
-
} from './types.js'
|
|
14
|
-
|
|
15
|
-
import { MetaDescription } from './fields/MetaDescription.js'
|
|
16
|
-
import { MetaImage } from './fields/MetaImage.js'
|
|
17
|
-
import { MetaTitle } from './fields/MetaTitle.js'
|
|
18
|
-
import { translations } from './translations/index.js'
|
|
19
|
-
import { Overview } from './ui/Overview.js'
|
|
20
|
-
import { Preview } from './ui/Preview.js'
|
|
21
|
-
|
|
22
|
-
const seo =
|
|
23
|
-
(pluginConfig: PluginConfig) =>
|
|
24
|
-
(config: Config): Config => {
|
|
25
|
-
const seoFields: GroupField[] = [
|
|
26
|
-
{
|
|
27
|
-
name: 'meta',
|
|
28
|
-
type: 'group',
|
|
29
|
-
fields: [
|
|
30
|
-
{
|
|
31
|
-
name: 'overview',
|
|
32
|
-
type: 'ui',
|
|
33
|
-
admin: {
|
|
34
|
-
components: {
|
|
35
|
-
Field: Overview,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
label: 'Overview',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'title',
|
|
42
|
-
type: 'text',
|
|
43
|
-
admin: {
|
|
44
|
-
components: {
|
|
45
|
-
Field: (props) => (
|
|
46
|
-
<MetaTitle
|
|
47
|
-
{...props}
|
|
48
|
-
hasGenerateTitleFn={typeof pluginConfig?.generateTitle === 'function'}
|
|
49
|
-
/>
|
|
50
|
-
),
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
localized: true,
|
|
54
|
-
...((pluginConfig?.fieldOverrides?.title as unknown as TextField) ?? {}),
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'description',
|
|
58
|
-
type: 'textarea',
|
|
59
|
-
admin: {
|
|
60
|
-
components: {
|
|
61
|
-
Field: (props) => (
|
|
62
|
-
<MetaDescription
|
|
63
|
-
{...props}
|
|
64
|
-
hasGenerateDescriptionFn={
|
|
65
|
-
typeof pluginConfig?.generateDescription === 'function'
|
|
66
|
-
}
|
|
67
|
-
/>
|
|
68
|
-
),
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
localized: true,
|
|
72
|
-
...(pluginConfig?.fieldOverrides?.description ?? {}),
|
|
73
|
-
},
|
|
74
|
-
...(pluginConfig?.uploadsCollection
|
|
75
|
-
? [
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
77
|
-
{
|
|
78
|
-
name: 'image',
|
|
79
|
-
type: 'upload',
|
|
80
|
-
admin: {
|
|
81
|
-
components: {
|
|
82
|
-
Field: (props) => (
|
|
83
|
-
<MetaImage
|
|
84
|
-
{...props}
|
|
85
|
-
hasGenerateImageFn={typeof pluginConfig?.generateImage === 'function'}
|
|
86
|
-
/>
|
|
87
|
-
),
|
|
88
|
-
},
|
|
89
|
-
description:
|
|
90
|
-
'Maximum upload file size: 12MB. Recommended file size for images is <500KB.',
|
|
91
|
-
},
|
|
92
|
-
label: 'Meta Image',
|
|
93
|
-
localized: true,
|
|
94
|
-
relationTo: pluginConfig?.uploadsCollection,
|
|
95
|
-
...(pluginConfig?.fieldOverrides?.image ?? {}),
|
|
96
|
-
} as Field,
|
|
97
|
-
]
|
|
98
|
-
: []),
|
|
99
|
-
...(pluginConfig?.fields || []),
|
|
100
|
-
{
|
|
101
|
-
name: 'preview',
|
|
102
|
-
type: 'ui',
|
|
103
|
-
admin: {
|
|
104
|
-
components: {
|
|
105
|
-
Field: (props) => (
|
|
106
|
-
<Preview
|
|
107
|
-
{...props}
|
|
108
|
-
hasGenerateURLFn={typeof pluginConfig?.generateURL === 'function'}
|
|
109
|
-
/>
|
|
110
|
-
),
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
label: 'Preview',
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
interfaceName: pluginConfig.interfaceName,
|
|
117
|
-
label: 'SEO',
|
|
118
|
-
},
|
|
119
|
-
]
|
|
120
|
-
|
|
121
|
-
return {
|
|
122
|
-
...config,
|
|
123
|
-
collections:
|
|
124
|
-
config.collections?.map((collection) => {
|
|
125
|
-
const { slug } = collection
|
|
126
|
-
const isEnabled = pluginConfig?.collections?.includes(slug)
|
|
127
|
-
|
|
128
|
-
if (isEnabled) {
|
|
129
|
-
if (pluginConfig?.tabbedUI) {
|
|
130
|
-
// prevent issues with auth enabled collections having an email field that shouldn't be moved to the SEO tab
|
|
131
|
-
const emailField =
|
|
132
|
-
(collection.auth ||
|
|
133
|
-
!(typeof collection.auth === 'object' && collection.auth.disableLocalStrategy)) &&
|
|
134
|
-
collection.fields?.find((field) => 'name' in field && field.name === 'email')
|
|
135
|
-
const hasOnlyEmailField = collection.fields?.length === 1 && emailField
|
|
136
|
-
|
|
137
|
-
const seoTabs: TabsField[] = hasOnlyEmailField
|
|
138
|
-
? [
|
|
139
|
-
{
|
|
140
|
-
type: 'tabs',
|
|
141
|
-
tabs: [
|
|
142
|
-
{
|
|
143
|
-
fields: seoFields,
|
|
144
|
-
label: 'SEO',
|
|
145
|
-
},
|
|
146
|
-
],
|
|
147
|
-
},
|
|
148
|
-
]
|
|
149
|
-
: [
|
|
150
|
-
{
|
|
151
|
-
type: 'tabs',
|
|
152
|
-
tabs: [
|
|
153
|
-
// append a new tab onto the end of the tabs array, if there is one at the first index
|
|
154
|
-
// if needed, create a new `Content` tab in the first index for this collection's base fields
|
|
155
|
-
...(collection?.fields?.[0]?.type === 'tabs' &&
|
|
156
|
-
collection?.fields?.[0]?.tabs
|
|
157
|
-
? collection.fields[0].tabs
|
|
158
|
-
: [
|
|
159
|
-
{
|
|
160
|
-
fields: [
|
|
161
|
-
...(emailField
|
|
162
|
-
? collection.fields.filter(
|
|
163
|
-
(field) => 'name' in field && field.name !== 'email',
|
|
164
|
-
)
|
|
165
|
-
: collection.fields),
|
|
166
|
-
],
|
|
167
|
-
label: collection?.labels?.singular || 'Content',
|
|
168
|
-
},
|
|
169
|
-
]),
|
|
170
|
-
{
|
|
171
|
-
fields: seoFields,
|
|
172
|
-
label: 'SEO',
|
|
173
|
-
},
|
|
174
|
-
],
|
|
175
|
-
},
|
|
176
|
-
]
|
|
177
|
-
|
|
178
|
-
return {
|
|
179
|
-
...collection,
|
|
180
|
-
fields: [
|
|
181
|
-
...(emailField ? [emailField] : []),
|
|
182
|
-
...seoTabs,
|
|
183
|
-
...(collection?.fields?.[0]?.type === 'tabs' ? collection.fields.slice(1) : []),
|
|
184
|
-
],
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
return {
|
|
189
|
-
...collection,
|
|
190
|
-
fields: [...(collection?.fields || []), ...seoFields],
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
return collection
|
|
195
|
-
}) || [],
|
|
196
|
-
endpoints: [
|
|
197
|
-
...(config.endpoints ?? []),
|
|
198
|
-
{
|
|
199
|
-
handler: async (req) => {
|
|
200
|
-
const args: Parameters<GenerateTitle>[0] =
|
|
201
|
-
req.data as unknown as Parameters<GenerateTitle>[0]
|
|
202
|
-
const result = pluginConfig.generateTitle ? await pluginConfig.generateTitle(args) : ''
|
|
203
|
-
return new Response(JSON.stringify({ result }), { status: 200 })
|
|
204
|
-
},
|
|
205
|
-
method: 'post',
|
|
206
|
-
path: '/plugin-seo/generate-title',
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
handler: async (req) => {
|
|
210
|
-
const args: Parameters<GenerateDescription>[0] =
|
|
211
|
-
req.data as unknown as Parameters<GenerateDescription>[0]
|
|
212
|
-
const result = pluginConfig.generateDescription
|
|
213
|
-
? await pluginConfig.generateDescription(args)
|
|
214
|
-
: ''
|
|
215
|
-
return new Response(JSON.stringify({ result }), { status: 200 })
|
|
216
|
-
},
|
|
217
|
-
method: 'post',
|
|
218
|
-
path: '/plugin-seo/generate-description',
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
handler: async (req) => {
|
|
222
|
-
const args: Parameters<GenerateURL>[0] =
|
|
223
|
-
req.data as unknown as Parameters<GenerateURL>[0]
|
|
224
|
-
const result = pluginConfig.generateURL ? await pluginConfig.generateURL(args) : ''
|
|
225
|
-
return new Response(JSON.stringify({ result }), { status: 200 })
|
|
226
|
-
},
|
|
227
|
-
method: 'post',
|
|
228
|
-
path: '/plugin-seo/generate-url',
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
handler: async (req) => {
|
|
232
|
-
const args: Parameters<GenerateImage>[0] =
|
|
233
|
-
req.data as unknown as Parameters<GenerateImage>[0]
|
|
234
|
-
const result = pluginConfig.generateImage ? await pluginConfig.generateImage(args) : ''
|
|
235
|
-
return new Response(result, { status: 200 })
|
|
236
|
-
},
|
|
237
|
-
method: 'post',
|
|
238
|
-
path: '/plugin-seo/generate-image',
|
|
239
|
-
},
|
|
240
|
-
],
|
|
241
|
-
globals:
|
|
242
|
-
config.globals?.map((global) => {
|
|
243
|
-
const { slug } = global
|
|
244
|
-
const isEnabled = pluginConfig?.globals?.includes(slug)
|
|
245
|
-
|
|
246
|
-
if (isEnabled) {
|
|
247
|
-
if (pluginConfig?.tabbedUI) {
|
|
248
|
-
const seoTabs: TabsField[] = [
|
|
249
|
-
{
|
|
250
|
-
type: 'tabs',
|
|
251
|
-
tabs: [
|
|
252
|
-
// append a new tab onto the end of the tabs array, if there is one at the first index
|
|
253
|
-
// if needed, create a new `Content` tab in the first index for this global's base fields
|
|
254
|
-
...(global?.fields?.[0].type === 'tabs' && global?.fields?.[0].tabs
|
|
255
|
-
? global.fields[0].tabs
|
|
256
|
-
: [
|
|
257
|
-
{
|
|
258
|
-
fields: [...(global?.fields || [])],
|
|
259
|
-
label: global?.label || 'Content',
|
|
260
|
-
},
|
|
261
|
-
]),
|
|
262
|
-
{
|
|
263
|
-
fields: seoFields,
|
|
264
|
-
label: 'SEO',
|
|
265
|
-
},
|
|
266
|
-
],
|
|
267
|
-
},
|
|
268
|
-
]
|
|
269
|
-
|
|
270
|
-
return {
|
|
271
|
-
...global,
|
|
272
|
-
fields: [
|
|
273
|
-
...seoTabs,
|
|
274
|
-
...(global?.fields?.[0].type === 'tabs' ? global.fields.slice(1) : []),
|
|
275
|
-
],
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
return {
|
|
280
|
-
...global,
|
|
281
|
-
fields: [...(global?.fields || []), ...seoFields],
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
return global
|
|
286
|
-
}) || [],
|
|
287
|
-
i18n: {
|
|
288
|
-
...config.i18n,
|
|
289
|
-
translations: {
|
|
290
|
-
...deepMerge(translations, config.i18n?.translations),
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export { seo }
|