← All @molecule/* packages · App templates
@molecule/app-locales-legal-defaultFeature · locales · App (browser) · v1.0.1 · Apache-2.0
Default privacy policy + terms of service HTML content in 74 languages, with {{appName}} interpolation. Replaces per-app locales/<lang>/privacyPolicy.ts and termsOfService.ts files that ship byte-identical across the fleet.
npm install @molecule/app-locales-legal-default@molecule/app-locales-legal-default is a ready-made locales feature for the app (browser) side. It composes the core interfaces it needs, so it works with whichever providers your app has bonded.
import * as legal from '@molecule/app-locales-legal-default'
// legal.en === { 'content.privacyPolicy': '...', 'content.termsOfService': '...' }Works with: @molecule/app-i18n
Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit
src/index.tsJSDoc, not this file.
@molecule/app-locales-legal-default — shared privacy/terms HTML in 74 languages.
Provides default privacy policy + terms of service content for the
footer modals. Identical across all 133 fleet apps prior to extraction,
with {{appName}} placeholders interpolated by the i18n provider.
import * as legal from '@molecule/app-locales-legal-default'
// legal.en === { 'content.privacyPolicy': '...', 'content.termsOfService': '...' }
feature
npm install @molecule/app-locales-legal-default @molecule/app-i18n
LegalContentDefault legal content shipped by the molecule fleet — privacy policy and terms of service.
Values are raw HTML strings that get rendered via dangerouslySetInnerHTML
inside the Footer's Privacy and Terms modals. {{appName}} placeholders
are interpolated at render time by the i18n provider.
interface LegalContent {
/** Privacy policy HTML (interpolates `{{appName}}`). */
'content.privacyPolicy': string
/** Terms of service HTML (interpolates `{{appName}}`). */
'content.termsOfService': string
}
loadContent(module)Register a legal-content module (privacyPolicy or termsOfService)
and sync the current locale's content into the i18n provider.
Content comes from this package's per-locale exports; future
locale changes re-fetch automatically via registerContent.
function loadContent(module: string): Promise<void>
afLegal content for af.
const af: LegalContent
amLegal content for am.
const am: LegalContent
arLegal content for ar.
const ar: LegalContent
azLegal content for az.
const az: LegalContent
bgLegal content for bg.
const bg: LegalContent
bnLegal content for bn.
const bn: LegalContent
bsLegal content for bs.
const bs: LegalContent
caLegal content for ca.
const ca: LegalContent
csLegal content for cs.
const cs: LegalContent
cyLegal content for cy.
const cy: LegalContent
daLegal content for da.
const da: LegalContent
deLegal content for de.
const de: LegalContent
elLegal content for el.
const el: LegalContent
enLegal content for en.
const en: LegalContent
esLegal content for es.
const es: LegalContent
etLegal content for et.
const et: LegalContent
euLegal content for eu.
const eu: LegalContent
faLegal content for fa.
const fa: LegalContent
fiLegal content for fi.
const fi: LegalContent
filLegal content for fil.
const fil: LegalContent
frLegal content for fr.
const fr: LegalContent
gaLegal content for ga.
const ga: LegalContent
glLegal content for gl.
const gl: LegalContent
guLegal content for gu.
const gu: LegalContent
heLegal content for he.
const he: LegalContent
hiLegal content for hi.
const hi: LegalContent
hrLegal content for hr.
const hr: LegalContent
huLegal content for hu.
const hu: LegalContent
hyLegal content for hy.
const hy: LegalContent
idLegal content for id.
const id: LegalContent
isLegal content for is.
const is: LegalContent
itLegal content for it.
const it: LegalContent
jaLegal content for ja.
const ja: LegalContent
kaLegal content for ka.
const ka: LegalContent
kkLegal content for kk.
const kk: LegalContent
kmLegal content for km.
const km: LegalContent
knLegal content for kn.
const kn: LegalContent
koLegal content for ko.
const ko: LegalContent
loLegal content for lo.
const lo: LegalContent
ltLegal content for lt.
const lt: LegalContent
lvLegal content for lv.
const lv: LegalContent
mkLegal content for mk.
const mk: LegalContent
mlLegal content for ml.
const ml: LegalContent
mnLegal content for mn.
const mn: LegalContent
mrLegal content for mr.
const mr: LegalContent
msLegal content for ms.
const ms: LegalContent
mtLegal content for mt.
const mt: LegalContent
myLegal content for my.
const my: LegalContent
nbLegal content for nb.
const nb: LegalContent
neLegal content for ne.
const ne: LegalContent
nlLegal content for nl.
const nl: LegalContent
paLegal content for pa.
const pa: LegalContent
plLegal content for pl.
const pl: LegalContent
ptLegal content for pt.
const pt: LegalContent
roLegal content for ro.
const ro: LegalContent
ruLegal content for ru.
const ru: LegalContent
siLegal content for si.
const si: LegalContent
skLegal content for sk.
const sk: LegalContent
slLegal content for sl.
const sl: LegalContent
sqLegal content for sq.
const sq: LegalContent
srLegal content for sr.
const sr: LegalContent
svLegal content for sv.
const sv: LegalContent
swLegal content for sw.
const sw: LegalContent
taLegal content for ta.
const ta: LegalContent
teLegal content for te.
const te: LegalContent
thLegal content for th.
const th: LegalContent
trLegal content for tr.
const tr: LegalContent
ukLegal content for uk.
const uk: LegalContent
urLegal content for ur.
const ur: LegalContent
uzLegal content for uz.
const uz: LegalContent
viLegal content for vi.
const vi: LegalContent
zhLegal content for zh.
const zh: LegalContent
zhTWLegal content for zh-TW.
const zhTW: LegalContent
zuLegal content for zu.
const zu: LegalContent
Peer dependencies:
@molecule/app-i18n ^1.0.1@molecule/app-i18n