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'
|
} from 'shared/components/workbench/menus/core-settings/index.mjs'
|
||||||
import { UiSettings, ns as uiNs } from 'shared/components/workbench/menus/ui-settings/index.mjs'
|
import { UiSettings, ns as uiNs } from 'shared/components/workbench/menus/ui-settings/index.mjs'
|
||||||
import { useTranslation } from 'next-i18next'
|
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 { SettingsIcon, OptionsIcon, DesktopIcon } from 'shared/components/icons.mjs'
|
||||||
import { Accordion } from 'shared/components/accordion.mjs'
|
import { Accordion } from 'shared/components/accordion.mjs'
|
||||||
import {
|
import {
|
||||||
FlagsAccordionTitle,
|
FlagsAccordionTitle,
|
||||||
FlagsAccordionEntries,
|
FlagsAccordionEntries,
|
||||||
} from 'shared/components/workbench/views/flags.mjs'
|
} 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 = ({
|
export const DraftMenu = ({
|
||||||
design,
|
design,
|
||||||
|
@ -33,7 +34,7 @@ export const DraftMenu = ({
|
||||||
setView,
|
setView,
|
||||||
flags = false,
|
flags = false,
|
||||||
}) => {
|
}) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation(nsMerge(ns, patternNsFromPatternConfig(patternConfig)))
|
||||||
const control = account.control
|
const control = account.control
|
||||||
const menuProps = {
|
const menuProps = {
|
||||||
design,
|
design,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue