aboutsummaryrefslogtreecommitdiff
path: root/src/scene/test4.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/scene/test4.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scene/test4.ts b/src/scene/test4.ts
index 97e53ee..a3f6ccd 100644
--- a/src/scene/test4.ts
+++ b/src/scene/test4.ts
@@ -1,5 +1,6 @@
import * as THREE from 'three';
import { number, format as formatNumber, type Parameters, type TestId } from '../experiments';
+import { scene } from '../i18n';
import { type Charge, type Point } from '../physics/electricField';
import { pairEnergy } from '../physics/models';
import { assemblyState, centralState, conservationState, motionState, movingCharge, progress, rotationState } from '../test4';
@@ -82,7 +83,7 @@ function conservation(group: THREE.Group, p: Parameters): Animate {
label(group, String.raw`$${name} = ${format(joules * 1e9)}\,\mathrm{nJ}$`, { x, y: baseline - 0.45, z: 1 }, colour, 1.3);
}
line(group, [{ x: -2.8, y: -0.1, z: 1 }, { x: 2.8, y: -0.1, z: 1 }], colours.field, 0.4);
- label(group, 'Energy changes form ยท total stays constant', { x: 0, y: -4.2, z: 1 }, colours.field, 3.5);
+ label(group, scene('energyConstant'), { x: 0, y: -4.2, z: 1 }, colours.field, 3.5);
return pulse(probe);
}