perf(proxy): isolate settings database reads

This commit is contained in:
ajnart committed 2026-07-29 06:47:07 +02:00
1 parent add6ee56ba
commit f8d8a09c56
17 files changed
+604 -18

No files matched your search

+5 -5
View File
@@ -1,6 +1,9 @@
import type { MRT_Localization } from "mantine-react-table";
import { objectKeys } from "@homarr/common";
import type { SupportedLanguage } from "./languages";
export { supportedLanguages } from "./languages";
export type { SupportedLanguage } from "./languages";
export const localeConfigurations = {
ca: {
@@ -433,10 +436,7 @@ export type LanguageIconDefinition =
url: string;
};
export const supportedLanguages = objectKeys(localeConfigurations);
export type SupportedLanguage = (typeof supportedLanguages)[number];
export const fallbackLocale = "en" satisfies SupportedLanguage;
export { fallbackLocale } from "./languages";
export const isLocaleRTL = (locale: SupportedLanguage) =>
"isRTL" in localeConfigurations[locale] && localeConfigurations[locale].isRTL;