Skip to content
pubscout

arb_utils

0.11.1, released 6 months ago by an unverified publisher

Tools and CLI scripts to sort, diff, merge, and manipulate .arb localization files.

WASM-ready
$ flutter pub add arb_utils
Source repository

What it does

Provides a set of standalone functions and CLI commands to work with .arb translation files. It allows sorting, merging, diffing, and processing new keys in ARB files, as well as runtime language switching and dynamic loading via ArbClient.

AI-written summary of version 0.11.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to automate management, sorting, or merging of .arb translation files in your project.
  • You want a CLI utility to quickly add translation entries or generate missing metadata.
  • You need a helper for manual runtime language switching with Provider or BLoC.

Skip it when

  • You are looking for a comprehensive full-featured i18n localization framework without managing raw .arb files directly.
  • You use a state manager other than Provider/BLoC for the provided UI language selector helpers.

Strengths

  • Handy CLI commands for sorting, adding entries, and listing ARB keys.
  • Standalone functions for diffing, merging, and sorting ARB files programmatically.
  • Includes runtime language switching helper widgets.

Weaknesses

  • Runtime helpers are currently limited to Provider and BLoC out of the box.
  • Documentation for advanced setup relies partly on specific code patterns.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
6

Can be activated globally via pub for CLI tools or added as a standard dependency.

import 'package:arb_utils/arb_utils.dart';

main() {
  var sortedArb = sortARB(arbString);
  print(sortedArb);
}

Alternatives

Packages that do the same job and could replace arb_utils.

  • slang

    Type-safe localization generator that offers an alternative way to handle translations without dealing directly with standard ARB files.

  • easy_localization

    Provides out-of-the-box easy localization management using JSON, CSV, or YAML files with built-in runtime locale changes.

Works with

Packages commonly used together with arb_utils: ones it builds on, ones built on it, and its own family.