mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-28 00:47:54 +01:00
Add Persian locale
This commit is contained in:
1 parent
568c105945
commit
0e152e8afe
14 files changed
+880
-11
No files matched your search
+14
-6
@@ -1,13 +1,21 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import App from "src/App.tsx";
|
||||
import { getLocale, isRTLLocale } from "src/locale";
|
||||
|
||||
import "@tabler/core/dist/css/tabler.min.css";
|
||||
import "@tabler/core/dist/js/tabler.min.js";
|
||||
import "./App.css";
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
);
|
||||
const renderApp = () => {
|
||||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
);
|
||||
};
|
||||
|
||||
const tablerStyles = isRTLLocale(getLocale())
|
||||
? import("@tabler/core/dist/css/tabler.rtl.min.css")
|
||||
: import("@tabler/core/dist/css/tabler.min.css");
|
||||
|
||||
void tablerStyles.then(renderApp);
|
||||
Reference in new issue
Block a user