best_naveen_localization 0.0.3 copy "best_naveen_localization: ^0.0.3" to clipboard
best_naveen_localization: ^0.0.3 copied to clipboard

A cool localization package for every developer.

example/lib/main.dart

import 'package:best_naveen_localization/best_naveen_localization.dart';

void main() {
  // if you want to use commonwords tranlation then directly use
  CommonTranslations.back;
  CommonTranslations.cancel;
  CommonTranslations.confirm;
  CommonTranslations.contactUs;
  CommonTranslations.yes;
  CommonTranslations.newMessages;
  CommonTranslations.next;
  CommonTranslations.changePassword;

  //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': 'اسم'}
  };
  GetTranslate.translations = translations;

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

  print(profile);
  print(explore);
  print(name);
}
40
likes
0
pub points
17%
popularity

Publisher

unverified uploader

A cool localization package for every developer.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on best_naveen_localization