best_flutter_localization 1.0.9 copy "best_flutter_localization: ^1.0.9" to clipboard
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 ..

example/lib/main.dart

import 'package:best_flutter_localization/best_naveen_localization.dart';


void main() {
  /// if you want to use commonwords tranlation then directly use ..many more words you can search
  CommonTranslations.back;
  CommonTranslations.cancel;
  CommonTranslations.confirm;
  CommonTranslations.contactUs;
  CommonTranslations.yes;
  CommonTranslations.newMessages;
  CommonTranslations.next;
  CommonTranslations.changePassword;
  CommonTranslations.areYouSure;
  CommonTranslations.contact;
  CommonTranslations.location;

  /// or you can create your translation like this

  final Map<String, Map<String, String>> translations = {
    'en': {'explore': 'Explore', 'profile': 'Profile', 'name': 'Name'},
    'fi': {'explore': 'Selaa', 'profile': 'Profiili', 'name': 'Nimi'},
    'ar': {'explore': 'استكشاف', 'profile': 'الملف الشخصي', 'name': 'اسم'}
  };

  /// if you want to set manually then assign language code like this
  GetLocale.langcode='en';


  GetTranslate.translations = translations;

  String profile = GetTranslate.getTranslation('profile');
  String explore = GetTranslate.getTranslation('explore');
  String name = GetTranslate.getTranslation('name');

  print(profile);
  print(explore);
  print(name);
}
1
likes
120
pub points
0%
popularity

Publisher

unverified uploader

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 ..

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on best_flutter_localization