mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-30 06:41:51 +00:00
Closes #29750. Reporter flagged that 繁體中文 displayed the TW flag instead of the PRC flag. Rather than picking a side, drop the language-flag pairings entirely — languages aren't countries (English ≠ GB, Portuguese ≠ PT, Mandarin variants ≠ any single jurisdiction), and endonyms are unambiguous. - LOCALE_META: strip flagCountryCode field - LanguageSwitcher: remove LocaleFlagIcon component + both call sites - main.tsx: drop flag-icons CSS import - package.json: uninstall flag-icons
25 lines
829 B
TypeScript
25 lines
829 B
TypeScript
import { createRoot } from "react-dom/client";
|
|
import { BrowserRouter } from "react-router-dom";
|
|
import "./index.css";
|
|
import App from "./App";
|
|
import { SystemActionsProvider } from "./contexts/SystemActions";
|
|
import { I18nProvider } from "./i18n";
|
|
import { exposePluginSDK } from "./plugins";
|
|
import { ThemeProvider } from "./themes";
|
|
import { HERMES_BASE_PATH } from "./lib/api";
|
|
|
|
// Expose the plugin SDK before rendering so plugins loaded via <script>
|
|
// can access React, components, etc. immediately.
|
|
exposePluginSDK();
|
|
|
|
createRoot(document.getElementById("root")!).render(
|
|
<BrowserRouter basename={HERMES_BASE_PATH || undefined}>
|
|
<I18nProvider>
|
|
<ThemeProvider>
|
|
<SystemActionsProvider>
|
|
<App />
|
|
</SystemActionsProvider>
|
|
</ThemeProvider>
|
|
</I18nProvider>
|
|
</BrowserRouter>,
|
|
);
|