Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/md-siam/flutter_localization

Localization in flutter using the intl package: https://pub.dev/packages/intl
https://github.com/md-siam/flutter_localization

Last synced: 9 days ago
JSON representation

Localization in flutter using the intl package: https://pub.dev/packages/intl

Awesome Lists containing this project

README

        

  
  
  
  

# Flutter Localization

This repo is for enabling localization in a flutter application. I am using an [YouTube](https://www.youtube.com/watch?v=Zw4KoorVxgg&t=20s) tutorial video for developing this application.

The official documentation for flutter localization can be found [here](https://docs.flutter.dev/development/accessibility-and-localization/internationalization)

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

## Packages Used

```yaml
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