page-redesign #22

Merged
Chaoscaot merged 9 commits from page-redesign into master 2026-04-23 12:23:27 +02:00
3 changed files with 3 additions and 23 deletions
Showing only changes of commit c41b1f9daa - Show all commits

View File

@@ -24,4 +24,4 @@ export default defineAstroI18nConfig({
"passwort-setzen": "set-password",
},
},
});
});

View File

@@ -47,7 +47,6 @@ export default defineConfig({
configFile: "./tailwind.config.js",
applyBaseStyles: false,
}),
configureI18n(),
sitemap({
i18n: {
defaultLocale: "en",

View File

@@ -17,25 +17,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {l as proxyL} from "astro-i18n";
import { l as proxyL } from "astro-i18n";
const locales = [
"en",
"de",
];
export const l = (route: string) => {
const transPath = proxyL(route);
if (import.meta.env.DEV) {
return transPath;
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const [_, locale, ...rest] = transPath.split("/");
if (locales.includes(locale)) {
return "/" + rest.join("/");
}
return transPath;
};
export const l = proxyL;