← All @molecule/* packages · App templates

@molecule/app-locales-legal-default

Feature · 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

npm · Source on GitHub

How it works

@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

Reference

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.ts JSDoc, 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.

Quick Start

import * as legal from '@molecule/app-locales-legal-default'

// legal.en === { 'content.privacyPolicy': '...', 'content.termsOfService': '...' }

Type

feature

Installation

npm install @molecule/app-locales-legal-default @molecule/app-i18n

API

Interfaces

LegalContent

Default 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
}

Functions

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>

Constants

af

Legal content for af.

const af: LegalContent

am

Legal content for am.

const am: LegalContent

ar

Legal content for ar.

const ar: LegalContent

az

Legal content for az.

const az: LegalContent

bg

Legal content for bg.

const bg: LegalContent

bn

Legal content for bn.

const bn: LegalContent

bs

Legal content for bs.

const bs: LegalContent

ca

Legal content for ca.

const ca: LegalContent

cs

Legal content for cs.

const cs: LegalContent

cy

Legal content for cy.

const cy: LegalContent

da

Legal content for da.

const da: LegalContent

de

Legal content for de.

const de: LegalContent

el

Legal content for el.

const el: LegalContent

en

Legal content for en.

const en: LegalContent

es

Legal content for es.

const es: LegalContent

et

Legal content for et.

const et: LegalContent

eu

Legal content for eu.

const eu: LegalContent

fa

Legal content for fa.

const fa: LegalContent

fi

Legal content for fi.

const fi: LegalContent

fil

Legal content for fil.

const fil: LegalContent

fr

Legal content for fr.

const fr: LegalContent

ga

Legal content for ga.

const ga: LegalContent

gl

Legal content for gl.

const gl: LegalContent

gu

Legal content for gu.

const gu: LegalContent

he

Legal content for he.

const he: LegalContent

hi

Legal content for hi.

const hi: LegalContent

hr

Legal content for hr.

const hr: LegalContent

hu

Legal content for hu.

const hu: LegalContent

hy

Legal content for hy.

const hy: LegalContent

id

Legal content for id.

const id: LegalContent

is

Legal content for is.

const is: LegalContent

it

Legal content for it.

const it: LegalContent

ja

Legal content for ja.

const ja: LegalContent

ka

Legal content for ka.

const ka: LegalContent

kk

Legal content for kk.

const kk: LegalContent

km

Legal content for km.

const km: LegalContent

kn

Legal content for kn.

const kn: LegalContent

ko

Legal content for ko.

const ko: LegalContent

lo

Legal content for lo.

const lo: LegalContent

lt

Legal content for lt.

const lt: LegalContent

lv

Legal content for lv.

const lv: LegalContent

mk

Legal content for mk.

const mk: LegalContent

ml

Legal content for ml.

const ml: LegalContent

mn

Legal content for mn.

const mn: LegalContent

mr

Legal content for mr.

const mr: LegalContent

ms

Legal content for ms.

const ms: LegalContent

mt

Legal content for mt.

const mt: LegalContent

my

Legal content for my.

const my: LegalContent

nb

Legal content for nb.

const nb: LegalContent

ne

Legal content for ne.

const ne: LegalContent

nl

Legal content for nl.

const nl: LegalContent

pa

Legal content for pa.

const pa: LegalContent

pl

Legal content for pl.

const pl: LegalContent

pt

Legal content for pt.

const pt: LegalContent

ro

Legal content for ro.

const ro: LegalContent

ru

Legal content for ru.

const ru: LegalContent

si

Legal content for si.

const si: LegalContent

sk

Legal content for sk.

const sk: LegalContent

sl

Legal content for sl.

const sl: LegalContent

sq

Legal content for sq.

const sq: LegalContent

sr

Legal content for sr.

const sr: LegalContent

sv

Legal content for sv.

const sv: LegalContent

sw

Legal content for sw.

const sw: LegalContent

ta

Legal content for ta.

const ta: LegalContent

te

Legal content for te.

const te: LegalContent

th

Legal content for th.

const th: LegalContent

tr

Legal content for tr.

const tr: LegalContent

uk

Legal content for uk.

const uk: LegalContent

ur

Legal content for ur.

const ur: LegalContent

uz

Legal content for uz.

const uz: LegalContent

vi

Legal content for vi.

const vi: LegalContent

zh

Legal content for zh.

const zh: LegalContent

zhTW

Legal content for zh-TW.

const zhTW: LegalContent

zu

Legal content for zu.

const zu: LegalContent

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-i18n ^1.0.1

Runtime Dependencies

  • @molecule/app-i18n