feat(plugin-seo): add vietnamese translation (#8179)
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
|
||||
export const fa: GenericTranslationsObject = {
|
||||
$schema: './translation-schema.json',
|
||||
'plugin-seo': {
|
||||
missing: 'ناقص',
|
||||
almostThere: 'چیزیی باقی نمونده',
|
||||
autoGenerate: 'تولید خودکار',
|
||||
bestPractices: 'آموزش بیشتر',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
|
||||
export const ru: GenericTranslationsObject = {
|
||||
$schema: './translation-schema.json',
|
||||
'plugin-seo': {
|
||||
missing: 'Отсутствует',
|
||||
almostThere: 'Почти готово',
|
||||
autoGenerate: 'Сгенерировать автоматически',
|
||||
bestPractices: 'лучшие практики',
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -3,6 +3,7 @@ import type { GenericTranslationsObject } from '@payloadcms/translations'
|
||||
export const uk: GenericTranslationsObject = {
|
||||
$schema: './translation-schema.json',
|
||||
'plugin-seo': {
|
||||
missing: 'Відсутнє',
|
||||
almostThere: 'Ще трошки',
|
||||
autoGenerate: 'Згенерувати',
|
||||
bestPractices: 'найкращі практики',
|
||||
|
||||
27
packages/plugin-seo/src/translations/vi.ts
Normal file
27
packages/plugin-seo/src/translations/vi.ts
Normal 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',
|
||||
},
|
||||
}
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user