mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-17 18:51:14 +01:00
🌐 Fix translation namespaces
This commit is contained in:
@@ -23,6 +23,7 @@ import { ManageLayout } from '~/components/layout/Templates/ManageLayout';
|
||||
import { getServerAuthSession } from '~/server/auth';
|
||||
import { getServerSideTranslations } from '~/tools/server/getServerSideTranslations';
|
||||
import { api } from '~/utils/api';
|
||||
import { manageNamespaces } from '~/tools/server/translation-namespaces';
|
||||
|
||||
const ManageUsersPage = () => {
|
||||
const [activePage, setActivePage] = useState(0);
|
||||
@@ -149,7 +150,7 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => {
|
||||
}
|
||||
|
||||
const translations = await getServerSideTranslations(
|
||||
['common'],
|
||||
manageNamespaces,
|
||||
ctx.locale,
|
||||
undefined,
|
||||
undefined
|
||||
|
||||
@@ -44,7 +44,7 @@ export const boardNamespaces = [
|
||||
export const manageNamespaces = [
|
||||
'user/preferences',
|
||||
'user/manage',
|
||||
'user/invite',
|
||||
'user/invites',
|
||||
'user/create',
|
||||
'boards/manage',
|
||||
'zod',
|
||||
|
||||
Reference in New Issue
Block a user