@cookieyes/translations
v0.1.1
Published
Curated translation catalog for the CookieYes consent SDK. Import only the locales you need — each is its own sub-path so unused languages don't bundle.
Downloads
61
Readme
@cookieyes/translations
Curated translation catalog for the CookieYes Consent SDK. Each locale is its own sub-path export, so importing one language never bundles the others.
Install
npm install @cookieyes/translationsUsage
Import only the locales you need (each is a named export):
import { en } from "@cookieyes/translations/en";
import { fr } from "@cookieyes/translations/fr";
// Pass into the SDK as the translation map, e.g. with the builder:
// createCookieYes().i18n({ messages: { en, fr } }).mount();
// or with the core runtime:
// getOrCreateConsentRuntime({ mode: "offline", i18n: { messages: { en, fr } } });Available sub-paths: ./en, ./es, ./fr, ./de, ./it. The package root
(@cookieyes/translations) re-exports shared types only — locale tables are not
re-exported there, so importing one language never bundles the others.
License
MIT © CookieYes
