diff --git a/src/livecodes/UI/code-to-image.ts b/src/livecodes/UI/code-to-image.ts index f6452c2cd..2be6f250d 100644 --- a/src/livecodes/UI/code-to-image.ts +++ b/src/livecodes/UI/code-to-image.ts @@ -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`; diff --git a/src/livecodes/i18n/locales/en/translation.lokalise.json b/src/livecodes/i18n/locales/en/translation.lokalise.json index 72fec2bbd..76cfd61cd 100644 --- a/src/livecodes/i18n/locales/en/translation.lokalise.json +++ b/src/livecodes/i18n/locales/en/translation.lokalise.json @@ -1300,6 +1300,10 @@ "notes": "", "translation": "Close" }, + "generic.custom": { + "notes": "", + "translation": "Custom" + }, "generic.embed.logoHint": { "notes": "", "translation": "Edit on LiveCodes 🡕" diff --git a/src/livecodes/i18n/locales/en/translation.ts b/src/livecodes/i18n/locales/en/translation.ts index b84aac375..71e8c57a9 100644 --- a/src/livecodes/i18n/locales/en/translation.ts +++ b/src/livecodes/i18n/locales/en/translation.ts @@ -539,6 +539,7 @@ const translation = { }, clickForInfo: 'Click for info...', close: 'Close', + custom: 'Custom', embed: { logoHint: 'Edit on LiveCodes 🡕', },