Translator class
Handels the translation logic, based on the passed defaultLanguage if it should useDeepL and the env
Constructors
- Translator({required String defaultLanguage, required bool useDeepL, required Env env})
Properties
- defaultLanguage → String
-
final
- env → Env
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useDeepL → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
translate(
) → Future< void> -
Searching for all Strings in the project that use the
.tr
extension. Creates language files based on the provided language codes and translates via DeepL if wanted.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited