Skip to content

Add Translation.textOptional() to support common translation string defaults#140

Merged
AlexeyMz merged 1 commit into
masterfrom
follow-improve-i18n-fallback
Mar 22, 2026
Merged

Add Translation.textOptional() to support common translation string defaults#140
AlexeyMz merged 1 commit into
masterfrom
follow-improve-i18n-fallback

Conversation

@AlexeyMz
Copy link
Copy Markdown
Member

  • Make Translation generic with a type parameter for a translation key to allow typed keys when used externally;
  • Add Translation.textOptional() to support common translation string defaults with ability to provide separate string for each case;
  • Use search_defaults.input.placeholder for a search input field;
  • Use visual_authoring.dialog.apply.{label, text} for an "Apply" button in VisualAuthoring dialogs.

… defaults:

* Make `Translation` generic with a type parameter for a translation key to allow typed keys when used externally;
* Add `Translation.textOptional()` to support common translation string defaults with ability to provide separate string for each case;
* Use `search_defaults.input.placeholder` for a search input field;
* Use `visual_authoring.dialog.apply.{label, text}` for an "Apply" button in `VisualAuthoring` dialogs.
@AlexeyMz AlexeyMz merged commit 3c3ddf3 into master Mar 22, 2026
4 checks passed
@AlexeyMz AlexeyMz deleted the follow-improve-i18n-fallback branch March 22, 2026 23:29
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