Every word and marker the framework draws on its own, in one table an application can translate.
A dialog's default button, the command palette's title and filter placeholder, the help overlay's heading, the wizard's Back/Next/Finish, the inspector's panel titles, and the prompts' yes/no hints, list hints, pointer and check glyphs — none of these are written by the application, so before this table an app shipped in Spanish still said "OK" and "type to filter…". Each built-in reads its label from the table in force when it is built or painted, never from a literal.
An application sets the table with override def messages: Messages = Messages.Default.withDialogOk("Sí") on its TuiApp; the run binds it on the render thread around every frame and every event, so a factory called in view and an overlay painted after it read the same table. Code that builds elements outside a run — a Snapshot, Console.print, a Prompt — reads Default unless it is wrapped in Messages.scoped.
Labels the application passes explicitly (dialog(title, message, buttons = Seq("Vale"))) are never touched: the table only supplies the defaults. Strings are plain values with no placeholders except where a field's Scaladoc names one ({lines} in composerPasted, {input}, {min}, {max}, {yes}, {no} and {options} in the prompt validation messages). Immutable; safe to share between threads.
Value parameters
- composerPasted
-
the placeholder
promptComposerinserts for a multi-line paste;{lines}is replaced by the line count. - composerReverseSearch
-
the label of
promptComposer's Ctrl+R history search bar. - dialogCancel
-
the second, cancelling button of
Screen.confirm. - dialogOk
-
the single button
dialog(...)draws when given none, and the confirming button ofScreen.confirm. - frameworkKeyDescriptions
-
what
FrameworkKeys.entries(and soKeymap.markdown) says each framework key does, by its BindingId; an id left out is described by its id. Set one with withFrameworkKeyDescription. - helpTitle
-
the title of
helpOverlay(...)when none is passed. - iconSuccess
-
the marker a success
noticeand toast draw before their message. iconInfo, iconWarning and iconError are the other three severities'; set any with withIcon. - inspectorNothing
-
what the inspector's card says when nothing is focused or under the pointer.
- inspectorTitle
-
the title of the inspector's node card (F12).
- inspectorTreeTitle
-
the title of the inspector's element-tree panel.
- palettePlaceholder
-
the command palette's filter-input placeholder.
- paletteTitle
-
the title of the command palette (Ctrl+P).
- promptAnswerYesNo
-
a typed confirm answer that is neither yes nor no;
{yes}/{no}are promptYes/promptNo,{input}the answer. - promptCancelled
-
what a cancelled prompt step leaves instead of an answer.
- promptChecked
-
the marker of a chosen row in a multi-choice prompt, including its trailing space.
- promptChooseAtLeast
-
a
Prompt.multiSelectanswer with fewer thanminchoices;{min}is the minimum. - promptCommaSeparated
-
the plain multi-select hint describing its answer separator.
- promptMultiSelectHint
-
the hint beside a multi-choice prompt.
- promptNo
-
how a confirm prompt's summary line shows a no.
- promptNotANumber
-
a
Prompt.numberanswer that is not a whole number;{input}is the answer. - promptNotAnOption
-
a typed choice answer naming no option;
{input}is the word,{options}the option labels joined by,. - promptNothingToChoose
-
a choice prompt answered with no options to choose from.
- promptNumberRange
-
a
Prompt.numberanswer outside its bounds;{min}and{max}are the bounds. - promptPathMissing
-
a
Prompt.path(mustExist = true)answer naming nothing;{input}is the answer. - promptPathRequired
-
an empty
Prompt.pathanswer. - promptPointer
-
the marker before a choice prompt's highlighted row, including its trailing space.
- promptRequired
-
the validation message of a required text prompt left empty.
- promptSecretRejected
-
a rejected password's diagnostic, replacing validator text that may contain the secret.
- promptSelectHint
-
the hint beside a single-choice prompt.
- promptUnchecked
-
the marker of an unchosen row in a multi-choice prompt, including its trailing space.
- promptYes
-
how a confirm prompt's summary line shows a yes.
- promptYesNoDefaultNo
-
the hint beside a confirm prompt whose Enter means no.
- promptYesNoDefaultYes
-
the hint beside a confirm prompt whose Enter means yes.
- searchPlaceholder
-
the placeholder
searchBar(state)shows when given none. - tagSuccess
-
the short tag
badge(NoticeLevel.Success)reads. tagInfo, tagWarning and tagError are the other three severities'; set any with withTag. - taskFailed
-
the marker before a failed
Prompt.taskline. - taskSucceeded
-
the marker before a finished
Prompt.taskline. - whichKeyEllipsis
-
the marker after a half-typed key sequence — the which-key popup's title and the pending
statusBar(bindings)hint,ctrl+k …. - wizardBack
-
the wizard's previous-step button.
- wizardFinish
-
the wizard's next-step button on the last step.
- wizardNext
-
the wizard's next-step button.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any