mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-03 21:15:23 +02:00
feat(i18n): add i18n support
This commit is contained in:
6
apps/dokploy/utils/i18n.ts
Normal file
6
apps/dokploy/utils/i18n.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { NextApiRequestCookies } from "next/dist/server/api-utils";
|
||||
|
||||
export function getLocale(cookies: NextApiRequestCookies) {
|
||||
const locale = cookies.DOKPLOY_LOCALE ?? "en";
|
||||
return locale;
|
||||
}
|
||||
Reference in New Issue
Block a user