1
0
Fork 0

fix(org): Use nsMerge to merge namespaces

This commit is contained in:
joostdecock 2023-08-26 09:38:59 +02:00
parent 62f6cc6ac4
commit 6ca8a2c51e

View file

@ -1,6 +1,7 @@
// Dependencies // Dependencies
import dynamic from 'next/dynamic' import dynamic from 'next/dynamic'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations' import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
import { nsMerge } from 'shared/utils.mjs'
// Hooks // Hooks
import { useTranslation } from 'next-i18next' import { useTranslation } from 'next-i18next'
// Components // Components
@ -9,7 +10,7 @@ import { ns as authNs } from 'shared/components/wrappers/auth/index.mjs'
import { ns as apikeysNs } from 'shared/components/account/apikeys.mjs' import { ns as apikeysNs } from 'shared/components/account/apikeys.mjs'
// Translation namespaces used on this page // Translation namespaces used on this page
const ns = [...new Set([...apikeysNs, ...authNs, ...pageNs])] const ns = nsMerge(apikeysNs, authNs, pageNs)
/* /*
* Some things should never generated as SSR * Some things should never generated as SSR