Flutter Localization

This repo is for enabling localization in a flutter application. I am using an YouTube tutorial video for developing this application.

The official documentation for flutter localization can be found here

For language code visit: https://www.science.co.il/language/Codes.php

Packages Used

dependencies:
  flutter_localizations: # For app localization
    sdk: flutter # For app localization

  # For state-management
  provider: ^6.0.3
  # Provides internationalization and localization facilities
  intl: ^0.17.0

flutter:
  # For auto-generating the .dart files from .arb
  generate: true

App Demo

File Pattern Inside The lib Folder

lib/
├── l10n/
│   ├── app_ar.arb
│   ├── app_bn.arb
│   ├── app_de.arb
│   ├── app_en.arb
│   ├── app_es.arb
│   ├── app_he.arb
│   ├── app_hi.arb
│   └── l10n.dart
├── page/
│   └── home_page.dart
├── provider/
│   └── locale_provider.dart
├── widget/
│   ├── language_picker_widget.dart
│   └── language_widget.dart
└── main.dart

Location of Auto-generated localization Dart Files

GitHub

View Github