Keep the message context
Translate a language file as a whole, then compare related labels and messages when reviewing the result.
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.
Translation example
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.
2026-10-08 verified — Amanda Lee
Translate a language file as a whole, then compare related labels and messages when reviewing the result.
The complete sample lets you inspect translated messages alongside unchanged keys, placeholders and cross-file references.
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.
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.
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.
Choose a language file
Use the JSON file that holds text intended for your users. Keep an unchanged copy for comparison.
Select the target language
Upload the file and choose the language for its messages.
Download and compare
Parse the translated JSON, then compare key paths and placeholders with the source.
Try it in your application
Load the file in a test environment. Check labels, links and substituted values before release.
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.
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.
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.
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.
Choose your language file and target language. Keep the original for a key-by-key review of the downloaded result.