Files
threshold-ui/addons/core/translations
Devon Anderson c0b590dad2 refactor: 💡 Refactor default option in scope field and desc (#328)
* refactor: 💡 Refactor default option in scope field and desc

Refactor default option for scope field to be 'Choose an option' instead
of 'Global', so user can explicitly select their scope.  Refactor scope
field descriptions to give different context based on if the selection
is 'global' or an 'org' scope.

✅ Closes: ICU-9641

* refactor: 💡 refactor translations

Added correct translations for default, global, and org. Added small bit
of logic to help with switch of text on `onChange` event.
2023-06-07 18:04:18 -04:00
..
2023-05-31 17:13:56 -07:00
2022-07-13 11:17:13 -05:00

Translations

Translations are used to keep template, form, and component files free of raw strings and create a single source of truth for text used throughout the repository.

Examples:

{{t 'states.' message.type}}

{{t (concat "errors." this.messageCode ".description")}}

Actions

Action translations are reserved for actions a user can trigger.

Errors

Translations that are for varying error titles and descriptions.

Form

Translations for label and description text required for form fields.

Notifications

Translations for notification messages.

Resources

Translations with direction relation to different resources (e.g. accout, org, host).

States

Translations for text related to different states data could be in (e.g. active, inactive, error).

Root Translations

Translations for titles, descriptions, and translations that do not fit into other translation files.