Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/md-siam/flutter_localization
- Owner: md-siam
- License: mit
- Created: 2022-07-18T11:40:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-21T04:06:23.000Z (over 2 years ago)
- Last Synced: 2024-08-01T12:20:18.103Z (3 months ago)
- Language: Dart
- Size: 2.52 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.0flutter:
# 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