(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Translation Input

Link to Figma: https://www.figma.com/design/yck1tcUXgdQ5aYX6iUAwrO/GE---Astronaut-Design-System?node-id=11628-199694&t=ftfrOGkPzlG2GaTo-1

Overview

Example Translation Input

Specs

Tokens

Token Description
displayName Display name in structure panel
labelTranslations Label text with translations
hidden Controls component visibility
saveInLocalStorage Persist translations in local storage
defaultValue Initial translation values
readonly Prevents editing translations
paddingClass Spacing via CSS classes
dataField Field name for form submission
controlsRequestType Request location: BODY/HEADER/PATH
validation Validation rules for translations
authorizationDisable Policy set to disable component
visibilityPolicySetId Policy set controlling visibility
displayConditions Rules to show or hide component
events Configurable component events
ON_VALUE_CHANGE (Events) Triggered when a translation value changes
ON_INIT_BASED_ON_USER_VIEW (Events) Triggered on init in user view mode
ON_INIT (Events) Triggered on component initialization
ON_DESTROY (Events) Triggered on component removal
id Unique identifier for programmatic access
dataTestId Testing hook identifier
enableAsHotspot Enables guided tour hotspot
guidedTourHotSpotTitle Hotspot title (supports translations)
guidedTourHotSpotDescription Hotspot description (supports translations)

Structure

(Configured in General Properties)

(Configured in Visual Properties)

(Configured in Non-Visual Properties)

(Configured in Visibility)

Styling

(Configured in Visual Properties)

Visual Properties tab

Actions & Variants

(Configured in Visual Properties — Variants)

(Configured in Event Actions Properties)

Tests

(Configured in Testing Hooks Properties)

Validation

(Configured in Validation Properties)

Authorization

(Configured in Authorization Properties)

Guidelines

Usage

Sizing & Layout

States & Feedback

Data-Driven / Conditional Behavior

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Localize the field label for every supported locale. Hard-code an English-only label. labelTranslations
Pre-fill known strings to reduce work. Make users retype baseline text. defaultValue
Require critical locales before submit. Rely on color or external notes to mark a locale as required. validation
Keep the control visible but read-only when users must see but not change text. Hide the control when users still need to read it. readonly, authorizationDisable
Persist drafts across reloads for long tasks. Risk losing work on refresh or navigation. saveInLocalStorage
Show the control only when prerequisites are met. Show it at all times and confuse users. displayConditions, hidden
Initialize data on mount and clean up on unmount. Fetch on first keystroke and leak listeners. ON_INIT, ON_DESTROY, events
Bind the field to the correct submission path. Submit translations under an unexpected key or location. dataField, controlsRequestType
Provide stable automation hooks. Select the control by label text in tests. id, dataTestId
Localize guided-tour copy for onboarding. Use English-only hotspot guidance. enableAsHotspot, guidedTourHotSpotTitle, guidedTourHotSpotDescription

Accessibility