Skip to content

Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor

Call the lighting section Lighting in Japanese

shinshin8661430ddf0d3a
diff --git a/e2e/lighting.spec.ts b/e2e/lighting.spec.ts
index 67322c4..72c44e1 100644
--- a/e2e/lighting.spec.ts
+++ b/e2e/lighting.spec.ts
@@ -117,7 +117,7 @@ test('editor remembers lighting, keeps the section closed by default, hides the
await expect(page.getByRole('checkbox', { name: 'Enable lighting' })).toBeChecked();
await expect(page.getByLabel('Shading', { exact: true })).toHaveValue('cel');
await page.getByRole('button', { name: '日本語', exact: true }).click();
- await expect(page.getByRole('checkbox', { name: '照明を有効にする' })).toBeVisible();
+ await expect(page.getByRole('checkbox', { name: 'ライティングを有効にする' })).toBeVisible();
await page.getByRole('button', { name: '简体中文', exact: true }).click();
await page.getByRole('button', { name: '重置光照', exact: true }).click();
await expect(page.getByRole('checkbox', { name: '启用光照' })).not.toBeChecked();
diff --git a/src/lighting/Controls.tsx b/src/lighting/Controls.tsx
index 20feb9e..d74a2dd 100644
--- a/src/lighting/Controls.tsx
+++ b/src/lighting/Controls.tsx
@@ -4,7 +4,7 @@ import './lighting.css';
export const lightingText = {
en: { title: 'Lighting', enabled: 'Enable lighting', height: 'Light height', strength: 'Strength', intensity: 'Intensity', ambient: 'Ambient light', color: 'Light color', mode: 'Shading', soft: 'Soft', cel: 'Cel', shadow: 'Drop shadow', reset: 'Reset lighting', handle: 'Light position', hint: 'Drag the light over the preview. Arrow keys move it too.', reach: 'Light spread', ambientColor: 'Ambient color', softness: 'Shading smoothness', specular: 'Gloss', rim: 'Rim light', detail: 'Stroke relief', light: 'Light', surface: 'Shading' },
- ja: { title: '光源と陰影', enabled: '照明を有効にする', height: '光源の高さ', strength: '陰影の強さ', intensity: '光の強さ', ambient: '環境光', color: '光の色', mode: '陰影の種類', soft: 'やわらかい陰影', cel: 'セル調', shadow: '背後の影', reset: '照明をリセット', handle: '光源の位置', hint: 'プレビュー上の光源をドラッグします。矢印キーでも移動できます。', reach: '光の広がり', ambientColor: '環境光の色', softness: '陰影のなめらかさ', specular: 'つや', rim: 'リムライト', detail: '描線の凹凸', light: '光源', surface: '陰影' },
+ ja: { title: 'ライティング', enabled: 'ライティングを有効にする', height: '光源の高さ', strength: '陰影の強さ', intensity: '光の強さ', ambient: '環境光', color: '光の色', mode: '陰影の種類', soft: 'やわらかい陰影', cel: 'セル調', shadow: '背後の影', reset: 'ライティングをリセット', handle: '光源の位置', hint: 'プレビュー上の光源をドラッグします。矢印キーでも移動できます。', reach: '光の広がり', ambientColor: '環境光の色', softness: '陰影のなめらかさ', specular: 'つや', rim: 'リムライト', detail: '描線の凹凸', light: '光源', surface: '陰影' },
zh: { title: '光源与阴影', enabled: '启用光照', height: '光源高度', strength: '明暗强度', intensity: '光照强度', ambient: '环境光', color: '光源颜色', mode: '着色方式', soft: '柔和', cel: '赛璐璐', shadow: '投影', reset: '重置光照', handle: '光源位置', hint: '在预览上拖动光源,也可使用方向键移动。', reach: '光照范围', ambientColor: '环境光颜色', softness: '明暗过渡', specular: '光泽', rim: '轮廓光', detail: '线条凹凸', light: '光源', surface: '明暗' },
};
type Props = { value: LightingSettings; onChange: (value: LightingSettings) => void; language: keyof typeof lightingText };