fix(shared): Load collection translations
This commit is contained in:
parent
d7d771449c
commit
2e13c9d5ec
1 changed files with 4 additions and 3 deletions
|
@ -9,15 +9,16 @@ import {
|
|||
} from 'shared/components/workbench/menus/core-settings/index.mjs'
|
||||
import { UiSettings, ns as uiNs } from 'shared/components/workbench/menus/ui-settings/index.mjs'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
import { nsMerge } from 'shared/utils.mjs'
|
||||
import { patternNsFromPatternConfig, nsMerge } from 'shared/utils.mjs'
|
||||
import { SettingsIcon, OptionsIcon, DesktopIcon } from 'shared/components/icons.mjs'
|
||||
import { Accordion } from 'shared/components/accordion.mjs'
|
||||
import {
|
||||
FlagsAccordionTitle,
|
||||
FlagsAccordionEntries,
|
||||
} from 'shared/components/workbench/views/flags.mjs'
|
||||
import { collection } from 'shared/hooks/use-design.mjs'
|
||||
|
||||
export const ns = nsMerge(coreMenuNs, designMenuNs, uiNs)
|
||||
export const ns = nsMerge(coreMenuNs, designMenuNs, uiNs, collection)
|
||||
|
||||
export const DraftMenu = ({
|
||||
design,
|
||||
|
@ -33,7 +34,7 @@ export const DraftMenu = ({
|
|||
setView,
|
||||
flags = false,
|
||||
}) => {
|
||||
const { t } = useTranslation()
|
||||
const { t } = useTranslation(nsMerge(ns, patternNsFromPatternConfig(patternConfig)))
|
||||
const control = account.control
|
||||
const menuProps = {
|
||||
design,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue