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.
This commit is contained in:
Rokas Puzonas
2025-03-11 16:45:18 +02:00
committed by GitHub
parent 38f61e91b8
commit 85f88a0194

View File

@@ -130,10 +130,10 @@ export const ltTranslations: DefaultTranslationsObject = {
verificationTokenInvalid: 'Patvirtinimo kodas yra negaliojantis.',
},
fields: {
addLabel: 'Pridėkite {{žymė}}',
addLabel: 'Pridėkite {{label}}',
addLink: 'Pridėti nuorodą',
addNew: 'Pridėti naują',
addNewLabel: 'Pridėti naują {{žymę}}',
addNewLabel: 'Pridėti naują {{label}}',
addRelationship: 'Pridėti santykį',
addUpload: 'Pridėti Įkelti',
block: 'blokas',
@@ -143,7 +143,7 @@ export const ltTranslations: DefaultTranslationsObject = {
'Pasirinkite tarp pasirinkimo įvesti tinkintą tekstą URL arba nuorodos į kitą dokumentą.',
chooseDocumentToLink: 'Pasirinkite dokumentą, prie kurio norite prisegti.',
chooseFromExisting: 'Pasirinkite iš esamų',
chooseLabel: 'Pasirinkite {{žymė}}',
chooseLabel: 'Pasirinkite {{label}}',
collapseAll: 'Sutraukti viską',
customURL: 'Pasirinktinis URL',
editLabelData: 'Redaguoti {{label}} duomenis',
@@ -157,7 +157,7 @@ export const ltTranslations: DefaultTranslationsObject = {
linkedTo: 'Susijęs su <0>{{label}}</0>',
linkType: 'Nuorodos tipas',
longitude: 'Ilgumažė',
newLabel: 'Naujas {{žymė}}',
newLabel: 'Naujas {{label}}',
openInNewTab: 'Atidaryti naujame skirtuke',
passwordsDoNotMatch: 'Slaptažodžiai nesutampa.',
relatedDocument: 'Susijęs dokumentas',
@@ -166,7 +166,7 @@ export const ltTranslations: DefaultTranslationsObject = {
removeUpload: 'Pašalinti įkėlimą',
saveChanges: 'Išsaugoti pakeitimus',
searchForBlock: 'Ieškokite bloko',
selectExistingLabel: 'Pasirinkite esamą {{žymę}}',
selectExistingLabel: 'Pasirinkite esamą {{label}}',
selectFieldsToEdit: 'Pasirinkite laukus, kuriuos norite redaguoti',
showAll: 'Rodyti viską',
swapRelationship: 'Apkeičiamas santykis',
@@ -205,7 +205,7 @@ export const ltTranslations: DefaultTranslationsObject = {
confirmCopy: 'Patvirtinkite kopiją',
confirmDeletion: 'Patvirtinkite šalinimą',
confirmDuplication: 'Patvirtinkite dubliavimą',
confirmReindex: 'Perindeksuoti visas {{kolekcijas}}?',
confirmReindex: 'Perindeksuoti visas {{collections}}?',
confirmReindexAll: 'Perindeksuoti visas kolekcijas?',
confirmReindexDescription:
'Tai pašalins esamus indeksus ir iš naujo indeksuos dokumentus kolekcijose {{collections}}.',
@@ -248,7 +248,7 @@ export const ltTranslations: DefaultTranslationsObject = {
editingLabel_one: 'Redaguojama {{count}} {{label}}',
editingLabel_other: 'Redaguojamas {{count}} {{label}}',
editingTakenOver: 'Redagavimas perimtas',
editLabel: 'Redaguoti {{žymę}}',
editLabel: 'Redaguoti {{label}}',
email: 'El. paštas',
emailAddress: 'El. pašto adresas',
enterAValue: 'Įveskite reikšmę',
@@ -300,7 +300,7 @@ export const ltTranslations: DefaultTranslationsObject = {
perPage: 'Puslapyje: {{limit}}',
previous: 'Ankstesnis',
reindex: 'Perindeksuoti',
reindexingAll: 'Perindeksuojamos visos {{kolekcijos}}.',
reindexingAll: 'Perindeksuojamos visos {{collections}}.',
remove: 'Pašalinti',
reset: 'Atstatyti',
resetPreferences: 'Atstatyti nuostatas',
@@ -311,7 +311,7 @@ export const ltTranslations: DefaultTranslationsObject = {
save: 'Išsaugoti',
saving: 'Išsaugoti...',
schedulePublishFor: 'Suplanuokite publikaciją „{{title}}“',
searchBy: 'Ieškokite pagal {{žymę}}',
searchBy: 'Ieškokite pagal {{label}}',
selectAll: 'Pasirinkite visus {{count}} {{label}}',
selectAllRows: 'Pasirinkite visas eilutes',
selectedCount: '{{count}} {{label}} pasirinkta',
@@ -406,7 +406,7 @@ export const ltTranslations: DefaultTranslationsObject = {
setCropArea: 'Nustatykite pjovimo plotą',
setFocalPoint: 'Nustatyti fokuso tašką',
sizes: 'Dydžiai',
sizesFor: 'Dydžiai skirti {{žymei}}',
sizesFor: 'Dydžiai skirti {{label}}',
width: 'Plotis',
},
validation: {
@@ -466,8 +466,8 @@ export const ltTranslations: DefaultTranslationsObject = {
lastSavedAgo: 'Paskutinį kartą išsaugota prieš {{distance}}',
modifiedOnly: 'Tik modifikuotas',
noFurtherVersionsFound: 'Nerasta daugiau versijų',
noRowsFound: 'Nerasta {{žymė}}',
noRowsSelected: 'Pasirinkta ne viena {{žymė}}',
noRowsFound: 'Nerasta {{label}}',
noRowsSelected: 'Pasirinkta ne viena {{label}}',
preview: 'Peržiūra',
previouslyPublished: 'Ankstesnė publikacija',
problemRestoringVersion: 'Buvo problema atkuriant šią versiją',