translations for instance

This commit is contained in:
ForestOfLight
2025-12-11 19:17:08 -08:00
Unverified
parent ecd3e46c1a
commit 50f542220d
3 changed files with 40 additions and 19 deletions
@@ -155,13 +155,13 @@ export class InstanceForm {
statsForm = await InstanceFormBuilder.buildStatistics(this.instance);
} catch (e) {
if (e.message === 'StructureVerifier is already running.') {
this.player.sendMessage('§cA verification is already in progress. Please wait until it finishes.');
this.player.sendMessage({ translate: 'construct.instance.validation.alreadyRunning' });
return;
}
throw e;
}
if (!statsForm) {
this.player.sendMessage('§cFailed to build statistics form.');
this.player.sendMessage({ translation: 'construct.instance.validation.formfail' });
return;
}
statsForm.form.show(this.player).then((response) => {