diff --git a/CLAUDE.md b/CLAUDE.md index bc6af38c9..d111f8da3 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -192,6 +192,11 @@ return useToolOperation({ - **Preview System**: Tool results can be previewed without polluting file context (Split tool example) - **Performance**: Web Worker thumbnails, IndexedDB persistence, background processing +## Translation Rules + +- **CRITICAL**: Always update translations in `en-GB` only, never `en-US` +- Translation files are located in `frontend/public/locales/` + ## Important Notes - **Java Version**: Minimum JDK 17, supports and recommends JDK 21 diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index 45d36a371..826c48960 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -3079,7 +3079,12 @@ "panMode": "Pan Mode", "rotateLeft": "Rotate Left", "rotateRight": "Rotate Right", - "toggleSidebar": "Toggle Sidebar" + "toggleSidebar": "Toggle Sidebar", + "exportSelected": "Export Selected Pages", + "toggleAnnotations": "Toggle Annotations Visibility", + "annotationMode": "Toggle Annotation Mode", + "draw": "Draw", + "save": "Save" }, "search": { "title": "Search PDF", diff --git a/frontend/src/components/shared/NavigationWarningModal.tsx b/frontend/src/components/shared/NavigationWarningModal.tsx index e9622d6d4..203e66ff7 100644 --- a/frontend/src/components/shared/NavigationWarningModal.tsx +++ b/frontend/src/components/shared/NavigationWarningModal.tsx @@ -8,7 +8,7 @@ interface NavigationWarningModalProps { } const NavigationWarningModal = ({ - onApplyAndContinue, + onApplyAndContinue: _onApplyAndContinue, onExportAndContinue }: NavigationWarningModalProps) => { @@ -30,13 +30,6 @@ const NavigationWarningModal = ({ confirmNavigation(); }; - const _handleApplyAndContinue = async () => { - if (onApplyAndContinue) { - await onApplyAndContinue(); - } - setHasUnsavedChanges(false); - confirmNavigation(); - }; const handleExportAndContinue = async () => { if (onExportAndContinue) { @@ -85,7 +78,7 @@ const NavigationWarningModal = ({ {/* TODO:: Add this back in when it works */} - {/* {onApplyAndContinue && ( + {/* {_onApplyAndContinue && (