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

Translation Textarea

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

Overview

Example Translation Textarea

Specs

Tokens

Token Description
displayName Display name of the component in the structure panel
labelTranslations Label text above the textarea, supports multiple languages
rows Number of visible rows in the textarea
maxLength Maximum number of characters allowed per language
hidden Controls visibility of the component in the form
saveInLocalStorage Preserves translations in local storage between sessions
defaultValue Initial translation values on load or reset
readonly Prevents user modifications when true
paddingClass Configures spacing using CSS classes
dataField Defines the field name for submitted form data
controlsRequestType Defines how translation data is sent in HTTP requests
validation Configures validation rules for translations
authorizationDisable Policy set controlling when the component is disabled
visibilityPolicySetId Policy set controlling when the component is visible
displayConditions Defines conditions for displaying the component
events Configures component events
ON_VALUE_CHANGE (Events) Event fired when a translation value changes
ON_INIT_BASED_ON_USER_VIEW (Events) Event fired when initialized in user view mode
ON_INIT (Events) Event fired when the component is initialized
ON_DESTROY (Events) Event fired when the component is destroyed
id Unique identifier for programmatic access
dataTestId Identifier for automated testing
enableAsHotspot Enables the component as a guided tour hotspot
guidedTourHotSpotTitle Title text for guided tour hotspot, supports translations
guidedTourHotSpotDescription Description text for guided tour hotspot, supports translations

Structure

Labled Textarea

(Configured in General Properties)

(Configured in Non-Visual Properties)

(Configured in Visual Properties)

(Configured in Visibility)

Styling

(Configured in Visual Properties)

Actions & Variants

(Configured in Events)

(Configured in Visual Properties)

Validation

(Configured in Validation)

Authorization

(Configured in Authorization)

Testing

(Configured in Testing Hooks)

Guidelines

Usage

Sizing & Layout

States & Feedback

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Use labelTranslations for a short, localized label (e.g., “Description”). Hard‑code an English label or add a trailing colon. labelTranslations
Pre-fill per‑language text with defaultValue to guide structure. Start empty when templates are known. defaultValue
Cap length per language with maxLength. Allow unbounded text that overflows downstream limits. maxLength
Use rows to make long‑form editing comfortable. Force a tiny viewport that requires constant scrolling. rows
Turn on saveInLocalStorage for lengthy authoring. Risk data loss on reloads for multi‑paragraph input. saveInLocalStorage
Drive real-time checks from ON_VALUE_CHANGE. Validate only on submit when immediate feedback is needed. events, ON_VALUE_CHANGE, validation
Use readonly for review mode. Hide the field (hidden) when users must read existing text. readonly, hidden
Gate access with visibilityPolicySetId/authorizationDisable. Expose sensitive fields without policy controls. visibilityPolicySetId, authorizationDisable
Control presence with displayConditions. Show the field in contexts where it isn’t applicable. displayConditions
Name payloads predictably with dataField and set controlsRequestType. Rely on implicit server parsing or defaults. dataField, controlsRequestType

Accessibility