monorepo-microservice-rbac/apps/aorta/src/App.tsx

29 lines
667 B
TypeScript
Raw Normal View History

2023-08-27 14:37:59 +08:00
import { DomainServiceProvider } from "./context/domainService";
import { defaultLang, theme } from "./constant";
import { useTracker } from "./hook/useTracker";
import { RouterElements } from "./router";
import { ConfigProvider } from "antd";
import { useI18n } from "@tavi/i18n";
import "./styles/app.less";
/**
*
*/
export const { i18n } = useI18n({
loadPath: "/locales/{{lng}}/{{ns}}.json",
fallbackLng: defaultLang,
debug: false,
});
export const App = () => {
useTracker();
return (
<DomainServiceProvider>
<ConfigProvider theme={theme}>
<RouterElements />
</ConfigProvider>
</DomainServiceProvider>
);
};