Skip to content

feat(ui): global one-click DE/EN switch for all fields (#99) - #4

Merged
rrolf merged 1 commit into
mainfrom
gh/ui-global-lang-switch
Aug 28, 2026
Merged

feat(ui): global one-click DE/EN switch for all fields (#99)#4
rrolf merged 1 commit into
mainfrom
gh/ui-global-lang-switch

Conversation

@rrolf

@rrolf rrolf commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Adds a compact global language switcher to TranslationFormProvider's floating control: one click sets all mounted TranslatableFields to a language via the existing forced mechanism (no translation) — for filling a record field by field in one language. Combined into a single pill with the "Translate all fields" button so the corner stays uncluttered. Shown whenever multilingual fields are on screen (independent of machine translation); the translate button stays gated on it.

Bumps @basicbar/ui to 0.3.1 (additive). New UI strings Show all fields in one language / Show all fields in {{language}}. Verified live in abstimmbar against a local 0.3.1 build.

(Originally merged on the old GitLab remote as MR !6; brought over here since GitHub is now canonical.)

…#99)

TranslationFormProvider's floating control now includes a compact language
switcher that sets every mounted TranslatableField to one language via the
existing `forced` mechanism (no translation) — for filling a record field by
field in one language. Shown whenever multilingual fields are on screen,
independent of whether machine translation is enabled; "Translate all fields"
stays gated on it. Additive; adds the UI strings "Show all fields in one
language" / "Show all fields in {{language}}".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@rrolf
rrolf merged commit cf5fe9d into main Aug 28, 2026
5 checks passed
@rrolf
rrolf deleted the gh/ui-global-lang-switch branch August 28, 2026 20:42
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.

1 participant