🌐 Fix translation namespaces

This commit is contained in:
Manuel
2023-08-05 23:09:07 +02:00
parent 14c366bddd
commit 4b2c5f2816
2 changed files with 3 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ import { ManageLayout } from '~/components/layout/Templates/ManageLayout';
import { getServerAuthSession } from '~/server/auth'; import { getServerAuthSession } from '~/server/auth';
import { getServerSideTranslations } from '~/tools/server/getServerSideTranslations'; import { getServerSideTranslations } from '~/tools/server/getServerSideTranslations';
import { api } from '~/utils/api'; import { api } from '~/utils/api';
import { manageNamespaces } from '~/tools/server/translation-namespaces';
const ManageUsersPage = () => { const ManageUsersPage = () => {
const [activePage, setActivePage] = useState(0); const [activePage, setActivePage] = useState(0);
@@ -149,7 +150,7 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => {
} }
const translations = await getServerSideTranslations( const translations = await getServerSideTranslations(
['common'], manageNamespaces,
ctx.locale, ctx.locale,
undefined, undefined,
undefined undefined

View File

@@ -44,7 +44,7 @@ export const boardNamespaces = [
export const manageNamespaces = [ export const manageNamespaces = [
'user/preferences', 'user/preferences',
'user/manage', 'user/manage',
'user/invite', 'user/invites',
'user/create', 'user/create',
'boards/manage', 'boards/manage',
'zod', 'zod',