easy_translations 0.0.2 copy "easy_translations: ^0.0.2" to clipboard
easy_translations: ^0.0.2 copied to clipboard

Add translations to your Flutter app with ease.

Easy translations #

A light-weight translation package for Flutter.

import 'package:easy_translations/easy_translations.dart';

BlocProvider(
  create: (context) => LocalizationCubit(
    translations: CustomTranslations(),
    initialLocale: Locale('it'),
    fallbackLocale: Locale('en'),
  ),
  child: MaterialApp(
    ...
  ),
),

Translate #

Text(context.tr('Hello World'))
1
likes
130
points
111
downloads

Publisher

unverified uploader

Weekly Downloads

Add translations to your Flutter app with ease.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_bloc, light_logger

More

Packages that depend on easy_translations