Skip to content

Add translation feature using claude#17

Draft
nomike wants to merge 15 commits intomainfrom
claude-translation
Draft

Add translation feature using claude#17
nomike wants to merge 15 commits intomainfrom
claude-translation

Conversation

@nomike
Copy link
Owner

@nomike nomike commented Sep 22, 2025

No description provided.

nomike Postmann added 15 commits September 22, 2025 14:24
- Add anthropic dependency and Claude API configuration
- Implement translation caching system with content hashing
- Add language dropdown selector in footer with 14 language options
- Refactor index file rendering to support multi-language content
- Update footer layout to accommodate language selector controls
…r.py

- Break long lines for better readability
- Add proper exception chaining with 'from e'
- Use specific exception types in catch block
- Format function calls and string concatenation consistently
…dering

- Translate source content (org/md/html) before rendering to HTML
- Cache translations at source level rather than rendered HTML level
- Maintain proper file type handling for post-translation rendering
- Preserve error handling for translation failures
Update language code mappings and default values to use three-letter ISO 639-3 codes instead of two-letter ISO 639-1 codes. Add Mandinka language support.
- Add Arabic to language mapping and dropdown
- Implement RTL CSS styles for Arabic content
- Add lang and dir attributes to HTML based on selected language
Implement enhanced language selector with search functionality, keyboard navigation (arrow keys, enter, escape), and progressive enhancement that gracefully falls back to native select when JavaScript is disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant