Copy & locales
Override any string
Section titled “Override any string”Pass a text object to replace the built-in English copy. Any key you omit keeps
its default:
lightning("init", { text: { bannerTitle: "We value your privacy", bannerBody: "We use cookies to improve your experience…", acceptAll: "Accept all", rejectAll: "Reject all", customize: "Customise", save: "Save preferences", preferencesTitle: "Privacy preferences", downloadReceipt: "Download receipt", // …doNotSell, poweredBy, preferencesBody },});Per-category labels & descriptions
Section titled “Per-category labels & descriptions”lightning("init", { text: { categories: { statistics: { label: "Analytics", description: "Helps us understand how the site is used.", }, }, },});Locale
Section titled “Locale”lightning("init", { locale: "fr-FR" }); // BCP-47; defaults to the document language