This commit is contained in:
parent
ade7df2234
commit
246771e8a0
30 changed files with 143 additions and 86 deletions
|
@ -179,7 +179,7 @@ type MergedImportedModule<T> = T extends []
|
|||
export function createStringResource<
|
||||
T extends ImportFn<Record<string, string | Template<any> | undefined>>[],
|
||||
>(...importFns: T) {
|
||||
const language = useLanguage();
|
||||
const language = useLanguage(); // TODO: this function costs to much, provide a global cache
|
||||
const cache: Record<string, MergedImportedModule<T>> = {};
|
||||
|
||||
return createResource(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue