Skip to content

google/app-resource-bundle

Application Resource Bundle (ARB)

See the docs for more details including the specification for ARB design, or the schema for validation.

Application Resource Bundle (abbreviated ARB) is a localization resource format that is

  • simple - based on JSON,
  • extensible - vocabulary can be added without affecting existing tools and usage,
  • directly usable - applications can access the resource directly from this format without converting to another form.

In ARB, localizable resources are encoded as a JSON object. Each resource will have a resource entry identified by resource key, and an optional resource attribute entry with resource attribute key.

Example:

{
"@@locale": "en",
"@@context": "HomePage",
"helloAndWelcome": "Welcome {firstName} {lastName}!",
"@helloAndWelcome": {
"description": "Initial welcome message",
"placeholders": {
"firstName": {
"type": "String"
},
"lastName": {
"type": "String"
}
}
},
"newMessages": "You have {newMessages, plural, =0{No new messages} =1 {One new message} two{Two new Messages} other {{newMessages} new messages}}",
"@newMessages": {
"type": "text",
"description": "Number of new messages in inbox.",
"placeholders": {
"newMessages": {
"type": "int"
}
}
}
}

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published