File Structure

X-Ray: .ARB

Application Resource Bundle

"@@locale": "es",

"welcome": "Hola, {name}",

// Metadata for the translator

"@welcome": {

"description": "Greeting at Home",

"placeholders": { "name": { "type": "String" } }

}

Global Locale

Defines the base language of the file.

The Key

Unique identifier of the resource.

The Value

Translatable content (ICU).

The Context

Additional attributes (@).

Origin and Purpose

Created by Google in 2012 as a standard to simplify the flow between developers and professional translation agencies.

Why use it?

Unlike simple JSON, ARB supports the syntax of ICU Messages, allowing the same key to handle complex plurals and grammatical genders without cluttering the Dart code.

JSON Based

Easy to read for humans and machines.

ICU Support

Handles complex plurals, genders and formats.

Type Safe

Flutter generates typed Dart code automatically.

Tooling

Compatible with external translation tools.

logo xeland314
.ARB standardizes