feat: localize game assets

This commit is contained in:
tresabhi committed 2025-01-14 19:22:41 -06:00
1 parent d8459d373c
commit ef9778ea96
90 files changed
+336 -251

No files matched your search

+3 -2
View File
@@ -1,4 +1,4 @@
import { DEFAULT_LOCALE } from '@blitzkit/core';
import { DEFAULT_LOCALE, unwrapper } from '@blitzkit/i18n';
import { createContext, useContext, type ReactNode } from 'react';
import { getStrings } from '../core/i18n/getStrings';
@@ -29,8 +29,9 @@ export function useLocale() {
}
const strings = getStrings(context.locale);
const unwrap = unwrapper(context.locale);
return { locale: context.locale, strings };
return { locale: context.locale, strings, unwrap };
}
export interface LocaleAcceptorProps {