Skip to content

Fix literal and out-of-context translations across locales - #1547

Open
sotolucas wants to merge 5 commits into
HiEventsDev:developfrom
sotolucas:fix/translations
Open

sotolucas wants to merge 5 commits into
HiEventsDev:developfrom
sotolucas:fix/translations

Conversation

@sotolucas

@sotolucas sotolucas commented Dec 4, 2026 •

Copy link
Copy Markdown

Fixes #1548

Problem

Several frontend labels were translated word by word, without their UI context. The Stripe connect button reads "Conectar raya" in Spanish ("raya" is the common noun for a stripe), "Connecter la bande" in French and "Streep aansluiten" in Dutch. The same pattern shows up across locales on short labels: buttons, table headers and statuses.

Change

Spanish: wrong meaning in context

English Was Now
Connect Stripe Conectar raya Conectar Stripe
Close Cerca ("near") Cerrar
Recipient Recipiente (a container) Destinatario
Subject (email) Sujeto Asunto
Invitation resent! ¡Invitación resentida! ("resentful") ¡Invitación reenviada!
Order Reference Pedir Referencia (the verb "to order") Referencia del pedido
Message attendee / buyer Asistente del mensaje / Mensaje del comprador Enviar mensaje al asistente / comprador
Working… (loading state) Laboral… (as in "working day") Procesando…
Live (event status) En vivo Publicado
Times used Tiempos utilizados ("times" as in durations) Usos
Complete Payment El pago completo Completar pago
First name Primer Nombre Nombre
Fees Honorarios Tarifas
Guests Huéspedes (hotel guests) Asistentes
Early bird Madrugador Early bird (matches the help text that names this ticket)

Spanish now uses "pedido" and "entrada" consistently instead of the occasional "orden" and "billete". A few typos and capitalisation errors are also fixed ("DIRECCIÓN", "invitacíon", "Si, eliminarlos", "confirmar Contraseña").

Spanish: one form of address, and the long strings

Spanish addressed the user as "tú" almost everywhere, but about 120 strings used "usted": "Configure", "¿Está seguro de que desea…?", "Ingrese", "Inténtelo de nuevo", "Personalice su…". They now all use "tú". Only the verb and pronoun forms change; "Por favor", word choice and sentence structure are kept as they were ("Por favor, espere mientras preparamos su factura…" → "Por favor, espera mientras preparamos tu factura…").

Every long Spanish string was also read in full. Examples of what that turned up:

English Was Now
Passwords are not the same Las contraseñas no son similares ("similar") Las contraseñas no coinciden
No waitlist entries Sin entradas en la lista de espera ("entradas" means tickets) Sin inscripciones en la lista de espera
Your event is live! ¡Tu evento está en vivo! ¡Tu evento está publicado!
Before you go live (development licence modal) Antes de salir en vivo Antes de pasar a producción
Are you sure you want to make this event draft? ¿…hacer este borrador de evento? ("make this draft of an event") ¿Estás seguro de que quieres pasar este evento a borrador?
Address line 1 / Address line 2 Dirección Línea 1 / Línea de dirección 2 Línea de dirección 1 / Línea de dirección 2
We couldn't find any tickets matching {0} ningún entrada (wrong gender) ninguna entrada

Other locales: the same mistakes

  • "Connect Stripe" translated as a striped pattern: French "Connecter la bande", Dutch "Streep aansluiten", Portuguese "Conectar faixa", Chinese "连接条纹" / "連接條紋". Italian had been left in English.
  • "Order": German "Befehl" (a command), Finnish "Tila" (status), Dutch "Bestel" (the verb), Chinese "订购" (the verb).
  • "Recipient": Chinese "受援国" (aid-recipient country), Brazilian Portuguese "Beneficiário".
  • "Early bird": Polish "Wcześniak" (premature baby), German "Früher Vogel", Chinese "早起的鸟儿", and similar in other locales. Each now matches the term that locale's capacity help text already uses.
  • "Live" (event status) as "broadcasting" instead of "published": Polish, Hungarian, Turkish, Portuguese, Vietnamese.
  • "Working…" (loading state) as "labouring": German, French, Dutch, Portuguese, Vietnamese, Chinese and others.
  • Email "Subject": French "Sujet" → "Objet", German "Thema" → "Betreff".
  • Outdated text: the banner size hint is "1950 × 650 px, 3:1" in English but still said "2160 × 1080" in German, French, Italian, Dutch, Portuguese, Brazilian Portuguese, Vietnamese and both Chinese locales. It is now corrected. A check across all locales for numbers that differ from the English found nothing else.
  • Waitlist "entries" as tickets: European Portuguese also called them "entradas" (tickets).
  • Mismatched address lines: German, French, Portuguese and Chinese now match.
  • Greek VAT notice: the reference to Article 196 of the VAT Directive was missing and is now restored.
  • Portuguese "Message attendee / buyer": "Participante da mensagem" / "Comprador de mensagens" → "Enviar mensagem ao participante / comprador".
  • Chinese "ticket" as a plane ticket: 机票 / 機票 → 门票 / 門票 in "Select Ticket", "Add tickets", "Manage tickets" and one help text. "Order Details" and "Order Date" now use 订单 / 訂單, like "Order".
  • German "On Sale": "Im Angebot" (on special offer) → "Im Verkauf". "Orders" and "Order Date" now use "Bestell…" like the rest of the file.
  • "Before you go live" is the development licence modal's heading for moving an install to production, not publishing an event. Greek no longer reads as "going live on air", and Portuguese keeps "Antes de entrar em produção".
  • "Referral Accounts" counts sign-ups from referring websites (the analytics "referral" source). Portuguese and Slovak now use that term instead of "recommendation".
  • "Complete Order" (checkout button) read as "full order" in Dutch, Portuguese and Brazilian Portuguese; it is now the action "complete the order".
  • French email "Subject": every remaining "sujet" for an email subject is now "objet".
  • "Message Attendees": Portuguese, Brazilian Portuguese and Chinese had "the message's participants"; they now say "send a message to attendees". Chinese "Message Sent" and "Ended" ("完工", construction finished) are fixed too.
  • Turkish "live" events: the remaining "canlı" (live broadcast) strings that mean published now say "yayında".
  • "Early bird" in the tiered-products help text: Hungarian, Slovak and Turkish now use the same term as their "Early bird" label.

Fixes that needed source changes

  1. "Value" was one string with two meanings. As a seat price band it means "budget" (Spanish "Económico"), but the SSO TXT-record field and the segment builder also use it, and there it means "value". Japanese and Russian had the opposite problem, and Korean's band had the same name as "Standard". The band now has its own Lingui context (Seat price band) in ee/seating/components/lib/templates.ts, and both meanings are translated in every locale.
  2. The attendee activate/cancel notification put untranslated English verbs into the sentence (Successfully {isReactivating ? 'activated' : 'cancelled'} attendee), so Spanish users saw "cancelled asistente con éxito". useAttendeeActions.tsx now uses two complete strings, "Attendee activated" and "Attendee cancelled", translated in every locale.
  3. "Live" and "Last used" each had two meanings. "Live" is both the published status and the pulsing badge on an event that is happening right now (utilites/eventSummary.ts). "Last used" is both a date column and the badge on the sign-in method you used last time (SsoButtons). Each badge now has its own context ("Event happening now", "Sign-in method badge"), so "published" and "in progress" no longer share one translation.
  4. The toast text changed, so specs that waited for it were updated. seat-release, resale/organizer-interference and resale/cutoff-and-closure now wait for "Attendee cancelled" / "Attendee activated". The toast now goes through showSuccess. The Lingui stub in generate-seats.unit.spec.ts now also accepts the t({message, context}) form.
  5. A stray \" # xx suffix had been pasted onto the end of the tiered-products help text in seven locales (es, de, fr, pt, pt-br, zh-cn, zh-hk). It is removed.

Verification

  • yarn messages:extract --clean reports 0 missing for every locale except ru (see below), and yarn messages:compile succeeds.
  • npx tsc --noEmit: 0 errors.
  • E2E unit specs, run as CI runs them: 198 passed.
  • tests/seating/seat-release.spec.ts against the dev stack: 8 passed, including the test that cancels and reactivates an attendee and waits for the new toast text. The two resale specs are @stripe and were not run locally.
  • A separate review per language (21 languages) checked every changed translation against its UI usage and the rest of that language's catalogue, flagging any change that went further than needed. Its corrections are applied.
  • An independent review compared every changed translation against where it is used in the code, and confirmed that the compiled catalogs parse with no messages lost, that the .po headers are unchanged, and that nothing under backend/ is affected.
  • Every Spanish string was read: all 3,384 short ones (1–3 words) and all 3,341 longer ones. Every other locale was checked for the strings fixed in Spanish, scanned for brand names translated as ordinary words (only "Connect Stripe"), and checked for numbers that differ from the English (only the banner size hint).

Not covered (tracked in #1548): German and Dutch also mix formal and informal address. Whether German should use "du" or "Sie" is a product decision, so those strings are left for a follow-up. The other two default seat band names, "Premium" and "Standard", don't have the Seat price band context yet; "Standard" still shares its string with the lineup billing tier, so in Czech and Slovak the three band names don't agree grammatically. ru already had 2,778 untranslated strings before this change; that gap is untouched. Borderline wording that is understandable in context was left alone.

🤖 Generated with Claude Code

Several labels were translated word by word without their UI context:
Connect Stripe became "Conectar raya" in Spanish, "Connecter la bande"
in French and "Streep aansluiten" in Dutch; Close became "Cerca"
(near); Order became "Befehl" (command) in German and "Tila" (status)
in Finnish; Recipient became an aid-recipient country in Chinese;
Working became "labouring" in most languages; Live showed as
"broadcasting" instead of "published"; and Early bird became a
premature baby in Polish. All are corrected, and Spanish now uses
"pedido" and "entrada" consistently instead of "orden" and "billete".

Value is shared by the seat price band and the TXT record and segment
fields, so the band gets its own context. The attendee activate and
cancel notification interpolated untranslated English verbs and is
now two complete strings. A stray `" # xx` suffix on the tiered
products help text is removed from seven locales.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sotolucas
sotolucas marked this pull request as draft December 4, 2026 15:43
sotolucas and others added 2 commits December 4, 2026 12:43
The seat band name now uses t({message, context}), which the stub in
generate-seats.unit.spec.ts could not handle, so the template fixture
specs failed with "strings.reduce is not a function".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The attendee activate and cancel toast text changed, so the seat
release and resale specs now wait for "Attendee cancelled" and
"Attendee activated"; the toast also goes through showSuccess.

Live is both a published status and the badge for an event that is
happening now, and Last used is both a date column and the badge on
the last sign-in method, so each badge gets its own context. Finnish
Order was still "Tila" (status) and is now "Tilaus". German Orders,
Order Date and On Sale ("Im Angebot", on special offer) now match
"Bestellung", Chinese uses 门票 instead of 机票 (plane ticket) for
tickets and 订单 for order details and dates, and the Chinese
lineup "Standard" billing no longer reads as "standard ticket".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sotolucas
sotolucas marked this pull request as ready for review December 4, 2026 16:08
Spanish mostly addresses the user as tú, but about 120 strings used
usted ("Configure", "¿Está seguro de que desea…?", "Ingrese",
"Inténtelo de nuevo"). They now use tú like the rest of the app. A
read of every long Spanish string also fixed literal translations:
"Las contraseñas no son similares" for passwords that don't match,
waitlist entries called "entradas" (tickets), "en directo" for
published events, and gender and wording errors. Address line 1 and 2
now match.

The banner dimensions hint (1950 × 650 px, 3:1) still said 2160 × 1080
in ten locales, from an older version of the source string. Greek drops
the VAT directive reference, and a few French and Portuguese strings
repeat the Spanish mistakes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A per-language review found that converting usted to tú also reworded
many strings: "Por favor" was dropped, "¿Está seguro de que desea…?"
became "¿Seguro que quieres…?" and words such as Agregue and Ingrese
were swapped for Añade and Introduce. Those strings now change only the
verb and pronoun forms, and other Spanish fixes stay closer to the
original wording.

"Before you go live" is the development licence modal's heading for
moving to production, so Spanish, Greek and Portuguese no longer say
"publish". "Referral Accounts" counts traffic from referring sites, so
Spanish and Portuguese use the analytics term again. French "Subject"
strings now all use "Objet", and a few missed literal translations are
fixed in Dutch, Portuguese, Brazilian Portuguese, Turkish, Hungarian,
Slovak and Chinese.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend translations made without context, mixed formality and stale strings

1 participant