https://github.com/arbify/arbify_flutter
Flutter package providing Arbify support.
https://github.com/arbify/arbify_flutter
arb flutter flutter-package internationalization intl localization
Last synced: 24 days ago
JSON representation
Flutter package providing Arbify support.
- Host: GitHub
- URL: https://github.com/arbify/arbify_flutter
- Owner: Arbify
- License: apache-2.0
- Created: 2020-05-28T19:01:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-29T11:14:29.000Z (about 4 years ago)
- Last Synced: 2025-04-09T20:07:23.311Z (24 days ago)
- Topics: arb, flutter, flutter-package, internationalization, intl, localization
- Language: Dart
- Homepage: https://pub.dev/packages/arbify
- Size: 302 KB
- Stars: 17
- Watchers: 3
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# arbify
[![pub package][pub-package-badge]][pub-package]
[![Flutter workflow][flutter-workflow-badge]][flutter-workflow]A package providing support for internationalizing Flutter applications using [intl] package with [Arbify].
## Usage
```bash
$ flutter pub run arbify:download --help
Arbify download command-line utility.
-h, --help Shows this help message.
-i, --[no-]interactive Whether the command-line utility can ask you interactively.
(defaults to on)
-s, --secret= Secret to be used for authenticating to the Arbify API.
Overrides the secret from the .secret.arbify file.
```Use `flutter pub run arbify:download` to run a command-line utility that will guide you through setting up arbify package. This generally comes to two things:
1. Adding configuration to your `pubspec.yaml` file
```yaml
arbify:
url: https://arb.company.com
project_id: 17
outpur_dir: lib/l10n # default, can be ommited
```2. Adding your secret (obtained at https://arb.company.com/account/secrets/create) to `.secret.arbify` file.
### Sample output
```bash
$ flutter pub run arbify:downloadOutput directory doesn't exist. Creating... done.
en Downloading... done.
pl Downloading... done.
mk Downloading... done.
Generating l10n.dart file... done
Generating messages dart files... done
```[pub-package]: https://pub.dev/packages/arbify
[pub-package-badge]: https://img.shields.io/pub/v/arbify
[flutter-workflow]: https://github.com/Arbify/arbify_flutter/actions?query=workflow%3AFlutter
[flutter-workflow-badge]: https://img.shields.io/github/workflow/status/Arbify/arbify_flutter/Flutter
[intl]: https://pub.dev/packages/intl
[Arbify]: https://github.com/Arbify/Arbify