add alias ~platform and ~material
All checks were successful
/ depoly (push) Successful in 1m19s

This commit is contained in:
thislight 2024-11-22 17:16:56 +08:00
parent ade7df2234
commit 246771e8a0
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
30 changed files with 143 additions and 86 deletions

View file

@ -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(