mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: use decorators
This commit is contained in:
1 parent
44711a58c7
commit
8e3b5de249
5 files changed
+278
-316
No files matched your search
@@ -5,8 +5,8 @@ import { useLocale } from "./useLocale";
|
||||
export function useGameStrings(group: string) {
|
||||
const locale = useLocale();
|
||||
const strings = useAwait(
|
||||
() => api.groupedGameStrings(locale, group, true),
|
||||
`game-strings-${locale}-${group}`
|
||||
() => api._groupedGameStrings(locale, group, true),
|
||||
`game-strings-${locale}-${group}`,
|
||||
);
|
||||
return strings;
|
||||
}
|
||||
Reference in new issue
Block a user