Files
ETB/ETB-FrontEnd/node_modules/@mui/x-charts/esm/locales/utils/getChartsLocalization.js
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

17 lines
511 B
JavaScript

import _extends from "@babel/runtime/helpers/esm/extends";
/**
* Helper to pass translation to all charts thanks to the MUI theme.
* @param chartsTranslations The translation object.
* @returns an object to pass the translation by using the MUI theme default props
*/
export const getChartsLocalization = chartsTranslations => {
return {
components: {
MuiChartsLocalizationProvider: {
defaultProps: {
localeText: _extends({}, chartsTranslations)
}
}
}
};
};