VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Top Ways to Translate Correctly | Mozilla Fluent FTL Messages, Selectors and Attributes

Three secondary students review open books and notes together in a classroom.

How to translate Fluent FTL files correctly starts by separating natural-language messages from the syntax that selects and formats them. This practical guide explains Mozilla Fluent message IDs, placeables, selectors, default variants, terms, variables and attributes. It serves translators, developers, students and technical writers who want multilingual interface copy that works as well as it reads.

A translator might remove a starred default variant because it resembles redundant punctuation. The target sentence remains fluent in one test, but an unmatched runtime value has no appropriate fallback. Another editor may translate the name $user inside a placeable, although the program still supplies the original variable. Both errors show why meaning, syntax and application inputs require separate checks.

  • Protect message IDs, term references and required variables.
  • Distinguish exact matches, plural categories and selector defaults.
  • Translate reader-facing attributes with their own UI context.
  • Run the Fluent formatter with representative and unexpected inputs.

The central problem: language is embedded in a message system

Fluent supports the grammatical variation that different languages need. A message may contain words, variable substitutions, reusable terms and branches selected according to runtime inputs. This flexibility is a strength only when editors understand which parts are language choices and which parts are expressions interpreted by the system. The question is not how to replace the maximum number of English words. It is how to deliver the correct action to readers across all relevant states.

For example, the same English phrase can be a button label, an accessibility description or a tooltip. Its target may legitimately change across those contexts. The application, however, needs stable names to find each resource. Treat syntax as a defined contract and language as the part that communicates the intended meaning. A reliable workflow marks that boundary explicitly before beginning.

First principles

1. Lookup names and visible words differ

A message ID is a contract with application code. Translation targets what the reader sees, not every English-looking symbol.

Use this principle on one actual message. Write down the reader’s task, the code’s expected identifier and the data supplied at runtime. Translate the visible meaning while checking the protected structures separately. If a target-language improvement needs a new variable, coordinate the change with the application rather than silently inventing a reference. Document the result so a second reviewer can repeat both the language and technical checks.

2. Placeables insert dynamic values

Curly braces may hold variables, term references or formatting functions. Their syntax and supplied inputs matter as much as the sentence around them.

Use this principle on one actual message. Write down the reader’s task, the code’s expected identifier and the data supplied at runtime. Translate the visible meaning while checking the protected structures separately. If a target-language improvement needs a new variable, coordinate the change with the application rather than silently inventing a reference. Document the result so a second reviewer can repeat both the language and technical checks.

3. Selectors are decision rules

Branches can be chosen from exact values, string states and plural categories. Target languages may need different grammar, but selection must remain correct.

Use this principle on one actual message. Write down the reader’s task, the code’s expected identifier and the data supplied at runtime. Translate the visible meaning while checking the protected structures separately. If a target-language improvement needs a new variable, coordinate the change with the application rather than silently inventing a reference. Document the result so a second reviewer can repeat both the language and technical checks.

4. The default is a required fallback

A starred variant covers unmatched selector values. Removing it can break messages that appear fine in ordinary examples.

Use this principle on one actual message. Write down the reader’s task, the code’s expected identifier and the data supplied at runtime. Translate the visible meaning while checking the protected structures separately. If a target-language improvement needs a new variable, coordinate the change with the application rather than silently inventing a reference. Document the result so a second reviewer can repeat both the language and technical checks.

5. Attributes are meaningful copy

Labels, tooltips and related attributes may be used independently. Each requires its own context and linguistic review.

Use this principle on one actual message. Write down the reader’s task, the code’s expected identifier and the data supplied at runtime. Translate the visible meaning while checking the protected structures separately. If a target-language improvement needs a new variable, coordinate the change with the application rather than silently inventing a reference. Document the result so a second reviewer can repeat both the language and technical checks.

6. Runtime checks are essential

A parser verifies syntax, not whether a label is natural or a warning truthful. Actual formatted messages are the final evidence.

Use this principle on one actual message. Write down the reader’s task, the code’s expected identifier and the data supplied at runtime. Translate the visible meaning while checking the protected structures separately. If a target-language improvement needs a new variable, coordinate the change with the application rather than silently inventing a reference. Document the result so a second reviewer can repeat both the language and technical checks.

A twelve-stage repeatable FTL method

Stage 1: Map resources

List FTL files, locales, message IDs and consuming screens.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 2: Freeze identifiers

Keep expected message, term and attribute names stable.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 3: Inventory placeables

Record all external variables and references.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 4: Classify selectors

Distinguish plural categories, exact numbers and string keys.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 5: Preserve the default

Check the starred variant in each select expression.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 6: Write natural target grammar

Reorder permitted variables without changing their identities.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 7: Review every attribute

Test labels, tooltips and other consumed properties.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 8: Control term forms

Apply the approved product naming and inflection policy.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 9: Handle special syntax

Use documented literal braces and expression forms.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 10: Parse with runtime tools

Check the FTL grammar in the actual implementation.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 11: Format edge cases

Exercise counts, names, empty values and mixed scripts.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Stage 12: Archive evidence

Keep source version, branch checks, screenshots and reviewer decisions.

The completion evidence should be concrete: a resource inventory, the accepted FTL syntax, a variable comparison, a selector test or an interface screenshot. When something fails, isolate the earliest point where the translated resource diverges from the expected structure. A natural-sounding sentence does not cure an unresolved variable, and a parser error does not tell you whether the meaning is right. Keep these responsibilities explicit throughout the process.

Twenty worked cases: spot the risk and prove the correction

Worked case 1: Message ID

Source situation. save-button = Save. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Translated ID breaks lookup. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Keep ID; translate the value. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Click Save in target locale. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 2: User variable

Source situation. Hello, { $user }. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Changed variable name loses supplied input. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Preserve $user; change surrounding grammar. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Format names of different lengths. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 3: Brand term

Source situation. A message references -brand-name. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Manual replacement produces inconsistent brand wording. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Keep approved term policy. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Review all rendered term references. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 4: Default branch

Source situation. A selector has *[other]. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Deleting the star removes the default. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Retain a valid default variant. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Format unexpected values. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 5: Plural counts

Source situation. One alert, several alerts. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. English plural categories are copied blindly. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Use target-language categories. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Test 0, 1, 2, 5 and 21. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 6: Exact zero

Source situation. A selector uses [0]. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Exact zero is confused with plural category zero. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Distinguish exact and category matching. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Compare zero and neighbouring counts. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 7: Ordinal rank

Source situation. A message shows ranks. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. English suffix patterns are imposed. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Use appropriate ordinal rules. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Test varied rank endings. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 8: Label attribute

Source situation. .label = Settings. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Attribute is missed during translation. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Translate the attribute used by the control. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Open target menu. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 9: Tooltip

Source situation. .tooltiptext = Reload page. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. An explanatory action becomes a vague noun. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Translate tooltip for its intended function. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Focus the control. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 10: Number function

Source situation. NUMBER($price). First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Function name is translated or altered. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Preserve supported Fluent syntax. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Render target locale prices. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 11: Long title

Source situation. Remove { $title }?. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. English word order produces awkward grammar. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Move allowed placeable and adjust syntax. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Test long titles. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 12: Literal brace

Source situation. An instruction shows a { character. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Raw brace is interpreted as an expression. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Use documented Fluent literal syntax. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Copy the resulting visible character. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 13: Empty variable

Source situation. A name can be empty. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Punctuation dangles after insertion. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Agree on supported empty-value wording. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Test empty and populated names. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 14: RTL mixed script

Source situation. Arabic text includes a Latin username. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Direction and punctuation look confusing. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Test Fluent isolation and UI rendering. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Read with mixed scripts and numerals. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 15: Multiline resource

Source situation. One value spans source lines. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Editor wraps become unintended visible line breaks. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Follow documented FTL multiline rules. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Inspect the rendered paragraph. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 16: String selector

Source situation. Branches represent online and offline. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Translated branch keys no longer match code. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Keep state keys unless code migrates. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Test both states and unknown input. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 17: Attribute-only message

Source situation. Entry has only attributes. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Reviewer deletes it as empty. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Keep required attributes. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Test the consuming component. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 18: Translator comment

Source situation. Comment describes variable type. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Editor removes vital context. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Preserve accurate guidance. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Review source note and render. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 19: Source revision

Source situation. New source adds another variable. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. Old target lacks required placeholder. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Compare variable sets each release. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Format new inputs. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Worked case 20: Regional variant

Source situation. Same message needs different regional vocabulary. First identify the part a reader will see and the part Fluent interprets as a resource name, expression, function or selection rule. The two may be adjacent, so surface appearance alone cannot tell you what is safe to change.

Possible failure. One locale copy is assumed universal. A reviewer who checks only the ordinary English example may miss the defect. An unusual name, count or state may select another variant or expose raw syntax. The test should therefore go beyond one successful screenshot.

Controlled treatment. Review variants while keeping IDs. Preserve the runtime contract and write the target sentence for its real purpose. If the text is a warning or destructive-action label, verify the actual consequence rather than selecting the first dictionary equivalent. Good localisation is both truthful and operational.

Verification. Test each region. Also test a longer input, a different grammatical number or a mixed-script name when relevant. Save the formatted output, identify which branch was selected and ask a fluent reader whether the final sentence sounds natural. This provides evidence of both functioning syntax and correct communication.

Failure modes and how to diagnose them

Failure 1: Missing message

A translated identifier breaks lookup. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 2: Raw token

The formatter cannot resolve a variable. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 3: Selector failure

The default variant was removed. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 4: Wrong plural

English rules were applied to another language. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 5: Untranslated tooltip

An attribute was omitted. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 6: Brand inconsistency

A term was rewritten differently across messages. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 7: Malformed braces

An expression was edited as ordinary punctuation. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 8: Wrong number

A formatting function or option changed. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 9: Dangling punctuation

A variable can be empty. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 10: Mixed-script confusion

Text direction or isolation was not checked. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 11: Old target

New source variables were not merged. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Failure 12: Misleading action

The translated label does not match what the control does. Reproduce the exact input and compare the expected identifier, external variable set and selected branch. Repair the smallest verified cause before rewriting adjacent language. An effective diagnosis says which contract failed, what was corrected and how that correction was tested; the label careless translation provides none of that information.

Practice and transfer

Practice 1: Message ID

Begin with this example: save-button = Save. Create a natural target-language message and explain the error predicted by this condition: Translated ID breaks lookup. Your repair should follow the rule Keep ID; translate the value. Show the result through this check: Click Save in target locale. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 2: User variable

Begin with this example: Hello, { $user }. Create a natural target-language message and explain the error predicted by this condition: Changed variable name loses supplied input. Your repair should follow the rule Preserve $user; change surrounding grammar. Show the result through this check: Format names of different lengths. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 3: Brand term

Begin with this example: A message references -brand-name. Create a natural target-language message and explain the error predicted by this condition: Manual replacement produces inconsistent brand wording. Your repair should follow the rule Keep approved term policy. Show the result through this check: Review all rendered term references. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 4: Default branch

Begin with this example: A selector has *[other]. Create a natural target-language message and explain the error predicted by this condition: Deleting the star removes the default. Your repair should follow the rule Retain a valid default variant. Show the result through this check: Format unexpected values. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 5: Plural counts

Begin with this example: One alert, several alerts. Create a natural target-language message and explain the error predicted by this condition: English plural categories are copied blindly. Your repair should follow the rule Use target-language categories. Show the result through this check: Test 0, 1, 2, 5 and 21. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 6: Exact zero

Begin with this example: A selector uses [0]. Create a natural target-language message and explain the error predicted by this condition: Exact zero is confused with plural category zero. Your repair should follow the rule Distinguish exact and category matching. Show the result through this check: Compare zero and neighbouring counts. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 7: Ordinal rank

Begin with this example: A message shows ranks. Create a natural target-language message and explain the error predicted by this condition: English suffix patterns are imposed. Your repair should follow the rule Use appropriate ordinal rules. Show the result through this check: Test varied rank endings. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 8: Label attribute

Begin with this example: .label = Settings. Create a natural target-language message and explain the error predicted by this condition: Attribute is missed during translation. Your repair should follow the rule Translate the attribute used by the control. Show the result through this check: Open target menu. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 9: Tooltip

Begin with this example: .tooltiptext = Reload page. Create a natural target-language message and explain the error predicted by this condition: An explanatory action becomes a vague noun. Your repair should follow the rule Translate tooltip for its intended function. Show the result through this check: Focus the control. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 10: Number function

Begin with this example: NUMBER($price). Create a natural target-language message and explain the error predicted by this condition: Function name is translated or altered. Your repair should follow the rule Preserve supported Fluent syntax. Show the result through this check: Render target locale prices. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 11: Long title

Begin with this example: Remove { $title }?. Create a natural target-language message and explain the error predicted by this condition: English word order produces awkward grammar. Your repair should follow the rule Move allowed placeable and adjust syntax. Show the result through this check: Test long titles. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Practice 12: Literal brace

Begin with this example: An instruction shows a { character. Create a natural target-language message and explain the error predicted by this condition: Raw brace is interpreted as an expression. Your repair should follow the rule Use documented Fluent literal syntax. Show the result through this check: Copy the resulting visible character. State the source and target strings separately from Fluent syntax and supplied runtime arguments.

Next change the input to an unexpected value or a longer target phrase. Predict the resulting branch before using the formatter and compare that prediction with the observed result. Explain which differences are legitimate choices of language and which would alter the application’s expectations. The exercise tests transfer, not repetition of a memorised answer.

Frequently asked questions

What is FTL?

A localisation resource format used by Mozilla Fluent. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

Should I translate message IDs?

Normally not; they are application lookup identifiers. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

What is a placeable?

An expression that inserts data, a term, another message or a function result. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

Why is there an asterisk?

It marks the required default variant of a selector. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

Are [0] and [zero] the same?

No. One is an exact match and the other a language plural category. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

Do plural rules differ by language?

Yes. Test branches appropriate to the target locale. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

Are attributes translatable?

Yes when the UI presents them to users, while attribute names remain expected identifiers. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

Can I show a literal brace?

Yes, using Fluent-supported literal syntax. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

Can I rename $user?

Not unless the application changes the argument it provides. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

Is successful parsing sufficient?

No. Also inspect meaning, branch selection and UI display. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

What about empty inputs?

Test them and coordinate the fallback with the application. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

What should I deliver?

The FTL, variable and ID comparisons, parser results, tests and screenshots. The most dependable project answer identifies the precise Fluent implementation and provides one ordinary formatted example and one edge case. Where runtime behaviour is unspecified, document the assumption and test it instead of treating it as universal.

How to teach and assess the method

Begin with a plain message, then add one named variable. Ask learners to label the message ID and the inserted data. Next introduce a selector with a marked default. Students should predict which branch will be selected for several values, including one not explicitly named. Finally add a .label or .tooltiptext attribute and inspect the actual control. Each step adds only one new source of difficulty, making misconceptions easy to identify.

Assess four capabilities independently: accurate meaning, natural target grammar, preserved syntax and correct runtime selection. A valid resource can mislead a reader; a fluent sentence can fail parsing. Keep an error ledger recording the message ID, input values, observed branch, defect, repair and confirmation. Review this ledger after upstream source changes, because new variables and variants often expose previously invisible weaknesses.

Final release checklist

  • Message IDs and attribute names remain correct.
  • Variables, terms and functions use the expected syntax.
  • All select expressions retain a default variant.
  • Target-language grammatical categories are reviewed.
  • Normal and edge-case inputs have been formatted.
  • Relevant interface labels and tooltips are inspected.
  • Mixed-script or long-text issues are considered.
  • Review notes, parser results and screenshots are preserved.

Sources and next routes

Mozilla Fluent explains placeables and selectors. These official guides establish syntax; the actual application implementation provides the final testing environment. Improve language judgement through the Vocabulary Learning Hub and How English Works.

For separate translation tasks, use GNU gettext PO, MessageFormat 2, XLIFF 2.1 and language accessibility. Those articles solve related but different canonical jobs; this one owns Fluent FTL editing, selector validation and message attributes.

A useful next step is to select one real FTL message, preserve its identity, write the natural target and format it with several inputs. A good translation is not a sentence that sounds fine in isolation; it is a message that remains clear and correct whenever the real application uses it.