Translate the app strings in your JSON file

Upload a JSON language file to translate its messages. ForgeFile aims to retain the original structure while changing the text. Compare the downloadable example, then review your result in the application that uses it.

forgefile.com JSON

JSON workflow

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

Translation example

A localisation JSON file, English to Spanish

The previews show the first 34 lines of Home Assistant's Google Calendar strings (Apache-2.0). In the complete files, 40 text values change; keys, placeholders and cross-file references remain unchanged.

Source

home-assistant-google-en.json → …-es.json, first 34 lines before translation

Result

home-assistant-google-en.json → …-es.json, first 34 lines after translation
  • Keys identical, nothing renamed

  • Every placeholder survives in its own string

  • Cross-file references are left exactly as they were

2026-10-08 verified — Amanda Lee

JSON features

Keep the message context

Translate a language file as a whole, then compare related labels and messages when reviewing the result.

See which strings changed

The complete sample lets you inspect translated messages alongside unchanged keys, placeholders and cross-file references.

A JSON file you can compare

Start with messages your users will read

Use this workflow for a JSON file containing interface labels, instructions or error messages. Keep the original so you can compare each translated value with the key your application expects. A string can also be a URL, identifier or reference; decide what belongs in the language file before uploading it.

JSON syntax does not define which text should be translated. RFC 8259 defines objects, arrays and value types. Passing a JSON parser checks the file format; it does not check whether a message fits its button or a variable still works in your app.

Inspect the Home Assistant example

The English and Spanish Google Calendar files below have the same key paths and 54 string values. Forty values change; fourteen cross-file reference strings remain unchanged. All seven placeholder occurrences stay in their corresponding strings, including the repeated {url} in a Markdown link.

The previews show the first 34 source lines. Download both complete files to compare the messages outside that excerpt. This sample contains nested objects, but no arrays, numeric values or ICU plural patterns. It cannot establish how those other cases behave. The example uses Home Assistant Google Calendar strings under the Apache-2.0 licence.

Check the messages where they appear

Parse the result and compare its key paths with the original. Then load it into a test version of your app. Open the screens that use the translated strings, substitute real variable values and check links as well as visible wording.

Review short labels separately from longer instructions. A technically valid message can still be too wide for a button or use an unfamiliar term. Make those edits in the translated language file before releasing it.

Translate and test your language file

  1. 1

    Choose a language file

    Use the JSON file that holds text intended for your users. Keep an unchanged copy for comparison.

  2. 2

    Select the target language

    Upload the file and choose the language for its messages.

  3. 3

    Download and compare

    Parse the translated JSON, then compare key paths and placeholders with the source.

  4. 4

    Try it in your application

    Load the file in a test environment. Check labels, links and substituted values before release.

Before using translated JSON

Should every JSON string be translated?

No. Some strings are identifiers, URLs or references used by code. Review what each field means and use a file intended for localization rather than treating arbitrary API data as prose.

Does valid JSON mean the translation is ready to deploy?

No. A parser can accept a file with an incorrect message, changed key or unusable placeholder. Compare the structure and test the translated strings in your application.

Does this sample test ICU plurals or arrays?

No. The example uses nested objects and string values. It does not test arrays or ICU plural messages. Check those structures with your own localization library if your file uses them.

Why are fourteen sample strings unchanged?

Those values are cross-file references in the Home Assistant language file. They point to other messages rather than containing prose to translate. The sample keeps each reference in its original location.

Translate your JSON messages

Choose your language file and target language. Keep the original for a key-by-key review of the downloaded result.