best_flutter_localization 1.0.9 best_flutter_localization: ^1.0.9 copied to clipboard
A cool localization package for every developer. In this package you can use many common words directly ...it will save your time and fast development ..
1.0.8 #
This is a cool flutter localization package for common words used in apps. Common Translations: This package offers a set of pre-defined, common translations accessible through CommonTranslations. These include basic words like 'back', 'cancel', 'confirm', 'contactUs', etc. This feature allows for quick access to standard translations without needing to define them manually.
Custom Translations: The package allows for the creation of custom translations. This is done by defining a map of translations for each language. The example provided includes translations for English ('en'), Finnish ('fi'), and Arabic ('ar') for words like 'explore', 'profile', and 'name'.
Manual Language Setting: There is an option to manually set the language for translations using GetLocale.langcode. This is useful for scenarios where the language might need to be set dynamically or overridden from the device's default language.
Assigning and Retrieving Translations: Custom translations are assigned to GetTranslate.translations. Retrieving a translation is straightforward; you use GetTranslate.getTranslation(key), where key is the word or phrase you want to translate.
Example Usage: The code demonstrates how to retrieve and print translations for 'profile', 'explore', and 'name' in the currently set language.