feat(i18n): introduce server error i18n (#9953)

close AF-2054
This commit is contained in:
forehalo
2025-02-05 12:30:18 +00:00
parent 4a943d854e
commit 4ed03c9f0e
12 changed files with 709 additions and 110 deletions

View File

@@ -28,6 +28,10 @@ const lookups = [];
*/
let scriptLocation;
for (const location of fileLocationCandidates) {
if (scriptLocation) {
break;
}
const fileCandidates = [file, `${file}.js`, `${file}.ts`];
for (const candidate of fileCandidates) {
const candidateLocation = join(location, candidate);