feat(ui): global one-click DE/EN switch for all fields (#99) - #4
Merged
Conversation
…#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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a compact global language switcher to
TranslationFormProvider's floating control: one click sets all mountedTranslatableFields to a language via the existingforcedmechanism (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/uito 0.3.1 (additive). New UI stringsShow 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.)