|
@@ -8,6 +8,7 @@ import type { SSRConfig, UserConfig } from 'next-i18next';
|
|
|
|
|
|
|
|
import * as nextI18NextConfig from '^/config/next-i18next.config';
|
|
import * as nextI18NextConfig from '^/config/next-i18next.config';
|
|
|
|
|
|
|
|
|
|
+import { detectLocaleFromBrowserAcceptLanguage } from '~/client/util/locale-utils';
|
|
|
import { type SupportedActionType } from '~/interfaces/activity';
|
|
import { type SupportedActionType } from '~/interfaces/activity';
|
|
|
import type { CrowiRequest } from '~/interfaces/crowi-request';
|
|
import type { CrowiRequest } from '~/interfaces/crowi-request';
|
|
|
import type { ISidebarConfig } from '~/interfaces/sidebar-config';
|
|
import type { ISidebarConfig } from '~/interfaces/sidebar-config';
|
|
@@ -17,7 +18,6 @@ import type { UserUISettingsDocument } from '~/server/models/user-ui-settings';
|
|
|
import {
|
|
import {
|
|
|
useCurrentProductNavWidth, useCurrentSidebarContents, usePreferCollapsedMode,
|
|
useCurrentProductNavWidth, useCurrentSidebarContents, usePreferCollapsedMode,
|
|
|
} from '~/stores/ui';
|
|
} from '~/stores/ui';
|
|
|
-import { detectLocaleFromBrowserAcceptLanguage } from '~/utils/locale-utils';
|
|
|
|
|
|
|
|
|
|
export type CommonProps = {
|
|
export type CommonProps = {
|
|
|
namespacesRequired: string[], // i18next
|
|
namespacesRequired: string[], // i18next
|