Fluent (.ftl) — French
Mozilla Fluent SAMPLE catalog (French) with placeholders and plural select — for Fluent parsers and CAT tools.
# Novus SAMPLE Fluent catalog (fr)
greeting = Bonjour
Bienvenue, { $name }
save = Enregistrer
cancel = Annuler
items-count =
{ $count ->
[0] {count, plural, =0 {…
*[other] Enregistrer / { $count }
}
Specifications
- Format
- Fluent
- Locale
- fr
- Keys
- 5
- Wave
- G
Testing contract
Expected to pass- Scenario
- Exercise Fluent (.ftl) — French in its fluent workflow. Mozilla Fluent SAMPLE catalog (French) with placeholders and plural select — for Fluent parsers and CAT tools.
- Expected result
- 12 text lines, decoded as UTF-8; first nonempty line is `# Novus SAMPLE Fluent catalog (fr)`. Declared feature checks: locale=fr; keys=5.
What is a .ftl file?
Fluent (.ftl) is Mozilla's localization file format for natural-sounding translations with placeholders, plurals, and selectors. Catalogs are plain text and designed for readable, maintainable UI strings.
How to use this file
Use a SAMPLE .ftl catalog to test Fluent parsers, plural/select resolution, and CAT tool import/export against known keys.
How to use this file for testing
“Fluent (.ftl) — French” is a deterministic Novus Examples fixture for Internationalization, Localization catalogs, Encoding detection. Parallel text and accented, multi-script content, for testing translation pipelines, Unicode handling, and localization tooling.
Documented properties for this file: Fluent. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.
Translation-catalog fixtures carry the same message set across formats, each with its native placeholder syntax. Test your i18n loader, catalog converter, or translation-memory tool, and use the RTL and CJK variants to check bidirectional text and Unicode handling.
Load the catalog with your i18n framework and verify placeholder interpolation and plural handling; the RTL and CJK variants exercise bidirectional text and font fallback.
Code examples
from fluent.syntax import parse # pip install fluent.syntax
res = parse(open("messages-fr.ftl", encoding="utf-8").read())
for entry in res.body:
if getattr(entry, "id", None):
print(entry.id.name)Related files
- stringsApple .strings — UTF-16 LE with BOM (Japanese)The encoding fixture the .strings format needs: a Japanese catalog written as UTF-16 Little Endian with a byte-order mark, which is what Xcode has historically produced and what a UTF-8-only reader turns into mojibake or a decode error. Also carries full-width punctuation and an ideographic space for width and line-breaking tests.

- txtBidi — bracket mirroring in RTL paragraphs (Hebrew and Arabic)Mirroring is a rendering property of the bidi algorithm, not a transformation of the text: a U+0028 LEFT PARENTHESIS inside an RTL run is DRAWN as ')' while the stored byte never changes. These Hebrew and Arabic lines make that testable, and list the neutral characters that look like they should mirror but do not.

- txtBidi — where a mark is actually required (Arabic)Six Arabic sentences containing a Latin filename, a phone number, a version range, a mixed-script path, a percentage and a bracketed insertion — each shown first as a translator usually delivers it and then with the one invisible character that makes it render correctly. The two forms differ by exactly one code point.

- csvBilingual CSV — English→Arabic RTLBilingual EN→AR RTL CSV SAMPLE for spreadsheet CAT and RTL review tools.

- csvBilingual CSV — English→SpanishBilingual EN→ES CSV SAMPLE for spreadsheet-based localization workflows.

- jsonCrowdin-Style Export — FrenchCrowdin-shaped SAMPLE French bilingual export for TMS round-trip tests.

Generated by generation/localization_wave_g.py. Free for any use, no attribution required, license.