Page MenuHomePhabricator

[BUG] Language settings do nothing in svgtranslate
Closed, ResolvedPublicBUG REPORT

Description

What is the problem?

In SVGTranslate, I can click “Language settings” at the top bar, and a dialog is shown, offering configuration of “Tool's language” and “Preferred languages to translate to/from”. The dialog is nice and all, but after I configure what I want and click “Done”, the page gets refreshed and… nothing changes.

Steps to reproduce problem
  1. Open https://svgtranslate.toolforge.org/
  2. Click on “Language settings” at the top. A “Language settings” dialog appears.
  3. Change the “Tool's language” using the dropdown from English to e.g. Deutsch.
  4. Click “Done”.

Expected behavior:
The SVGTranslate tool is now displayed in German.

Observed behavior:
The SVGTranslate tool is still displayed in English. (No errors are visible in console.)

Environment

Browser: Firefox, MS Edge (both on Windows)

Event Timeline

Restricted Application changed the subtype of this task from "Task" to "Bug Report". · View Herald TranscriptAug 8 2025, 1:40 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Seems like the cookie value isn't being serialized correctly by the app:

svgtranslate [object%20Object] svgtranslate.toolforge.org / Session 29 B

Samwilson edited projects, added Community-Tech (Fox Squad); removed Community-Tech.
Samwilson subscribed.

I'm not sure how this ever worked. I guess it didn't!

I've moved the cookie setting to be nearer the cookie getting: https://github.com/wikimedia/svgtranslate/pull/769