(react) export locale in package

We want to be able to import the locales from the consumer in order
to customize them.
This commit is contained in:
Nathan Vasse
2025-02-25 15:01:24 +01:00
committed by Jean-Baptiste PENRATH
parent b1850c029a
commit a343db2b0e
2 changed files with 8 additions and 0 deletions

View File

@@ -36,3 +36,6 @@ export const defaultTokens = tokens.themes.default;
export type Configuration = {
themes: Record<string, PartialExtendableNested<typeof tokens.themes.default>>;
};
export { default as enUS } from "./locales/en-US.json";
export { default as frFR } from "./locales/fr-FR.json";