Skip to content

Commit

Permalink
Merge pull request #693 from live-codes/mark-untranslated-text
Browse files Browse the repository at this point in the history
mark untranslated text
  • Loading branch information
hatemhosny authored Dec 21, 2024
2 parents 6bc9b3c + 1e56988 commit d49f488
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/livecodes/UI/code-to-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const createCodeToImageUI = async ({
presetBtn.classList.add('preset');
presetBtn.dataset.id = preset.id;
if (preset.id === 'custom') {
presetBtn.textContent = 'Custom';
presetBtn.textContent = window.deps.translateString('generic.custom', 'Custom');
} else {
const img = document.createElement('img');
img.src = `${baseUrl}assets/code-to-img/${preset.id}.jpg`;
Expand Down
4 changes: 4 additions & 0 deletions src/livecodes/i18n/locales/en/translation.lokalise.json
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,10 @@
"notes": "",
"translation": "Close"
},
"generic.custom": {
"notes": "",
"translation": "Custom"
},
"generic.embed.logoHint": {
"notes": "",
"translation": "Edit on LiveCodes 🡕"
Expand Down
1 change: 1 addition & 0 deletions src/livecodes/i18n/locales/en/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ const translation = {
},
clickForInfo: 'Click for info...',
close: 'Close',
custom: 'Custom',
embed: {
logoHint: 'Edit on LiveCodes 🡕',
},
Expand Down

0 comments on commit d49f488

Please sign in to comment.