File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed
packages/runtime/plugin-i18n/src Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 11import type { AppTools , CliPlugin } from '@modern-js/app-tools' ;
2- import {
3- type LocaleDetectionOptions ,
4- getLocaleDetectionOptions ,
5- } from '../utils/config' ;
2+ import type { LocaleDetectionOptions } from '../shared/type' ;
3+ import { getLocaleDetectionOptions } from '../shared/utils' ;
64
75export interface I18nPluginOptions {
86 localeDetection ?: LocaleDetectionOptions ;
Original file line number Diff line number Diff line change 55} from '@modern-js/runtime' ;
66import type React from 'react' ;
77import { useEffect , useState } from 'react' ;
8- import type { BaseLocaleDetectionOptions } from '../utils/config ' ;
8+ import type { BaseLocaleDetectionOptions } from '../shared/type ' ;
99import { ModernI18nProvider } from './context' ;
1010import type { I18nInitOptions , I18nInstance } from './i18n' ;
1111import { getI18nInstance } from './i18n' ;
Original file line number Diff line number Diff line change 11import type { Context , Next , ServerPlugin } from '@modern-js/server-runtime' ;
2- import {
3- type LocaleDetectionOptions ,
4- getLocaleDetectionOptions ,
5- } from '../utils/config.js' ;
2+ import type { LocaleDetectionOptions } from '../shared/type' ;
3+ import { getLocaleDetectionOptions } from '../shared/utils.js' ;
64
75export interface I18nPluginOptions {
86 localeDetection : LocaleDetectionOptions ;
You can’t perform that action at this time.
0 commit comments