diff --git a/i18n/en.json b/i18n/en.json index 9a3c10d9d2..0af3d75a8c 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -17,14 +17,6 @@ "add_a_title": "Add a title", "add_birthday": "Add a birthday", "add_endpoint": "Add endpoint", - "editor_crop_tool_h2_mirror": "Mirror", - "mirror_horizontal": "Horizontal", - "mirror_vertical": "Vertical", - "rotate_ccw": "CCW 90°", - "rotate_cw": "CW 90°", - "crop_aspect_ratio_free": "Free", - "crop_aspect_ratio_fixed": "Fixed", - "crop_aspect_ratio_original": "Original", "add_exclusion_pattern": "Add exclusion pattern", "add_location": "Add location", "add_more_users": "Add more users", @@ -812,6 +804,9 @@ "created_at": "Created", "creating_linked_albums": "Creating linked albums...", "crop": "Crop", + "crop_aspect_ratio_fixed": "Fixed", + "crop_aspect_ratio_free": "Free", + "crop_aspect_ratio_original": "Original", "curated_object_page_title": "Things", "current_device": "Current device", "current_pin_code": "Current PIN code", @@ -940,6 +935,7 @@ "editor_close_without_save_prompt": "The changes will not be saved", "editor_close_without_save_title": "Close editor?", "editor_crop_tool_h2_aspect_ratios": "Aspect ratios", + "editor_crop_tool_h2_mirror": "Mirror", "editor_crop_tool_h2_rotation": "Rotation", "editor_reset_all_changes": "Reset all changes", "email": "Email", @@ -1414,6 +1410,8 @@ "minimize": "Minimize", "minute": "Minute", "minutes": "Minutes", + "mirror_horizontal": "Horizontal", + "mirror_vertical": "Vertical", "missing": "Missing", "mobile_app": "Mobile App", "mobile_app_download_onboarding_note": "Download the companion mobile app using the following options", @@ -1767,6 +1765,8 @@ "role": "Role", "role_editor": "Editor", "role_viewer": "Viewer", + "rotate_ccw": "CCW 90°", + "rotate_cw": "CW 90°", "running": "Running", "save": "Save", "save_to_gallery": "Save to gallery", diff --git a/web/src/lib/components/asset-viewer/editor/transform-tool/transform-tool.svelte b/web/src/lib/components/asset-viewer/editor/transform-tool/transform-tool.svelte index e0e22ce8b9..9757cd9ff0 100644 --- a/web/src/lib/components/asset-viewer/editor/transform-tool/transform-tool.svelte +++ b/web/src/lib/components/asset-viewer/editor/transform-tool/transform-tool.svelte @@ -22,10 +22,10 @@ })), ]); - function resetCrop() { - transformManager.resetCrop(); - selectedRatio = undefined; - } + // function resetCrop() { + // transformManager.resetCrop(); + // selectedRatio = undefined; + // } function selectAspectRatio(ratio: 'original' | 'free' | (typeof aspectRatios)[number]['value']) { if (ratio === 'original') { diff --git a/web/src/lib/managers/edit/transform-manager.svelte.ts b/web/src/lib/managers/edit/transform-manager.svelte.ts index 11c9d2371d..cc2e0992e8 100644 --- a/web/src/lib/managers/edit/transform-manager.svelte.ts +++ b/web/src/lib/managers/edit/transform-manager.svelte.ts @@ -40,7 +40,7 @@ class TransformManager implements EditToolManager { cropFrame = $state(null); cropImageSize = $state([1000, 1000]); cropImageScale = $state(1); - cropAspectRatio = $state("free"); + cropAspectRatio = $state('free'); region = $state({ x: 0, y: 0, width: 100, height: 100 }); imageRotation = $state(0);