flutter_i18next 0.3.0 flutter_i18next: ^0.3.0 copied to clipboard
An internationalization package for Flutter using i18next standards.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_i18next
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_i18next: ^0.3.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:flutter_i18next/i18next.dart';
import 'package:flutter_i18next/i18next_delegate.dart';
import 'package:flutter_i18next/loaders/decoders/base_decode_strategy.dart';
import 'package:flutter_i18next/loaders/decoders/json_decode_strategy.dart';
import 'package:flutter_i18next/loaders/decoders/xml_decode_strategy.dart';
import 'package:flutter_i18next/loaders/decoders/yaml_decode_strategy.dart';
import 'package:flutter_i18next/loaders/file_content.dart';
import 'package:flutter_i18next/loaders/file_translation_loader.dart';
import 'package:flutter_i18next/loaders/local_translation_loader.dart';
import 'package:flutter_i18next/loaders/network_file_translation_loader.dart';
import 'package:flutter_i18next/loaders/translation_loader.dart';
import 'package:flutter_i18next/utils/interpolation_options.dart';
import 'package:flutter_i18next/utils/translator.dart';
import 'package:flutter_i18next/widgets/i18next_locale_builder.dart';