refactor(core): move infra modules to core (#9207)
This commit is contained in:
@@ -6,10 +6,11 @@ import {
|
||||
type Language,
|
||||
SUPPORTED_LANGUAGES,
|
||||
} from '@affine/i18n';
|
||||
import type { GlobalCache } from '@toeverything/infra';
|
||||
import { effect, Entity, fromPromise, LiveData } from '@toeverything/infra';
|
||||
import { catchError, EMPTY, exhaustMap, mergeMap } from 'rxjs';
|
||||
|
||||
import type { GlobalCache } from '../../storage';
|
||||
|
||||
export type LanguageInfo = {
|
||||
key: Language;
|
||||
name: string;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { type Framework, GlobalCache } from '@toeverything/infra';
|
||||
import { type Framework } from '@toeverything/infra';
|
||||
|
||||
import { GlobalCache } from '../storage';
|
||||
import { I18nProvider } from './context';
|
||||
import { I18n, type LanguageInfo } from './entities/i18n';
|
||||
import { I18nService } from './services/i18n';
|
||||
|
||||
Reference in New Issue
Block a user