Skip to content

Commit da27afc

Browse files
fix(plugin-seo,richtext-lexical): add missing translations (#11859)
<!-- Thank you for the PR! Please go through the checklist below and make sure you've completed all the steps. Please review the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository if you haven't already. The following items will ensure that your PR is handled as smoothly as possible: - PR Title must follow conventional commits format. For example, `feat: my new feature`, `fix(plugin-seo): my fix`. - Minimal description explained as if explained to someone not immediately familiar with the code. - Provide before/after screenshots or code diffs if applicable. - Link any related issues/discussions from GitHub or Discord. - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Fixes # --> ### What? This PR adds the new `hy` locale to `plugin-seo` as it can lead to confusion for users when specific languages are not supported. This causes the client keys to be shown instead. This PR also adds `ca`, `lt`, and `hy` to `richtext-lexical`. ### Why? To have all languages supported in core be supported in plugins as well. ### How? Addition of `hy` to `plugin-seo`. Additions of `ca`, `hy`, `lt` to `richtext-lexical`. Co-authored-by: Paul Popus <paul@payloadcms.com>
1 parent 9d6bf0b commit da27afc

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import type { GenericTranslationsObject } from '@payloadcms/translations'
2+
3+
export const hy: GenericTranslationsObject = {
4+
$schema: './translation-schema.json',
5+
'plugin-seo': {
6+
almostThere: 'Գրեթե պատրաստ է',
7+
autoGenerate: 'Ինքնաշարժ գեներացիա',
8+
bestPractices: 'լավագույն փորձեր',
9+
characterCount: '{{current}}/{{minLength}}-{{maxLength}} նիշ, ',
10+
charactersLeftOver: '{{characters}} նիշ ավել է մնացել',
11+
charactersToGo: '{{characters}} նիշ մնացել է',
12+
charactersTooMany: '{{characters}} նիշ չափազանց շատ է',
13+
checksPassing: '{{current}}/{{max}} ստուգումները հաջող են անցել',
14+
good: 'Լավ',
15+
imageAutoGenerationTip: 'Ինքնաշարժ գեներացիան կվերցնի ընտրված հերոս նկարը։',
16+
lengthTipDescription:
17+
'Սա պետք է լինի {{minLength}}-ից {{maxLength}} նիշի սահմաններում։ Որակյալ մետա նկարագրություններ գրելու համար տես ',
18+
lengthTipTitle:
19+
'Սա պետք է լինի {{minLength}}-ից {{maxLength}} նիշի սահմաններում։ Որակյալ մետա վերնագրեր գրելու համար տես ',
20+
missing: 'Բացակայում է',
21+
noImage: 'Նկար չկա',
22+
preview: 'Նախադիտում',
23+
previewDescription:
24+
'Իրական արդյունքների ցուցադրումը կարող է տարբեր լինել՝ բովանդակության և որոնման համապատասխանության հիման վրա։',
25+
tooLong: 'Չափազանց երկար է',
26+
tooShort: 'Չափազանց կարճ է',
27+
},
28+
}

packages/plugin-seo/src/translations/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { fr } from './fr.js'
1515
import { he } from './he.js'
1616
import { hr } from './hr.js'
1717
import { hu } from './hu.js'
18+
import { hy } from './hy.js'
1819
import { is } from './is.js'
1920
import { it } from './it.js'
2021
import { ja } from './ja.js'
@@ -56,6 +57,7 @@ export const translations = {
5657
he,
5758
hr,
5859
hu,
60+
hy,
5961
is,
6062
it,
6163
ja,

packages/richtext-lexical/src/i18n.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ export const i18n: Partial<GenericLanguages> = {
1919
slashMenuListGroupLabel: 'Списъци',
2020
toolbarItemsActive: '{{count}} активни',
2121
},
22+
ca: {
23+
placeholder: "Comença a escriure o prem '/' per a comandes...",
24+
slashMenuBasicGroupLabel: 'Bàsic',
25+
slashMenuListGroupLabel: 'Llistes',
26+
toolbarItemsActive: '{{count}} actiu',
27+
},
2228
cs: {
2329
placeholder: "Začněte psát nebo stiskněte '/' pro příkazy...",
2430
slashMenuBasicGroupLabel: 'Základní',
@@ -85,6 +91,12 @@ export const i18n: Partial<GenericLanguages> = {
8591
slashMenuListGroupLabel: 'Listák',
8692
toolbarItemsActive: '{{count}} aktív',
8793
},
94+
hy: {
95+
placeholder: "Սկսեք գրել կամ սեղմեք '/' հրամանների համար...",
96+
slashMenuBasicGroupLabel: 'Հիմնական',
97+
slashMenuListGroupLabel: 'Ցուցակներ',
98+
toolbarItemsActive: '{{count}} ակտիվ',
99+
},
88100
is: {
89101
placeholder: "Byrjaðu að skrifa eða sláðu inn '/' fyrir skipanir...",
90102
slashMenuBasicGroupLabel: 'Grunnur',
@@ -109,6 +121,12 @@ export const i18n: Partial<GenericLanguages> = {
109121
slashMenuListGroupLabel: '목록',
110122
toolbarItemsActive: '{{count}} 활성화된',
111123
},
124+
lt: {
125+
placeholder: "Pradėkite rašyti arba paspauskite '/' komandoms...",
126+
slashMenuBasicGroupLabel: 'Pagrindinis',
127+
slashMenuListGroupLabel: 'Sąrašai',
128+
toolbarItemsActive: '{{count}} aktyvus',
129+
},
112130
my: {
113131
placeholder: "Mula menaip, atau tekan '/' untuk arahan...",
114132
slashMenuBasicGroupLabel: 'အခြေခံ',

0 commit comments

Comments
 (0)