Translate Java .properties message bundles

Upload a .properties message bundle to translate the text your users see. ForgeFile aims to preserve its structure while changing the language. Compare the checkout example, then review the result in your application.

forgefile.com Properties

Properties workflow

Translation
Drop your file here or click to browse from your device
Formatting preserved .PROPERTIES

Translation example

A Java .properties file, English to Spanish

The checkout strings of a Java ResourceBundle, written for this page: {0} placeholders, quotes and comments. Keys and comments stay; the values are translated.

Source

messages-en.properties → messages-es.properties before translation

Result

messages-en.properties → messages-es.properties after translation
  • Keys and their order unchanged

  • Every {0} placeholder kept

  • Every string with words translated

    8 of 8 strings that contain words differ from the source.

  • Comment lines

    Comments are notes for translators and stay as written.

  • Double quotes kept

2026-10-08 verified — Amanda Lee

Properties features

Keep message identifiers in view

Review translated values beside their source keys. In the checkout example, all 8 identifiers and their order match the original.

Compare a complete checkout bundle

Download both sample files to inspect translated labels, error messages, comments and numbered placeholders together.

Translate the messages your Java app displays

Keep the keys; translate the message values

Use this page for a message bundle such as messages.properties: the keys identify strings in your application, and the values contain the wording to translate. The aim is to retain the source file’s structure while translating its user-facing text. Keep operational settings such as database URLs, ports and feature flags out of the translation file.

The downloadable English-to-Spanish checkout example keeps all 8 keys in their original order and translates all 8 values. Both comment lines, the double quotes around the stock-item placeholder and all 5 occurrences of {0} and {1} remain. The previews show the complete files, so you can compare the messages with their keys.

Match the encoding to the Java loader

Check how your application reads the bundle before choosing how to save the translated file. Oracle’s Properties documentation specifies ISO-8859-1 for load(InputStream); load(Reader) receives characters decoded by the reader. Characters outside ISO-8859-1 can be written with Unicode escapes.

For property resource bundles, the PropertyResourceBundle documentation describes its default UTF-8 reading and ISO-8859-1 fallback on decoding errors. That does not make every Java .properties loader UTF-8. Load the translated file through the same path your application uses and check accented characters in the displayed messages.

Test placeholders as displayed messages

Compare each translated value with its source, then format messages with realistic argument values. A placeholder’s index links it to an argument; the translated sentence may need a different word order. Oracle’s MessageFormat documentation also defines special rules for apostrophes and braces. Check those rules when your application uses MessageFormat.

The checkout example covers simple numbered placeholders and literal double quotes. It does not test Unicode escapes, continued lines, typed date or number patterns, or MessageFormat apostrophe quoting. If your bundle uses them, include those messages in your application review. Read the finished labels and errors in the interface as well: a correct key does not tell you whether the wording fits a button.

From source bundle to reviewed translation

  1. 1

    Choose the message bundle

    Select the .properties file containing the user-facing messages you want to translate. Keep a copy of the source for comparison.

  2. 2

    Choose the bundle translation language

    Choose the target language for your message bundle. Translation is available in 100+ languages.

  3. 3

    Translate and download the bundle

    Start the translation, then download the result to review alongside your original file.

  4. 4

    Load and read the translated messages

    Compare keys and placeholders, then load the file in your application. Check encoding, formatted arguments and the wording in the interface.

Questions about .properties message translation

Should I upload application.properties for translation?

Use a bundle containing user-facing messages. An application.properties file may contain connection details, paths and other operational settings that should not be translated. Separate the messages you want to localize before uploading.

Can I use the translated file in a Spring application?

If your application reads messages from a .properties bundle, review the translated file through that same message-loading setup. Check its expected encoding and bundle naming. This page does not establish compatibility with a particular Spring configuration.

What should I check when a translated message contains an apostrophe?

Check whether the application passes that value to MessageFormat. In MessageFormat patterns, apostrophes control quoting and a literal apostrophe is written twice. An ordinary properties value does not acquire those rules just because it is in a .properties file.

Does the example prove that Unicode escapes and continued lines work?

The example contains neither Unicode escapes nor continued lines. It demonstrates 8 translated values with unchanged keys, comments, double quotes and 5 simple placeholder occurrences. Test any additional syntax in your own bundle before release.

Translate your Java message bundle

Upload your .properties messages, then review the translated values alongside the source before adding them to your application.