Keep Mozilla Fluent .ftl catalogs in git, review messages and attributes in Platform, and load approved locales in Fluent.js or fluent-react.
This tutorial connects an app that uses Mozilla Fluent.ftl files to Hyperlocalise Platform. You keep message and attribute values in the repository, review them in Platform, and load the approved files with @fluent/bundle or @fluent/react.Hyperlocalise supports a subset of Fluent. Message IDs become keys. Attributes become dotted keys such as login.title. Term definitions (-brand) and term references ({ -brand }) are rejected.
Comments above a message become CAT context. # comments attach to the next message. ## group comments and ### file comments do not.
Do not put -brand = Hyperlocalise or { -brand } in a mapped .ftl file. Hyperlocalise rejects terms so they are not silently dropped. Inline the brand name, or keep terms in a file outside this bucket.
Start generation through a Source upload automation or New Request. In Content Editor, review:
variables such as { $name } and { $count };
select variants, including the * default;
attributes such as login.title;
message comments that explain where the copy appears.
Approve the translations before pulling them back.A select pattern stays one value. Translators may change the words inside [one] and *[other]. They must keep the variable names and a default variant.
hl check reports missing target keys and placeholder mismatches on { $name }. Fluent selectors are not ICU plural blocks, so do not expect icu_shape_mismatch or unreachable_plural_case to understand [one] / *[other]. Cover 0, 1, and several items in runtime tests:
Hyperlocalise cannot append a new attribute to a parent that already exists in the target template. Add the attribute to the source and target files together, or start from a target that does not yet contain that parent.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Hyperlocalise","description":"Hyperlocalise Platform and CLI documentation for multilingual content operations, AI translation, and TMS integrations.","colors":{"primary":"#0f766e","light":"#14b8a6","dark":"#0d9488"},"logo":{"light":"https://mintcdn.com/quietcircles/xDwpktL5XMJQ4Sry/logo/logotypo-light-mode.png?fit=max\u0026auto=format\u0026n=xDwpktL5XMJQ4Sry\u0026q=85\u0026s=c1b2c3e2af1cf1bed58bdf3f5061d980","dark":"https://mintcdn.com/quietcircles/xDwpktL5XMJQ4Sry/logo/logotypo-dark-mode.png?fit=max\u0026auto=format\u0026n=xDwpktL5XMJQ4Sry\u0026q=85\u0026s=c4135bdf701b5b3b876be65fe8a9b05c","href":"https://www.hyperlocalise.com"},"favicon":"https://mintcdn.com/quietcircles/xDwpktL5XMJQ4Sry/favicon.svg?fit=max\u0026auto=format\u0026n=xDwpktL5XMJQ4Sry\u0026q=85\u0026s=153abbd13179743d2b9d32b3b514e87a","navbar":{"links":[{"href":"/","label":"Platform"},{"href":"/cli","label":"CLI"}],"primary":{"type":"button","label":"Open Hyperlocalise","href":"https://www.hyperlocalise.com"}},"footer":{"socials":{"website":"https://www.hyperlocalise.com","github":"https://github.com/hyperlocalise/hyperlocalise","linkedin":"https://www.linkedin.com/company/hyperlocalise"},"links":[{"header":"Product","items":[{"label":"Platform","href":"https://www.hyperlocalise.com"},{"label":"Pricing","href":"https://www.hyperlocalise.com/en/pricing"},{"label":"CLI","href":"/cli"}]},{"header":"Company","items":[{"label":"Privacy","href":"https://www.hyperlocalise.com/en/privacy"},{"label":"Trust Center","href":"https://app.aus.vanta.com/hyperlocalise.com/trust/su9x7fcjfa8q700wu9pt2u"},{"label":"Status","href":"https://status.hyperlocalise.com/"}]}]},"search":{"prompt":"Search Platform and CLI docs"},"seo":{"metatags":{"og:site_name":"Hyperlocalise Docs","twitter:card":"summary_large_image","og:image":"https://www.hyperlocalise.com/en/opengraph-image"},"organization":{"id":"https://www.hyperlocalise.com/#organization","name":"Hyperlocalise","legalName":"Hyperlocalise Pty Ltd","url":"https://www.hyperlocalise.com","logo":"https://www.hyperlocalise.com/images/logo/logomark-dark-mode.svg","sameAs":["https://www.linkedin.com/company/hyperlocalise/","https://github.com/hyperlocalise/hyperlocalise"]},"indexing":"navigable"},"fonts":{"family":"Inter"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/hyperlocalise/hyperlocalise"},{"anchor":"Issues","icon":"circle-exclamation","href":"https://github.com/hyperlocalise/hyperlocalise/issues"}]},"languages":[{"language":"en","href":""},{"language":"zh","href":"zh-CN"},{"language":"vi","href":"vi-VN"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"quietcircles","hasAudioNarration":false,"actualSubdomain":"quietcircles","customDomains":["hyperlocalise.dev"],"gitSource":{"type":"github","owner":"hyperlocalise","repo":"hyperlocalise","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"issues":false,"edits":false,"thumbs":true},"entitlements":{},"buildId":"6af1aa060da5396f9632c81e","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"en","tag":"CLI","count":128},{"language":"en","tag":"CLI guide","count":128},{"language":"en","tag":"Platform","count":88},{"language":"en","tag":"Platform guide","count":88},{"language":"vi","tag":"CLI","count":47},{"language":"zh","tag":"CLI","count":47},{"language":"en","tag":"File formats","count":38},{"language":"en","tag":"Integrations","count":34},{"language":"en","tag":"Reference","count":21},{"language":"en","tag":"Developer integrations","count":21},{"language":"en","tag":"Release notes","count":17},{"language":"en","tag":"Releases","count":16},{"language":"vi","tag":"Providers","count":9},{"language":"zh","tag":"Providers","count":9},{"language":"vi","tag":"Commands","count":8},{"language":"zh","tag":"Commands","count":8},{"language":"vi","tag":"TMS adapters","count":7},{"language":"zh","tag":"TMS adapters","count":7},{"language":"vi","tag":"Getting started","count":6},{"language":"zh","tag":"Getting started","count":6},{"language":"vi","tag":"Reference and concepts","count":5},{"language":"zh","tag":"Reference and concepts","count":5},{"language":"vi","tag":"Workflows","count":4},{"language":"zh","tag":"Workflows","count":4},{"language":"vi","tag":"Configuration","count":3},{"language":"vi","tag":"Troubleshooting","count":3},{"language":"vi","tag":"Contributing","count":3},{"language":"zh","tag":"Configuration","count":3},{"language":"zh","tag":"Troubleshooting","count":3},{"language":"zh","tag":"Contributing","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]){--help-nav-text: #475569;--help-nav-heading: #18242e;--help-nav-line: #e2e8f0;--help-nav-hover: #f1f5f9;--help-nav-active: #e8f3ef;--help-nav-accent: #17634f}.dark :is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]){--help-nav-text: #b5bdc4;--help-nav-heading: #edf1f3;--help-nav-line: #2c353b;--help-nav-hover: #1c252a;--help-nav-active: #1b302a;--help-nav-accent: #a0d9c0}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group{font-size:14px;line-height:22px}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group :is(a,button){min-height:32px;padding-block:5px;border-radius:6px;color:var(--help-nav-text);text-shadow:none}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group :is(a,button):hover{background:var(--help-nav-hover);color:var(--help-nav-heading)}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group button{width:100%;justify-content:space-between}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group>li[data-group-tag]{margin-block:8px}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group>li[data-group-tag]>button{font-weight:600;color:var(--help-nav-heading)}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group ul{margin-inline-start:16px;border-inline-start:1px solid var(--help-nav-line);padding-inline-start:4px}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group ul :is(a,button){padding-inline-start:12px!important}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group a[aria-current=\"page\"]{background:var(--help-nav-active);color:var(--help-nav-accent);font-weight:600}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group :is(a,button):focus-visible{outline:2px solid var(--help-nav-accent);outline-offset:-2px}@media (max-width: 1023px){#mobile-nav #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group :is(a,button){min-height:44px;align-items:center}}:is(#sidebar,#mobile-nav) #navigation-items:has([data-title=\"Project management\"],[data-title=\"Configuration\"]) .sidebar-group button svg{width:12px;height:12px;color:var(--help-nav-text)}"}],"page":{"pagePath":"platform/tutorials/fluent","slug":"/platform/tutorials/fluent","pageMetadata":{"title":"Fluent localization","description":"Keep Mozilla Fluent .ftl catalogs in git, review messages and attributes in Platform, and load approved locales in Fluent.js or fluent-react.","href":"/platform/tutorials/fluent"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Keep Mozilla Fluent .ftl catalogs in git, review messages and attributes in Platform, and load approved locales in Fluent.js or fluent-react.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This tutorial connects an app that uses `,_jsx(_components.a,{href:`https://projectfluent.org/`,children:`Mozilla Fluent`}),` `,_jsx(_components.code,{children:`.ftl`}),` files to Hyperlocalise Platform. You keep message and attribute values in the repository, review them in Platform, and load the approved files with `,_jsx(_components.code,{children:`@fluent/bundle`}),` or `,_jsx(_components.code,{children:`@fluent/react`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Hyperlocalise supports a subset of Fluent. Message IDs become keys. Attributes become dotted keys such as `,_jsx(_components.code,{children:`login.title`}),`. Term definitions (`,_jsx(_components.code,{children:`-brand`}),`) and term references (`,_jsx(_components.code,{children:`{ -brand }`}),`) are rejected.`]}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`You need:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`an app that loads `,_jsx(_components.code,{children:`.ftl`}),` catalogs with Fluent.js or another Fluent runtime;`]}),`\n`,_jsxs(_components.li,{children:[`the `,_jsx(_components.a,{href:`/cli/getting-started/install`,children:`Hyperlocalise CLI`}),`;`]}),`\n`,_jsxs(_components.li,{children:[`a Platform project with `,_jsx(_components.code,{children:`en-US`}),` as source and `,_jsx(_components.code,{children:`fr-FR`}),` and `,_jsx(_components.code,{children:`de-DE`}),` as targets; and`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`HYPERLOCALISE_API_KEY`}),` and `,_jsx(_components.code,{children:`HYPERLOCALISE_PROJECT_ID`}),` in your environment.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`The example uses:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── src/messages.tsx`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`├── locales/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── en-US/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ │ └── messages.ftl`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ ├── fr-FR/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ │ └── messages.ftl`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ └── de-DE/`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`│ └── messages.ftl`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`└── i18n.yml`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`1-keep-copy-in-fluent`,children:`1. Keep copy in Fluent`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`locales/en-US/messages.ftl`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`fluent`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`fluent`,children:_jsxs(_components.code,{language:`fluent`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Heading on the saved filters screen`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`saved-filters-title = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Saved filters`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Confirmation after the user saves a filter`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`filter-saved = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Saved `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $name `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`saved-filter-count =`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` {`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $count `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` [`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`one`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $count `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` saved filter`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` *[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`other`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $count `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` saved filters`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`login = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Sign in`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` .title = `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Open your account`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Use those messages from React:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`23`,language:`tsx`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`tsx`,children:_jsxs(_components.code,{language:`tsx`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Localized`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@fluent/react\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` SavedFilters`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` count`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}) {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Localized`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"saved-filters-title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`h1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Saved filters`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`h1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Localized`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Localized`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"filter-saved\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` vars`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`p`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Saved { $name }\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`p`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Localized`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Localized`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"saved-filter-count\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` vars`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`p`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"{ $count } saved filters\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`p`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#4EC9B0`},children:`Localized`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Comments above a message become CAT context. `,_jsx(_components.code,{children:`#`}),` comments attach to the next message. `,_jsx(_components.code,{children:`##`}),` group comments and `,_jsx(_components.code,{children:`###`}),` file comments do not.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not put `,_jsx(_components.code,{children:`-brand = Hyperlocalise`}),` or `,_jsx(_components.code,{children:`{ -brand }`}),` in a mapped `,_jsx(_components.code,{children:`.ftl`}),` file. Hyperlocalise rejects terms so they are not silently dropped. Inline the brand name, or keep terms in a file outside this bucket.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`2-map-the-catalogs`,children:`2. Map the catalogs`}),`\n`,_jsxs(_components.p,{children:[`Create `,_jsx(_components.code,{children:`i18n.yml`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`yaml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`yaml`,children:_jsxs(_components.code,{language:`yaml`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`locales`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`en-US`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` targets`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`fr-FR`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`de-DE`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`buckets`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` fluent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` files`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` - `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`locales/{{source}}/messages.ftl`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` to`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`locales/{{target}}/messages.ftl`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`hyperlocalise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` project_id_env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`HYPERLOCALISE_PROJECT_ID`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` api_base_url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`https://hyperlocalise.com/api`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:` api_key_env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`HYPERLOCALISE_API_KEY`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`3-load-approved-files`,children:`3. Load approved files`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FluentBundle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FluentResource`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"@fluent/bundle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`readFileSync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"node:fs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`export`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` loadMessages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`locale`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` source`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` readFileSync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`locales/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`locale`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"/messages.ftl`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"utf8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` bundle`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FluentBundle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`locale`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` errors`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bundle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`addResource`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FluentResource`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`source`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`errors`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` >`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`errors`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`join`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bundle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Wrap the tree in `,_jsx(_components.code,{children:`LocalizationProvider`}),` when you use `,_jsx(_components.code,{children:`@fluent/react`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`4-push-and-review`,children:`4. Push and review`}),`\n`,_jsx(_components.p,{children:`After the source pull request merges:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`hl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` push`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Start generation through a `,_jsx(_components.strong,{children:`Source upload`}),` automation or `,_jsx(_components.strong,{children:`New Request`}),`. In `,_jsx(_components.strong,{children:`Content Editor`}),`, review:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`variables such as `,_jsx(_components.code,{children:`{ $name }`}),` and `,_jsx(_components.code,{children:`{ $count }`}),`;`]}),`\n`,_jsxs(_components.li,{children:[`select variants, including the `,_jsx(_components.code,{children:`*`}),` default;`]}),`\n`,_jsxs(_components.li,{children:[`attributes such as `,_jsx(_components.code,{children:`login.title`}),`;`]}),`\n`,_jsx(_components.li,{children:`message comments that explain where the copy appears.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Approve the translations before pulling them back.`}),`\n`,_jsxs(_components.p,{children:[`A select pattern stays one value. Translators may change the words inside `,_jsx(_components.code,{children:`[one]`}),` and `,_jsx(_components.code,{children:`*[other]`}),`. They must keep the variable names and a default variant.`]}),`\n`,_jsx(Heading,{level:`2`,id:`5-pull-and-validate-translations`,children:`5. Pull and validate translations`}),`\n`,_jsx(_components.p,{children:`Run:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`hl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` sync`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pull`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`hl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` check`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --bucket`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fluent`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --quiet`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`hl check`}),` reports missing target keys and placeholder mismatches on `,_jsx(_components.code,{children:`{ $name }`}),`. Fluent selectors are not ICU plural blocks, so do not expect `,_jsx(_components.code,{children:`icu_shape_mismatch`}),` or `,_jsx(_components.code,{children:`unreachable_plural_case`}),` to understand `,_jsx(_components.code,{children:`[one]`}),` / `,_jsx(_components.code,{children:`*[other]`}),`. Cover `,_jsx(_components.code,{children:`0`}),`, `,_jsx(_components.code,{children:`1`}),`, and several items in runtime tests:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` bundle`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` loadMessages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"fr-FR\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`expect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bundle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"filter-saved\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toBeDefined`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`expect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bundle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`formatPattern`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bundle`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getMessage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"filter-saved\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Inbox\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toMatch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D16969`},children:`/Inbox/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Open a translation pull request containing the pulled `,_jsx(_components.code,{children:`.ftl`}),` files.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsx(Heading,{level:`3`,id:`upload-fails-on-a-term`,children:`Upload fails on a term`}),`\n`,_jsxs(_components.p,{children:[`Remove `,_jsx(_components.code,{children:`-brand`}),` definitions and `,_jsx(_components.code,{children:`{ -brand }`}),` references from the mapped file. Fluent terms are unsupported.`]}),`\n`,_jsxs(Heading,{level:`3`,id:`a-new-title-attribute-disappeared-on-writeback`,children:[`A new `,_jsx(_components.code,{children:`.title`}),` attribute disappeared on writeback`]}),`\n`,_jsx(_components.p,{children:`Hyperlocalise cannot append a new attribute to a parent that already exists in the target template. Add the attribute to the source and target files together, or start from a target that does not yet contain that parent.`}),`\n`,_jsx(Heading,{level:`3`,id:`the-app-shows-the-message-id`,children:`The app shows the message id`}),`\n`,_jsxs(_components.p,{children:[`Confirm `,_jsx(_components.code,{children:`locales/en-US/messages.ftl`}),` contains the id, `,_jsx(_components.code,{children:`FluentBundle.addResource`}),` loaded that file without errors, and `,_jsx(_components.code,{children:`Localized`}),` uses the same id.`]}),`\n`,_jsx(Heading,{level:`3`,id:`placeholders-are-flagged-after-a-natural-translation`,children:`Placeholders are flagged after a natural translation`}),`\n`,_jsxs(_components.p,{children:[`Restore `,_jsx(_components.code,{children:`{ $name }`}),` exactly, including the dollar sign and spacing your source uses. Do not rewrite Fluent variables to ICU `,_jsx(_components.code,{children:`{name}`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`next`,children:`Next`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/platform/tutorials/github-localisation-workflow`,children:`GitHub localisation workflow`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/platform/tutorials/gettext-pot-po`,children:`gettext POT and PO`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/cli/reference/formats/fluent`,children:`Translate Fluent localization`})}),`\n`,_jsx(_components.li,{children:_jsxs(_components.a,{href:`/cli/commands/check`,children:[_jsx(_components.code,{children:`check`}),` reference`]})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Fluent localization","description":"Keep Mozilla Fluent .ftl catalogs in git, review messages and attributes in Platform, and load approved locales in Fluent.js or fluent-react.","href":"/platform/tutorials/fluent"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"1. Keep copy in Fluent","slug":"1-keep-copy-in-fluent","depth":2,"children":[]},{"title":"2. Map the catalogs","slug":"2-map-the-catalogs","depth":2,"children":[]},{"title":"3. Load approved files","slug":"3-load-approved-files","depth":2,"children":[]},{"title":"4. Push and review","slug":"4-push-and-review","depth":2,"children":[]},{"title":"5. Pull and validate translations","slug":"5-pull-and-validate-translations","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[{"title":"Upload fails on a term","slug":"upload-fails-on-a-term","depth":3,"children":[]},{"title":"A new .title attribute disappeared on writeback","slug":"a-new-title-attribute-disappeared-on-writeback","depth":3,"children":[]},{"title":"The app shows the message id","slug":"the-app-shows-the-message-id","depth":3,"children":[]},{"title":"Placeholders are flagged after a natural translation","slug":"placeholders-are-flagged-after-a-natural-translation","depth":3,"children":[]}]},{"title":"Next","slug":"next","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"quietcircles","siteName":"Hyperlocalise","title":"Fluent localization - Hyperlocalise","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/platform/tutorials/fluent","matchLevel":0},"zh":{"href":"/zh-CN","matchLevel":4},"vi":{"href":"/vi-VN","matchLevel":4}}},"lastModified":"2026-10-21T23:35:25.632Z","originalFileLocation":"platform/tutorials/fluent.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Keep Mozilla Fluent .ftl catalogs in git, review messages and attributes in Platform, and load approved locales in Fluent.js or fluent-react.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hyperlocalise\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Fluent localization - Hyperlocalise\">\u003cmeta data-mint-head property=\"og:description\" content=\"Keep Mozilla Fluent .ftl catalogs in git, review messages and attributes in Platform, and load approved locales in Fluent.js or fluent-react.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hyperlocalise Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://hyperlocalise.dev/platform/tutorials/fluent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://www.hyperlocalise.com/en/opengraph-image\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Fluent localization - Hyperlocalise\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Keep Mozilla Fluent .ftl catalogs in git, review messages and attributes in Platform, and load approved locales in Fluent.js or fluent-react.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://www.hyperlocalise.com/en/opengraph-image\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/quietcircles/1yzlBwttUHVM8B2H/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hyperlocalise\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0f766e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://hyperlocalise.dev/platform/tutorials/fluent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/platform/tutorials/fluent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.hyperlocalise.com/#organization\",\"name\":\"Hyperlocalise\",\"legalName\":\"Hyperlocalise Pty Ltd\",\"url\":\"https://www.hyperlocalise.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://www.hyperlocalise.com/images/logo/logomark-dark-mode.svg\"},\"sameAs\":[\"https://www.linkedin.com/company/hyperlocalise/\",\"https://github.com/hyperlocalise/hyperlocalise\"]},{\"@type\":\"WebSite\",\"@id\":\"https://hyperlocalise.dev#website\",\"name\":\"Hyperlocalise\",\"url\":\"https://hyperlocalise.dev\",\"publisher\":{\"@id\":\"https://www.hyperlocalise.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://hyperlocalise.dev/platform/tutorials/fluent#webpage\",\"url\":\"https://hyperlocalise.dev/platform/tutorials/fluent\",\"name\":\"Fluent localization\",\"description\":\"Keep Mozilla Fluent .ftl catalogs in git, review messages and attributes in Platform, and load approved locales in Fluent.js or fluent-react.\",\"dateModified\":\"2026-10-21T23:35:25.632Z\",\"isPartOf\":{\"@id\":\"https://hyperlocalise.dev#website\"},\"breadcrumb\":{\"@id\":\"https://hyperlocalise.dev/platform/tutorials/fluent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://hyperlocalise.dev/platform/tutorials/fluent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform guide\",\"item\":\"https://hyperlocalise.dev/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Developer integrations\",\"item\":\"https://hyperlocalise.dev/platform/developers/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Framework and repository guides\",\"item\":\"https://hyperlocalise.dev/platform/tutorials/github-localisation-workflow\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Fluent localization\",\"item\":\"https://hyperlocalise.dev/platform/tutorials/fluent\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://hyperlocalise.dev/platform/tutorials/fluent#article\",\"headline\":\"Fluent localization\",\"name\":\"Fluent localization\",\"description\":\"Keep Mozilla Fluent .ftl catalogs in git, review messages and attributes in Platform, and load approved locales in Fluent.js or fluent-react.\",\"url\":\"https://hyperlocalise.dev/platform/tutorials/fluent\",\"mainEntityOfPage\":{\"@id\":\"https://hyperlocalise.dev/platform/tutorials/fluent#webpage\"},\"image\":\"https://www.hyperlocalise.com/en/opengraph-image\",\"dateModified\":\"2026-10-21T23:35:25.632Z\",\"publisher\":{\"@id\":\"https://www.hyperlocalise.com/#organization\"},\"isPartOf\":{\"@id\":\"https://hyperlocalise.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hyperlocalise\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Hyperlocalise","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/hyperlocalise/hyperlocalise"},{"anchor":"Issues","icon":"circle-exclamation","href":"https://github.com/hyperlocalise/hyperlocalise/issues"}]},"languages":[{"language":"en","products":[{"product":"Platform","icon":"cloud","description":"Customer guides for translation, review, automation, and workspace management.","groups":[{"group":"Platform guide","pages":[{"group":"Getting started","expanded":true,"pages":[{"title":"Hyperlocalise Platform: multilingual content operations","sidebarTitle":"Introduction","href":""},{"title":"For localization managers","sidebarTitle":"For managers","href":"/platform/getting-started/managers"},{"title":"For translators and reviewers","sidebarTitle":"For translators and reviewers","href":"/platform/getting-started/translators"},{"title":"For developers","href":"/platform/getting-started/developers"},{"title":"Your first translation","href":"/platform/getting-started"},{"title":"Supported file formats in Hyperlocalise Platform","sidebarTitle":"Supported formats","href":"/platform/file-formats"},{"title":"Moving to Hyperlocalise","href":"/platform/getting-started/moving-to-hyperlocalise"}]},{"group":"Translation process","expanded":false,"pages":[{"title":"Choose a translation workflow","sidebarTitle":"Translation workflows","href":"/platform/translation/workflows"},{"title":"Start a translation","href":"/platform/translation/start"},{"title":"Review translations","href":"/platform/cat"},{"title":"Merge strings","sidebarTitle":"Merge strings","href":"/platform/translation/merge-strings"},{"title":"Track and recover jobs","sidebarTitle":"Jobs and recovery","href":"/platform/translation/jobs"},{"title":"Resolve translation issues","sidebarTitle":"Translation issues","href":"/platform/translation/issues"}]},{"group":"Project management","expanded":false,"pages":[{"title":"Create a project","href":"/platform/projects/create-project"},{"title":"Manage project settings","sidebarTitle":"Project settings","href":"/platform/projects/settings"},{"title":"Manage project languages","sidebarTitle":"Languages","href":"/platform/projects/languages"},{"group":"Sources","expanded":false,"pages":[{"title":"Upload and organize source files","sidebarTitle":"Upload source files","href":"/platform/projects/files"},{"title":"Update source content safely","sidebarTitle":"Update source content","href":"/platform/guides/update-source-content"}]},{"group":"Translations","expanded":false,"pages":[{"title":"Download translated files","href":"/platform/translation/download"},{"title":"Prepare a review handoff","sidebarTitle":"Export segments for review","href":"/platform/guides/review-handoff"},{"title":"Import existing translations","href":"/platform/translation/import"}]},{"title":"Manage project access","sidebarTitle":"Project access","href":"/platform/projects/access"}]},{"group":"Language resources","expanded":false,"pages":[{"title":"Language resources","href":"/platform/knowledge"},{"title":"Add translation guidelines","href":"/platform/knowledge/guidelines"},{"title":"Glossary import and export","href":"/platform/glossary-import-export"},{"title":"Translation memory import and export","href":"/platform/translation-memory-import-export"}]},{"group":"Automations","expanded":false,"pages":[{"title":"Automate your work","href":"/platform/automations"},{"title":"Create a translation automation","href":"/platform/automation/create-automation"},{"title":"Sync content with a repository","href":"/platform/automation/content-sync"},{"title":"Visual workflows","href":"/platform/visual-workflows"},{"title":"Build reliable workflow branches and retries","href":"/platform/guides/workflow-data-and-retries"},{"title":"Fix automation and sync problems","href":"/platform/help/automations"}]},{"group":"Integrations","expanded":false,"pages":[{"title":"Connect your tools","href":"/platform/integrations"},{"title":"TMS-agnostic localization with Hyperlocalise Platform","sidebarTitle":"TMS integrations","href":"/platform/tms"},{"title":"Connect GitHub","href":"/platform/connections/github"},{"title":"Localize Intercom Help Center articles","href":"/platform/connections/intercom"},{"title":"Localize Sanity documents (automation)","href":"/platform/connections/sanity"},{"title":"Localize Sanity Studio documents","href":"/platform/connections/sanity-studio-plugin"},{"title":"Localize Webflow CMS items (automation)","href":"/platform/connections/webflow"},{"title":"Localize Braze","href":"/platform/connections/braze"},{"title":"Localize Customer.io","href":"/platform/connections/customer-io"},{"title":"Localize Iterable","href":"/platform/connections/iterable"},{"title":"Localize Loops","href":"/platform/connections/loops"},{"title":"Localize HubSpot","href":"/platform/connections/hubspot"},{"title":"Localize Mailchimp","href":"/platform/connections/mailchimp"},{"title":"Localize Canva","href":"/platform/connections/canva"},{"title":"Localize Figma","href":"/platform/connections/figma"},{"title":"Connect design tools","href":"/platform/connections/design-tools"}]},{"group":"Developer integrations","expanded":false,"pages":[{"title":"Developer integrations","href":"/platform/developers/overview"},{"title":"Connect the CLI","href":"/platform/cli"},{"title":"Choose an API","sidebarTitle":"API overview","href":"/platform/developers/api-overview"},{"title":"Files and translation jobs API","sidebarTitle":"Files and jobs","href":"/platform/api"},{"title":"Projects and Queries API","href":"/platform/developers/projects-and-queries"},{"title":"MCP server","href":"/platform/mcp"},{"title":"MCP tool reference","href":"/platform/developers/mcp-tools"},{"title":"Job webhooks","sidebarTitle":"Webhooks","href":"/platform/developers/webhooks"},{"group":"Framework and repository guides","pages":[{"title":"GitHub localisation workflow","href":"/platform/tutorials/github-localisation-workflow"},{"title":"React Intl and ICU","href":"/platform/tutorials/react-intl-icu"},{"title":"Vue and vue-i18n","href":"/platform/tutorials/vue-i18n"},{"title":"i18next and interpolation placeholders","href":"/platform/tutorials/i18next"},{"title":"next-intl and ICU messages","href":"/platform/tutorials/next-intl"},{"title":"iOS Strings","href":"/platform/tutorials/ios-strings"},{"title":"Android string resources","href":"/platform/tutorials/android-string-resources"},{"title":"Flutter ARB","href":"/platform/tutorials/flutter-arb"},{"title":"Gettext POT and PO","description":"Extract backend messages to a POT template, maintain PO catalogs, including Unreal Engine rich-text tags, and review translations in Platform.","href":"/platform/tutorials/gettext-pot-po"},{"title":"Fluent localization","href":"/platform/tutorials/fluent"},{"title":"XLIFF","description":"Sync XLIFF 1.2 or 2.x files, review units and inline placeholders, and return translated interchange files.","href":"/platform/tutorials/xliff"},{"title":"Qt Linguist TS","href":"/platform/tutorials/qt-linguist"},{"title":".NET RESX","href":"/platform/tutorials/dotnet-resx"}]}]},{"group":"Website and market research","expanded":false,"pages":[{"title":"About Domains","href":"/platform/domains"},{"title":"Tutorial: from audit to verified domain","href":"/platform/research/audit-to-domain-tutorial"},{"title":"Verify a website domain","href":"/platform/research/verify-domain"},{"title":"Research keywords and track rankings","href":"/platform/research/keywords-and-ranks"},{"title":"About the localisation audit","href":"/platform/research/localisation-audit"},{"title":"Localisation audit checks","href":"/platform/research/localisation-audit-checks"}]},{"group":"Workspace and account","expanded":false,"pages":[{"title":"Workspace administration","href":"/platform/settings"},{"title":"Invite teammates and manage access","href":"/platform/workspace/members"},{"title":"Roles and permissions","href":"/platform/workspace/roles"},{"title":"Reports","href":"/platform/workspace/reports"},{"title":"Manage billing and usage","href":"/platform/workspace/billing"}]},{"group":"Troubleshooting and support","expanded":false,"pages":[{"title":"Troubleshooting and support","href":"/platform/help/overview"},{"title":"Fix upload and file problems","href":"/platform/help/uploads"},{"title":"Fix failed or missing translations","href":"/platform/help/translation-failures"},{"title":"Improve translation quality","href":"/platform/help/quality"},{"title":"Fix connection and token problems","href":"/platform/help/connections"},{"title":"Fix workspace and project access","href":"/platform/help/access"},{"title":"Contact support","href":"/platform/help/contact-support"}]},{"group":"Release notes","expanded":false,"pages":[{"title":"Release notes","href":"/platform/release-notes"}]}]}]},{"product":"CLI","icon":"terminal","description":"Local generation, CI, and sync with Platform or a TMS","pages":[{"title":"CLI","href":"/cli"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh-CN"}]},{"language":"vi","pages":[{"title":"vi","href":"/vi-VN"}]}]},"basePath":"","title":"Fluent localization - Hyperlocalise","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":[],"chunks":[]}