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'))