Add Turkish language support (i18n) - #36
Open
muminkoykiran wants to merge 1 commit into
Open
Conversation
muminkoykiran
commented
Dec 4, 2025
- Add embedded translations system for Turkish (tr) and English (en)
- Translate editor labels: name, entity, remote, theme, etc.
- Translate button tooltips: power, volume, navigation, media controls
- Auto-detect user language from Home Assistant settings
- Fallback to English when translation not available
- Add translations directory with JSON files for future extensibility
There was a problem hiding this comment.
Pull request overview
This PR adds internationalization (i18n) support with Turkish and English translations to a Home Assistant TV card component. The implementation uses embedded translation objects for reliability and includes both JavaScript files and JSON translation files for future extensibility.
Key Changes:
- Embedded translation system with auto-detection based on Home Assistant user language settings
- Translation coverage for editor labels (name, entity, remote, theme) and button tooltips (power, volume, navigation, media controls)
- Fallback mechanism to English when translations are unavailable
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 33 comments.
| File | Description |
|---|---|
| tv-card.js | Adds embedded translations object, helper functions (getLanguage, t), and applies translations to button tooltips |
| tv-card-editor.js | Adds editor-specific translations object, helper functions (getEditorLanguage, te), and applies translations to form labels |
| translations/tr.json | Turkish translation file containing all translated strings for future reference |
| translations/en.json | English translation file containing all English strings for future reference |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Add embedded translations system for Turkish (tr) and English (en) - Translate editor labels: name, entity, remote, theme, etc. - Translate button tooltips: power, volume, navigation, media controls - Auto-detect user language from Home Assistant settings - Fallback to English when translation not available - Add translations directory with JSON files for future extensibility - Use proper Turkish characters (ğ, ü, ş, ı, ö, ç, İ)
muminkoykiran
force-pushed
the
feature/turkish-language-support
branch
from
December 5, 2025 18:43
b5255c8 to
b89c6ca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.