Skip to content

Commit 85f88a0

Browse files
authored
fix(translations): update translation placeholders to not be translated for lithuanian (#11622)
### What? The Lithuanian i18n translations have the placeholders (i.e. `{{label}}`) also translated. For example `{{label}}` to `{{žymė}}` My guess is that this was caused by the `pnpm translateNewKeys` script which feeds all of the strings to OpenAI. In the system message in [translateText.ts#L15](https://github.com/payloadcms/payload/blob/main/packages/translations/scripts/translateNewKeys/translateText.ts#L15) there is nothing mentioning that it should not translate placeholders. But I guess the AI was clever enough most of the time and not translated them, leaving them as is. Because in the Lithuanian translation most placeholders were correctly left as is, but a couple of them weren't. I would have updated the system message, but I struggled to setup my environment so that `pnpm translateNewKeys` would work (probably because I'm on windows, idk). So I'm leaving the system message as is because I can't test my changes, someone else should update it in another PR. ### Why? Lithuanian messages weren't translated correctly. ### How? Manually went through all of the used placeholders in in `lt.ts` and updated the ones which were translated. Double checked using `en.ts` file to see what was the original placeholder name.
1 parent 38f61e9 commit 85f88a0

File tree

1 file changed

+12
-12
lines changed
  • packages/translations/src/languages

1 file changed

+12
-12
lines changed

packages/translations/src/languages/lt.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ export const ltTranslations: DefaultTranslationsObject = {
130130
verificationTokenInvalid: 'Patvirtinimo kodas yra negaliojantis.',
131131
},
132132
fields: {
133-
addLabel: 'Pridėkite {{žymė}}',
133+
addLabel: 'Pridėkite {{label}}',
134134
addLink: 'Pridėti nuorodą',
135135
addNew: 'Pridėti naują',
136-
addNewLabel: 'Pridėti naują {{žymę}}',
136+
addNewLabel: 'Pridėti naują {{label}}',
137137
addRelationship: 'Pridėti santykį',
138138
addUpload: 'Pridėti Įkelti',
139139
block: 'blokas',
@@ -143,7 +143,7 @@ export const ltTranslations: DefaultTranslationsObject = {
143143
'Pasirinkite tarp pasirinkimo įvesti tinkintą tekstą URL arba nuorodos į kitą dokumentą.',
144144
chooseDocumentToLink: 'Pasirinkite dokumentą, prie kurio norite prisegti.',
145145
chooseFromExisting: 'Pasirinkite iš esamų',
146-
chooseLabel: 'Pasirinkite {{žymė}}',
146+
chooseLabel: 'Pasirinkite {{label}}',
147147
collapseAll: 'Sutraukti viską',
148148
customURL: 'Pasirinktinis URL',
149149
editLabelData: 'Redaguoti {{label}} duomenis',
@@ -157,7 +157,7 @@ export const ltTranslations: DefaultTranslationsObject = {
157157
linkedTo: 'Susijęs su <0>{{label}}</0>',
158158
linkType: 'Nuorodos tipas',
159159
longitude: 'Ilgumažė',
160-
newLabel: 'Naujas {{žymė}}',
160+
newLabel: 'Naujas {{label}}',
161161
openInNewTab: 'Atidaryti naujame skirtuke',
162162
passwordsDoNotMatch: 'Slaptažodžiai nesutampa.',
163163
relatedDocument: 'Susijęs dokumentas',
@@ -166,7 +166,7 @@ export const ltTranslations: DefaultTranslationsObject = {
166166
removeUpload: 'Pašalinti įkėlimą',
167167
saveChanges: 'Išsaugoti pakeitimus',
168168
searchForBlock: 'Ieškokite bloko',
169-
selectExistingLabel: 'Pasirinkite esamą {{žymę}}',
169+
selectExistingLabel: 'Pasirinkite esamą {{label}}',
170170
selectFieldsToEdit: 'Pasirinkite laukus, kuriuos norite redaguoti',
171171
showAll: 'Rodyti viską',
172172
swapRelationship: 'Apkeičiamas santykis',
@@ -205,7 +205,7 @@ export const ltTranslations: DefaultTranslationsObject = {
205205
confirmCopy: 'Patvirtinkite kopiją',
206206
confirmDeletion: 'Patvirtinkite šalinimą',
207207
confirmDuplication: 'Patvirtinkite dubliavimą',
208-
confirmReindex: 'Perindeksuoti visas {{kolekcijas}}?',
208+
confirmReindex: 'Perindeksuoti visas {{collections}}?',
209209
confirmReindexAll: 'Perindeksuoti visas kolekcijas?',
210210
confirmReindexDescription:
211211
'Tai pašalins esamus indeksus ir iš naujo indeksuos dokumentus kolekcijose {{collections}}.',
@@ -248,7 +248,7 @@ export const ltTranslations: DefaultTranslationsObject = {
248248
editingLabel_one: 'Redaguojama {{count}} {{label}}',
249249
editingLabel_other: 'Redaguojamas {{count}} {{label}}',
250250
editingTakenOver: 'Redagavimas perimtas',
251-
editLabel: 'Redaguoti {{žymę}}',
251+
editLabel: 'Redaguoti {{label}}',
252252
email: 'El. paštas',
253253
emailAddress: 'El. pašto adresas',
254254
enterAValue: 'Įveskite reikšmę',
@@ -300,7 +300,7 @@ export const ltTranslations: DefaultTranslationsObject = {
300300
perPage: 'Puslapyje: {{limit}}',
301301
previous: 'Ankstesnis',
302302
reindex: 'Perindeksuoti',
303-
reindexingAll: 'Perindeksuojamos visos {{kolekcijos}}.',
303+
reindexingAll: 'Perindeksuojamos visos {{collections}}.',
304304
remove: 'Pašalinti',
305305
reset: 'Atstatyti',
306306
resetPreferences: 'Atstatyti nuostatas',
@@ -311,7 +311,7 @@ export const ltTranslations: DefaultTranslationsObject = {
311311
save: 'Išsaugoti',
312312
saving: 'Išsaugoti...',
313313
schedulePublishFor: 'Suplanuokite publikaciją „{{title}}“',
314-
searchBy: 'Ieškokite pagal {{žymę}}',
314+
searchBy: 'Ieškokite pagal {{label}}',
315315
selectAll: 'Pasirinkite visus {{count}} {{label}}',
316316
selectAllRows: 'Pasirinkite visas eilutes',
317317
selectedCount: '{{count}} {{label}} pasirinkta',
@@ -406,7 +406,7 @@ export const ltTranslations: DefaultTranslationsObject = {
406406
setCropArea: 'Nustatykite pjovimo plotą',
407407
setFocalPoint: 'Nustatyti fokuso tašką',
408408
sizes: 'Dydžiai',
409-
sizesFor: 'Dydžiai skirti {{žymei}}',
409+
sizesFor: 'Dydžiai skirti {{label}}',
410410
width: 'Plotis',
411411
},
412412
validation: {
@@ -466,8 +466,8 @@ export const ltTranslations: DefaultTranslationsObject = {
466466
lastSavedAgo: 'Paskutinį kartą išsaugota prieš {{distance}}',
467467
modifiedOnly: 'Tik modifikuotas',
468468
noFurtherVersionsFound: 'Nerasta daugiau versijų',
469-
noRowsFound: 'Nerasta {{žymė}}',
470-
noRowsSelected: 'Pasirinkta ne viena {{žymė}}',
469+
noRowsFound: 'Nerasta {{label}}',
470+
noRowsSelected: 'Pasirinkta ne viena {{label}}',
471471
preview: 'Peržiūra',
472472
previouslyPublished: 'Ankstesnė publikacija',
473473
problemRestoringVersion: 'Buvo problema atkuriant šią versiją',

0 commit comments

Comments
 (0)