How to translate JSON resource files correctly requires distinguishing stable translation keys from reader-facing values. JSON i18n bundles, localization strings, escaping, nested key paths and interpolation placeholders must all be understood before rewriting a message. This guide provides a direct, practical method for editors, students, translators and developers who want fluent language that still works in the application.
A visible problem illustrates the risk: a translator improves the English-looking key checkout.submit by renaming it in another language. The target sentence sounds natural, but the app still requests checkout.submit and displays the source copy or an error. A second editor inserts a quotation mark without escaping it and invalidates the entire file. Accurate translation needs two independent proofs: preserved data behaviour and correct human meaning.
- Translate reader-facing values, not stable lookup identifiers.
- Preserve JSON types, nesting and valid quoting.
- Protect format variables and message selectors.
- Validate the saved resource and rendered interface.
The first-principles problem
A JSON resource can contain language, code-like identifiers, configuration and conditional formatting instructions side by side. Their surface appearance is not a sufficient guide. A label may be translatable while the property name that holds it is fixed. A number may be intended as a machine setting rather than a display string. A brace may identify a runtime value rather than a quotation. The translator must classify each span by its function.
This approach does not require every editor to become a programmer. It requires a shared contract: which content is for readers, which parts are protected, and which checks are performed by the application owner. A bilingual reviewer judges meaning and register. A technical reviewer verifies parsing, lookup and formatting. A finished resource needs both reviews, because neither can replace the other.
Eight principles that make JSON translation reliable
1. Data and language have different jobs
The program needs stable property names and value types. The reader needs clear instructions. Translate the part meant for readers rather than both indiscriminately.
To use this principle, select one genuine source message and note its key path, expected output and actual user consequence. Make a controlled target-language change while keeping a baseline copy. Then inspect both parsed data and final display. A choice is defensible when a second person can repeat the check and see the same behaviour, not merely when the sentence appears fluent in an isolated document.
2. JSON grammar is precise
Standard JSON uses double-quoted strings and requires escaping of certain characters. Syntax cannot be rescued by fluent target wording.
To use this principle, select one genuine source message and note its key path, expected output and actual user consequence. Make a controlled target-language change while keeping a baseline copy. Then inspect both parsed data and final display. A choice is defensible when a second person can repeat the check and see the same behaviour, not merely when the sentence appears fluent in an isolated document.
3. Variables are not decoration
A value inserted later by the app has a fixed name or position. A translator can often move its location, but must keep the required token intact.
To use this principle, select one genuine source message and note its key path, expected output and actual user consequence. Make a controlled target-language change while keeping a baseline copy. Then inspect both parsed data and final display. A choice is defensible when a second person can repeat the check and see the same behaviour, not merely when the sentence appears fluent in an isolated document.
4. Different screens need different meaning
A short word such as Cancel has context-dependent consequences. The target must describe what the real control does.
To use this principle, select one genuine source message and note its key path, expected output and actual user consequence. Make a controlled target-language change while keeping a baseline copy. Then inspect both parsed data and final display. A choice is defensible when a second person can repeat the check and see the same behaviour, not merely when the sentence appears fluent in an isolated document.
5. A parser cannot judge truthfulness
A resource can load perfectly and still issue a misleading instruction. Functional, bilingual review is essential.
To use this principle, select one genuine source message and note its key path, expected output and actual user consequence. Make a controlled target-language change while keeping a baseline copy. Then inspect both parsed data and final display. A choice is defensible when a second person can repeat the check and see the same behaviour, not merely when the sentence appears fluent in an isolated document.
6. Fallback is an application policy
An omitted key may show parent-locale text, source English, a blank or an error. Learn the configured resolver instead of assuming.
To use this principle, select one genuine source message and note its key path, expected output and actual user consequence. Make a controlled target-language change while keeping a baseline copy. Then inspect both parsed data and final display. A choice is defensible when a second person can repeat the check and see the same behaviour, not merely when the sentence appears fluent in an isolated document.
7. Complex text is still data
Markup, newlines, braces and formatting patterns may appear inside JSON strings. Handle them through the supported runtime contract.
To use this principle, select one genuine source message and note its key path, expected output and actual user consequence. Make a controlled target-language change while keeping a baseline copy. Then inspect both parsed data and final display. A choice is defensible when a second person can repeat the check and see the same behaviour, not merely when the sentence appears fluent in an isolated document.
8. A release needs reproducible evidence
Provide a key/type diff, syntactic validation, variable-parity check and rendered screenshots, not a claim that the file looks right.
To use this principle, select one genuine source message and note its key path, expected output and actual user consequence. Make a controlled target-language change while keeping a baseline copy. Then inspect both parsed data and final display. A choice is defensible when a second person can repeat the check and see the same behaviour, not merely when the sentence appears fluent in an isolated document.
Twelve-stage method for translating JSON locale bundles
Stage 1: Locate consumers
Record which pages, services and UI controls load the bundle.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 2: Freeze lookup paths
Extract nested keys and protect their exact identities.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 3: Classify values
Mark which quoted values are prose, codes, URLs or settings.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 4: Capture context
Study screen actions, warnings and neighbouring labels.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 5: Record tokens
Inventory variables, functions and formatting requirements.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 6: Edit with a serializer
Avoid manual guessing about JSON quotes and escapes.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 7: Translate for users
Write the intended meaning naturally in the target language.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 8: Preserve structural types
Keep booleans, arrays, numbers, nulls and objects unchanged.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 9: Reject duplicates
Validate that each object key has one intended value.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 10: Check coverage
Compare every source and target key path and status.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 11: Exercise fallback
Test regional locales, missing keys and intentionally empty messages.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Stage 12: Render and release
Run the actual formatter, inspect UI states and save review evidence.
Write down the input file, target locale, protected elements and expected output at this stage. If the result differs, isolate the earliest change that altered a key, data type, token or interpretation. Avoid rewriting unrelated copy just because the test fails: a formatter problem is not solved by changing vocabulary, while inaccurate wording is not solved by changing the parser. An evidence-based handoff preserves that distinction.
Twenty-four worked examples: diagnose, correct and verify
Worked case 1: A stable button key
What the editor receives. checkout.submit mapped to Place order. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. The editor translates the property name. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Leave checkout.submit fixed and translate the value. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Trigger checkout and check the locale message. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 2: Quoted control name
What the editor receives. Select “Retry” to continue. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. An unescaped quote ends a JSON string. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Serialize the intended quotation marks correctly. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Parse the saved text and read the tooltip. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 3: Backslash path
What the editor receives. C:\Users\Public. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. A backslash becomes an unintended escape. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Write a legal JSON string and keep the intended path. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Read the decoded value character by character. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 4: Newline
What the editor receives. Heading followed by a new paragraph. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. An unescaped line feed invalidates JSON. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Use a valid JSON escape for intended line breaks. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. View the final warning with both lines. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 5: Unicode script
What the editor receives. Tamil, Chinese or Arabic labels. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. An encoding conversion damages glyphs. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Keep Unicode text in a correctly encoded resource. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Round-trip and inspect the UI. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 6: Duplicate key
What the editor receives. Two save entries under one object. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. One value may override another. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Merge to one reviewed key. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Check object-key uniqueness. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 7: Boolean flag
What the editor receives. enabled: true in an object. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. A word for true is substituted. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Keep the boolean unchanged. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Compare parsed types. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 8: Numeric setting
What the editor receives. maxLength: 80. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. The editor localizes machine configuration. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Preserve numeric value and type. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Test the limit in the UI. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 9: Null status
What the editor receives. A missing value is stored as null. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. Null is translated to literal prose. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Apply the framework’s documented missing-value rule. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Compare null, absent and empty values. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 10: Named token
What the editor receives. Hello, {name}. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. The placeholder name changes. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Keep the token and adapt surrounding grammar. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Render with a representative person name. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 11: Percent token
What the editor receives. %s or %(count)d. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. A translator drops a formatter argument. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Protect syntax expected by the application. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Format with valid and unusual values. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 12: Plural variants
What the editor receives. Singular and plural messages. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. A single target replaces needed choices. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Retain the library’s plural design. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Test zero, one, two and five. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 13: Ordered array
What the editor receives. Three steps in onboarding. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. Alphabetical sorting changes the journey. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Preserve positional order. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Complete onboarding in the target language. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 14: Rich-text snippet
What the editor receives. A message contains permitted emphasis markup. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. Tags are translated as words. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Follow approved rich-text safety rules. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Render and inspect accessible text. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 15: Documentation URL
What the editor receives. The source links to an online guide. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. A translator invents an unverified localized URL. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Keep known working links. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Open the rendered destination. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 16: Keyboard instruction
What the editor receives. Press Ctrl+S to save. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. A guessed shortcut does not work. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Confirm platform binding before adapting wording. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Test the key sequence. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 17: Nested error key
What the editor receives. errors.payment.declined. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. One level of the path is renamed. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Keep lookup hierarchy. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Trigger declined-payment state. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 18: Regional fallback
What the editor receives. fr-CA lacks a string present in fr. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. The team assumes automatic inheritance. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Verify the actual resolver. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Switch to fr-CA and check the missing key. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 19: Deliberate blank
What the editor receives. An empty target string. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. A reviewer guesses missing words. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Distinguish approved blank from pending. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Test blank and absent separately. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 20: Mixed-script code
What the editor receives. Arabic sentence with code AB-81. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. Punctuation order is confusing. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Preserve code and use directional presentation controls. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Read the screen with both scripts. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 21: Single punctuation label
What the editor receives. A question mark used as a visible marker. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. Editor mistakes value punctuation for syntax. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Keep the visible mark inside a JSON string. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Parse and inspect the control. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 22: Build substitution
What the editor receives. A token is replaced during bundling. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. Translation changes token syntax. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Keep build-time variables intact. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Inspect compiled output. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 23: Stale resource
What the editor receives. App serves an older translation. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. Copy is rewritten unnecessarily. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Check cache and resource version. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Verify the loaded bundle revision. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Worked case 24: Same English word, different action
What the editor receives. Cancel appears in two screens. The first question is whether the visible words are ordinary prose, protected structural data or a message template that will be processed later. That distinction determines where translation is allowed.
Failure to anticipate. The editor forces one wording for both contexts. This defect may not be obvious in a side-by-side language review. A file can contain beautiful target words in a place where the application will never look, or valid syntax that communicates the wrong consequence.
Controlled treatment. Review each key independently. Keep the source version and the exact affected key path. If the problem involves a specific formatter or library, describe that dependency rather than inventing a universal JSON rule. The visible translation should be natural but the machine contract must remain deliberate.
How to prove it. Test both actions. Also test a long target sentence, a non-Latin script or a missing-value state when relevant. Save the parsed output and a real interface observation. This trains an important transferable habit: correctness means the intended sentence reaches the intended reader under the intended conditions.
Twelve failure modes and repairs
Failure 1: Parsing failure
An escape or separator is invalid; use a JSON parser.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 2: Missing translation
Lookup key changed; restore its identity.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 3: Raw placeholder
Variable name or formatter contract broke; compare tokens.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 4: Wrong screen
Nested path or array index changed; compare structure.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 5: Unwanted fallback
Target key absent; test locale resolver.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 6: Stale wording
Old asset is still loaded; check build and cache.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 7: Unreadable Unicode
Encoding or font support failed; test both layers.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 8: Wrong singular
Plural branch coverage is insufficient; run count tests.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 9: Disabled control behaves differently
A boolean or numeric setting was translated; restore type.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 10: Wrong action wording
Human meaning was guessed without context; review the screen.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 11: Value disappears
Duplicate keys or incorrect merge overwrote a target; reject collisions.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Failure 12: Incorrect spacing
Variable insertion changed punctuation; render full sentences.. Reproduce the issue in a safe staging copy, compare parsed paths and values with the baseline, and name the smallest corrective change. Keep evidence from both technical and language review. A vague label such as careless translation is not a diagnosis; the repair should explain why the exact defect occurred and why this remedy prevents it.
Practice: transfer from one case to another
Practice 1: A stable button key
Begin with this authentic source condition: checkout.submit mapped to Place order. Write the proposed target string, and explain why the editor translates the property name. Your revision must follow this protection rule: Leave checkout.submit fixed and translate the value. Demonstrate correctness through the following check: Trigger checkout and check the locale message. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 2: Backslash path
Begin with this authentic source condition: C:\Users\Public. Write the proposed target string, and explain why a backslash becomes an unintended escape. Your revision must follow this protection rule: Write a legal JSON string and keep the intended path. Demonstrate correctness through the following check: Read the decoded value character by character. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 3: Unicode script
Begin with this authentic source condition: Tamil, Chinese or Arabic labels. Write the proposed target string, and explain why an encoding conversion damages glyphs. Your revision must follow this protection rule: Keep Unicode text in a correctly encoded resource. Demonstrate correctness through the following check: Round-trip and inspect the UI. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 4: Boolean flag
Begin with this authentic source condition: enabled: true in an object. Write the proposed target string, and explain why a word for true is substituted. Your revision must follow this protection rule: Keep the boolean unchanged. Demonstrate correctness through the following check: Compare parsed types. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 5: Null status
Begin with this authentic source condition: A missing value is stored as null. Write the proposed target string, and explain why null is translated to literal prose. Your revision must follow this protection rule: Apply the framework’s documented missing-value rule. Demonstrate correctness through the following check: Compare null, absent and empty values. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 6: Percent token
Begin with this authentic source condition: %s or %(count)d. Write the proposed target string, and explain why a translator drops a formatter argument. Your revision must follow this protection rule: Protect syntax expected by the application. Demonstrate correctness through the following check: Format with valid and unusual values. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 7: Ordered array
Begin with this authentic source condition: Three steps in onboarding. Write the proposed target string, and explain why alphabetical sorting changes the journey. Your revision must follow this protection rule: Preserve positional order. Demonstrate correctness through the following check: Complete onboarding in the target language. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 8: Documentation URL
Begin with this authentic source condition: The source links to an online guide. Write the proposed target string, and explain why a translator invents an unverified localized url. Your revision must follow this protection rule: Keep known working links. Demonstrate correctness through the following check: Open the rendered destination. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 9: Nested error key
Begin with this authentic source condition: errors.payment.declined. Write the proposed target string, and explain why one level of the path is renamed. Your revision must follow this protection rule: Keep lookup hierarchy. Demonstrate correctness through the following check: Trigger declined-payment state. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 10: Deliberate blank
Begin with this authentic source condition: An empty target string. Write the proposed target string, and explain why a reviewer guesses missing words. Your revision must follow this protection rule: Distinguish approved blank from pending. Demonstrate correctness through the following check: Test blank and absent separately. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 11: Single punctuation label
Begin with this authentic source condition: A question mark used as a visible marker. Write the proposed target string, and explain why editor mistakes value punctuation for syntax. Your revision must follow this protection rule: Keep the visible mark inside a JSON string. Demonstrate correctness through the following check: Parse and inspect the control. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Practice 12: Stale resource
Begin with this authentic source condition: App serves an older translation. Write the proposed target string, and explain why copy is rewritten unnecessarily. Your revision must follow this protection rule: Check cache and resource version. Demonstrate correctness through the following check: Verify the loaded bundle revision. Separate language questions from data questions in your written answer.
Now repeat with a different target language, a longer message and a variable value that stresses the template where appropriate. Identify what may change for grammar and what must remain exact for lookup, type safety or parsing. A strong answer transfers the principle, rather than memorising one sentence or one punctuation pattern.
Frequently asked questions
What should be translated?
Reader-facing string values that the product designates for localization. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
Should the property names change?
Not unless software engineers intentionally migrate the key schema. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
Can JSON include comments?
Strict RFC 8259 JSON does not contain a comment syntax. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
Can I write strings in single quotes?
No, standard JSON uses double quotation marks. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
How are quotes handled inside text?
Use valid JSON escapes through a serializer. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
What happens to a missing key?
The application framework decides; test its resolver. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
Do object members have a guaranteed order?
Applications should not depend on object ordering without a specific contract. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
What about duplicate names?
Reject them because parsers may disagree or overwrite entries. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
Can the token {name} be translated?
Usually the token stays unchanged; surrounding grammar may change. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
Does JSON do plural formatting?
No; the consuming message-format library supplies that logic. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
Why does new copy not appear?
Check bundle loading, caching, locale selection and key identity. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
What should the reviewer deliver?
A validated resource, coverage report, screenshots and unresolved issues. For an actual release, name the framework and parser involved, give a source example and show the output expected from the target locale. If implementation details are unknown, note the uncertainty instead of treating a local convention as a universal standard.
How to teach, assess and improve
Begin with a miniature JSON object containing a button label, a key, a boolean and a dynamic variable. Ask learners to colour-code human language, machine structure and unknown context. Next give them a target that parses but is misleading; then a target that is fluent but syntactically invalid. Require an explanation before a correction. This exercises the two kinds of reasoning that translation files demand.
Assess the work on four dimensions: preservation of data structure, semantic accuracy, natural target expression and observed runtime success. Keep an error ledger that records the exact key, failure, underlying cause, repair and test result. Revisit prior mistakes after the next source change so the learner practises recognition, not just repeated proofreading.
Release checklist
- Source revision and locale target recorded
- Key paths and data types compared
- Quotes, control characters and backslashes valid
- Duplicate object names rejected
- Required formatter tokens preserved
- Missing and blank policies tested
- Actual screen states inspected
- Reviewer notes and remaining issues archived
References and next routes
See IETF RFC 8259 for JSON grammar and interoperability, and W3C ITS 2.0 for translatability metadata. For language practice use the Vocabulary Learning Hub and How English Works. Neighbouring series owners include XLIFF interchange, gettext catalogues and MessageFormat 2; those have distinct jobs from JSON key/value integrity.
The next practical move is to translate one actual JSON string from an application, preserve its key and schema, run a strict parser, and read the message as a real user. That small, reproducible cycle is the foundation for dependable multilingual releases.
