TranslationChange
This type describes a change occurred in tha state of the translation service
due to downloading translation files.
interface TranslatableOption {
readonly context: 'app' | 'module' | 'language';
readonly action: 'start' | 'finish';
readonly data: string;
readonly description: string;
}
context
This property indicates the context of the change:
- 'app'
-
The change occurs at the initialization of the application during startup.
- 'module'
-
The change occurs at the starting of a lazy loaded module.
- 'language'
-
The state change occurs due to a language change.
action
The value indicates the action occurring at the moment:
- 'app'
-
The change occurs at the initialization of the application during startup.
- 'module'
-
The change occurs at the starting of a lazy loaded module.
- 'language'
-
The state change occurs due to a language change.
data
Provides additional information regarded to the change:
-
context = 'app'
-
No data.
-
context = 'module'
-
The name of the lazy loaded module.
-
context = 'language'
-
The code of the language.
description
Text description of the state change to display.