Complete residential site build with Docker Compose & Gitea Actions deployment

This commit is contained in:
CalebLewallen
2026-05-13 17:31:20 -04:00
parent f9c4e13a50
commit 3c22823f72
19354 changed files with 2097331 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { getFetchStateFromAPIContext } from "../core/fetch/fetch-state.js";
import { I18n } from "../core/i18n/handler.js";
function createI18nMiddleware(i18n, base, trailingSlash, format) {
if (!i18n) return (_, next) => next();
const handler = new I18n(i18n, base, trailingSlash, format);
return async (context, next) => {
const response = await next();
return handler.finalize(getFetchStateFromAPIContext(context), response);
};
}
export {
createI18nMiddleware
};