intl_utils_formatter 1.0.1 copy "intl_utils_formatter: ^1.0.1" to clipboard
intl_utils_formatter: ^1.0.1 copied to clipboard

A utility package for intl_utils to sort and format the arb files.

intl_utils_formatter #

intl_utils_formatter is a Dart package providing a command-line tool that aids in the formatting and sorting of .arb files used in internationalizing Flutter apps.

It allows you to define a list of .arb file paths within your project's pubspec.yaml configuration and formats these files to ensure consistency and standardization.

Features #

  • Sort & format .arb files with a single command.
  • It'll sort .arb files in asc order with metadata keys.
  • Easily specify .arb file paths in pubspec.yaml.
  • Integrates smoothly with your existing Flutter localization workflow.

Installation #

Add intl_utils_formatter as a development dependency in your Flutter project:

dev_dependencies:
  intl_utils_formatter: <latest_version>

Configuration #

Configure the paths to your .arb files in your pubspec.yaml under the intl_utils_formatter key like so:

intl_utils_formatter:
  files:
    - path/to/your/first/file.arb
    - path/to/your/second/file.arb

Example

Here is an example:

intl_utils_formatter:
  files:
    - lib/l10n/intl_en.arb
    - lib/l10n/intl_ur.arb

Usage #

To format your .arb files, run the following command in the root directory of your Flutter project:

dart run intl_utils_formatter:format

Make sure that all specified file paths under intl_utils_formatter configuration are correct. The formatter will process each listed .arb file.

License #

This tool is licensed under the MIT License. See the LICENSE file for full license text.

4
likes
160
pub points
31%
popularity

Publisher

verified publisherdholasain.com

A utility package for intl_utils to sort and format the arb files.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, yaml

More

Packages that depend on intl_utils_formatter