Merge branch 'canary' of https://github.com/kdurek/dokploy into feat/server-ip

This commit is contained in:
Krzysztof Durek
2024-11-17 22:08:00 +01:00
13 changed files with 37 additions and 27 deletions

View File

@@ -4,3 +4,12 @@ export function getLocale(cookies: NextApiRequestCookies) {
const locale = cookies.DOKPLOY_LOCALE ?? "en";
return locale;
}
// libs/i18n.js
import { serverSideTranslations as originalServerSideTranslations } from "next-i18next/serverSideTranslations";
import nextI18NextConfig from "../next-i18next.config.cjs";
export const serverSideTranslations = (
locale: string,
namespaces = ["common"],
) => originalServerSideTranslations(locale, namespaces, nextI18NextConfig);