Skip to content

Commit 9066341

Browse files
committed
fix: temporary fix for some language translation issue
1 parent 637bfe0 commit 9066341

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend/popup.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ <h1>CodeTranslateAI</h1>
1313
<div class="select-wrapper">
1414
<select id="language-select">
1515
<option value="C">C</option>
16-
<option value="C#">C#</option>
17-
<option value="C++">C++</option>
16+
<option value="Csharp">C#</option>
17+
<option value="Cpp">C++</option>
1818
<option value="Go">Go</option>
1919
<option value="Java">Java</option>
2020
<option value="Kotlin">Kotlin</option>

frontend/scripts/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function handleElementClick(e) {
2222
const cacheKey = `translation_${hashCode(selectedCode)}`;
2323
const originalWidth = clickedElement.getBoundingClientRect().width;
2424
const { targetLanguage } = await chrome.storage.sync.get('targetLanguage');
25-
const lang = targetLanguage || 'Java';
25+
const lang = targetLanguage;
2626
const cachedData = await getFromCache(cacheKey);
2727

2828
if (cachedData && cachedData[lang]) {

0 commit comments

Comments
 (0)