These pages describe how to translate JSON files with the new version 2 of the JSON filterThis page is a tutorial for configuring monolingual JSON files.
Table of Contents |
---|
Access your filter configurations
Login a manager or administrator and click the Settings top navigation link. Then click JSON files to view all your existing configurations and add new ones.
...
Each filter configuration tells the system the JSON properties to translate, any texts to entirely exclude from translation (e.g. numbers only), whether content is raw text or HTML formatted, and many other parameters. The most important configuration section is in the top:
Choose version 2
This tutorial is for version 2. Therefore, make sure the configurations shows “Version 2” in the top right. If not, click the link just below to convert it.
Version 2 is substantially more powerful than version 1 and we strongly recommend using it.
...
Choose monolingual or multilingual
In a monolingual workflow, the JSON contains texts in the source language and the translated JSON will contain all the texts in a given target language. In a multilingual workflow, the translated JSON will contain both the source texts and all the translated texts in one single file.
...
Specify translatable content with JSON paths
Now it gets interesting And this section is what this tutorial really is about. We introduce “JSON path” which is the standard mechanism to select content in JSON files and, in our case, the content we want to translate. Often JSON files contain content to translate and other content that must not be translated. JSON paths will make this choice simple.
...
Prerequisites
This tutorial uses JSON configurations with:
Make sure to choose “Version 2” in the configuration screen.
Choose the monolingual option.
...
Useful links for understanding JSON paths are:
https://support.smartbear.com/alertsite/docs/monitors/api/endpoint/jsonpath.html (An introduction)
https://jsonpath.com/ (A tool to try out JSON paths with your documents)
...
Example 1 - Translate all content
...