quds_translation/internals library

Classes

QudsLanguage
Represents a translation to some language
QudsLanguageDetails
Details about some language.
QudsLanguagesListView
A list view with the current languages list
QudsSelectLanguageIconButton
A IconButton with ability to change the current language of the app
QudsSelectLanguageListTile
A ListTile with ability to change the current language of the app
QudsTranslated
A widget with Language injected in the BuildContext arg.
QudsTranslation
Control the language of the app
QudsTranslationProvider
A QudsProvider with ability to control the app language.

Extensions

StringExtensions on String
Helping extension methods on String for translation.

Properties

currentFont String?
Get the current set language font
no setter
currentLanguage QudsLanguage?
Get the current set language
no setter
currLanguage QudsLanguage?
Get the current set language
no setter
isLTR bool
Weather the current langage is LTR
no setter
isRTL bool
Weather the current langage is RTL
no setter

Functions

translate(String key, {String? langCode}) → dynamic
Get the key corresponding translation, by default, it translate to the current set language. langCode if a specific language code desired
translateForLang(String langCode, String key) String
Translate to a specific language