feat: more home page

This commit is contained in:
TrèsAbhi committed 2026-01-09 13:57:28 -06:00
1 parent 44203223fd
commit c5f5f69fd6
11 files changed
+60 -10

No files matched your search

+4 -2
View File
@@ -14,7 +14,9 @@ if (typeof window !== "undefined") {
throw new Error("ServerAPI is being evaluated in the browser");
}
const globbedStrings = import.meta.glob("../../../../i18n/strings/*.json");
const globbedStrings = import.meta.glob("../../../../i18n/strings/*.json", {
import: "default",
});
interface LocalizationConfig {
namespaces: string[];
@@ -72,7 +74,7 @@ export class ServerAPI extends AbstractAPI {
Object.assign(
strings,
await fetch(
`${remoteStorage.url}/${remoteStorage.relative_path}/${namespace}/${locale}.yaml`
`${remoteStorage.url}${remoteStorage.relative_path}/${namespace}/${locale}.yaml`
)
.then((response) => response.text())
.then((text) => {