# Android String Formatting with Phrase

DevFeed: [Android String Formatting with Phrase](<https://devfeed.tech/articles/android-string-formatting-with-phrase-15505.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/android-string-formatting-with-phrase>)

Author: Square Engineering

Published: 2014-01-22T17:05:00Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Library](<https://devfeed.tech/topics/library.md>), [Java](<https://devfeed.tech/topics/java.md>), [Exception](<https://devfeed.tech/topics/exception.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [bugs](<https://devfeed.tech/tags/bugs.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [html](<https://devfeed.tech/tags/html.md>), [java](<https://devfeed.tech/tags/java.md>), [library](<https://devfeed.tech/tags/library.md>), [translation](<https://devfeed.tech/tags/translation.md>)

## AI overview

This article introduces Phrase, a small Android text-formatting library designed to reduce translation errors. It replaces cryptic positional format specifiers with readable named keys, supports styled text, and uses fail-fast exceptions to expose invalid patterns and missing or invalid values during development.

## Source excerpt

Avoid translation mistakes with this simple Android text formatting library.