feat(plugin-seo): add vietnamese translation (#8179)

This commit is contained in:
Thành Trang
2024-09-18 00:25:57 +07:00
committed by GitHub
parent 31ffc57366
commit 89601f18f5
12 changed files with 42 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
export const en: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'Missing',
almostThere: 'Almost there',
autoGenerate: 'Auto-generate',
bestPractices: 'best practices',

View File

@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
export const es: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'Falta',
almostThere: 'Ya casi está',
autoGenerate: 'Autogénerar',
bestPractices: 'mejores prácticas',

View File

@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
export const fa: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'ناقص',
almostThere: 'چیزیی باقی نمونده',
autoGenerate: 'تولید خودکار',
bestPractices: 'آموزش بیشتر',

View File

@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
export const fr: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'Manquant',
almostThere: 'On y est presque',
autoGenerate: 'Auto-générer',
bestPractices: 'bonnes pratiques',

View File

@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
export const it: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'Mancante',
almostThere: 'Ci siamo quasi',
autoGenerate: 'Generazione automatica',
bestPractices: 'migliori pratiche',

View File

@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
export const nb: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'Mangler',
almostThere: 'Nesten der',
autoGenerate: 'Auto-generer',
bestPractices: 'beste praksis',

View File

@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
export const pl: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'Brakuje',
almostThere: 'Prawie gotowe',
autoGenerate: 'Wygeneruj automatycznie',
bestPractices: 'najlepsze praktyki',

View File

@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
export const ru: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'Отсутствует',
almostThere: 'Почти готово',
autoGenerate: 'Сгенерировать автоматически',
bestPractices: 'лучшие практики',

View File

@@ -10,6 +10,9 @@
"type": "object",
"additionalProperties": false,
"properties": {
"missing": {
"type": "string"
},
"almostThere": {
"type": "string"
},
@@ -79,7 +82,8 @@
"noImage",
"checksPassing",
"preview",
"previewDescription"
"previewDescription",
"missing"
]
}
},

View File

@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
export const uk: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'Відсутнє',
almostThere: 'Ще трошки',
autoGenerate: 'Згенерувати',
bestPractices: 'найкращі практики',

View File

@@ -0,0 +1,27 @@
import type { GenericTranslationsObject } from '@payloadcms/translations'
export const vi: GenericTranslationsObject = {
$schema: './translation-schema.json',
'plugin-seo': {
missing: 'Không đạt',
almostThere: 'Gần đạt',
autoGenerate: 'Tự động tạo',
bestPractices: 'các phương pháp hay nhất',
characterCount: '{{current}}/{{minLength}}-{{maxLength}} kí tự, ',
charactersLeftOver: 'còn lại {{characters}}',
charactersToGo: 'Còn {{characters}} ký tự nữa',
charactersTooMany: 'vượt quá {{characters}} ký tự',
checksPassing: '{{current}}/{{max}} đã đạt',
good: 'Tốt',
imageAutoGenerationTip: 'Tính năng tự động tạo sẽ lấy ảnh đầu tiên được chọn.',
lengthTipDescription:
'Độ dài nên từ {{minLength}}-{{maxLength}} kí tự. Để được hướng dẫn viết mô tả meta chất lượng, hãy xem ',
lengthTipTitle:
'Độ dài nên từ {{minLength}}-{{maxLength}} kí tự. Để được hướng dẫn viết mô tả meta chất lượng, hãy xem ',
noImage: 'Chưa có ảnh',
preview: 'Xem trước',
previewDescription: 'Kết quả hiển thị có thể thay đổi tuỳ theo nội dung và công cụ tìm kiếm.',
tooLong: 'Quá dài',
tooShort: 'Quá ngắn',
},
}

View File

@@ -27,7 +27,7 @@ export const LengthIndicator: React.FC<{
const textLength = text?.length || 0
if (textLength === 0) {
setLabel('Missing')
setLabel(t('plugin-seo:missing'))
setLabelStyle({
backgroundColor: 'red',
color: 'white',