Skip to content

Studio: new preset defaults in the UI language (#772) - #773

Merged
CaYatur merged 2 commits into
mainfrom
fix/studio-default-name-i18n
Oct 17, 2026
Merged

CaYatur merged 2 commits into
mainfrom
fix/studio-default-name-i18n

Conversation

@CaYatur

@CaYatur CaYatur commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Fixes #772.

In the English UI, Studio -> + Shader created a visualizer named Yeni Görselleştirici and the discard prompt showed it. Like #759, the defaults that become the user's editable text are now written in the UI language at creation:

  • new shader / background name
  • default Amount slider label
  • variation names
  • starter shader comment header (translated line by line, column alignment kept)

Tests: tests/studio-new-preset-i18n.test.js; npm test 3186/3186. CHANGELOG (Unreleased -> Studio) and test counts updated.

The new shader/background name, the default slider label, variation names and the starter shader comment header become the user's own editable text, so they are translated at creation like the #759 import fix. Adds EN entries for the header lines and a test. Test count 3186.

Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
@cayadraft

cayadraft Bot commented Oct 17, 2026

Copy link
Copy Markdown

@CaYatur

CaYaDraft — pull request

Summary
This pull request fixes an issue where Studio presets were displaying Turkish text in the English UI by ensuring new preset defaults (names, labels, comments) are generated in the current UI language. It updates translation strings and adds tests to verify that created shaders use localized text instead of hardcoded translations.

Files

  • CHANGELOG.md (updated changelog entry)
  • README.md, README.tr.md, ROADMAP.md (minor text updates)
  • src/admin/studio.js (logic to generate presets in UI language)
  • src/shared/i18n.js (added new translation strings)
  • tests/studio-new-preset-i18n.test.js (new test file)

Note
Nothing blocking is visible from the text.


Stopping here. I will not merge, push, or change this pull request until you ask.

/caya explain describes the diff. /caya plan previews the next edit. /caya revise adds a commit.

… user content (#772)

startDraft marked every new draft dirty, so discarding an unedited one asked for confirmation in both languages (pre-existing on main). The Save button stays highlighted for unsaved drafts via !selectedId. The self-test untranslated scan now skips elements marked data-user-text (text subtree) or data-user-attr (title/placeholder); Studio marks user preset names with them. Test count 3189.

Co-authored-by: caganturgut <271973834+caganturgut@users.noreply.github.com>
@CaYatur
CaYatur merged commit a9953d5 into main Oct 17, 2026
5 checks passed
@CaYatur
CaYatur deleted the fix/studio-default-name-i18n branch October 17, 2026 08:59
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.

Studio: new shader default name is Turkish in the English UI

1 participant