add location

This commit is contained in:
2024-09-05 20:34:48 +08:00
parent ff8c5714d9
commit bdfab3ab29
11 changed files with 171 additions and 17 deletions

View File

@@ -15,4 +15,12 @@ export class Res {
let retStr = textDecoder.decodeWithStream( content , decodeWithStreamOptions);
return retStr;
}
static getResStr(descName: string, ...rest: string[]): ResourceStr {
try {
return $r(`app.string.${descName}`, ...rest);
} catch (e) {
return '';
}
}
}