mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(packages): i18n (#1708)
This commit is contained in:
@@ -11,6 +11,7 @@ import type { ReactNode } from 'react';
|
||||
import type { Mock } from 'vitest';
|
||||
import { vi } from 'vitest';
|
||||
|
||||
import { I18nProvider } from '../i18n';
|
||||
import { PlayerContextProvider, type PlayerContextValue } from '../player/context';
|
||||
|
||||
interface MockStore {
|
||||
@@ -58,7 +59,11 @@ export function createPlayerWrapper(storeState: Record<string, unknown> = {}): {
|
||||
store,
|
||||
value,
|
||||
Wrapper({ children }: { children: ReactNode }) {
|
||||
return <PlayerContextProvider value={value}>{children}</PlayerContextProvider>;
|
||||
return (
|
||||
<PlayerContextProvider value={value}>
|
||||
<I18nProvider>{children}</I18nProvider>
|
||||
</PlayerContextProvider>
|
||||
);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user