Skip to content

Commit

Permalink
fix duplicate i18n key
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhosny committed Jan 11, 2025
1 parent e0fa310 commit 9acf7bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/livecodes/html/code-to-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,17 @@
id="code-to-img-menu-btn"
class="button"
title="Share"
data-i18n="app.share.hint"
data-i18n="codeToImage.shareTitle"
data-i18n-prop="title"
>
<i class="icon-share"></i>
</button>
<div id="code-to-img-menu-container">
<ul id="code-to-img-share-menu" class="dropdown-menu">
<li>
<a href="#" id="code-to-img-share-btn" data-i18n="codeToImage.share">Share Image</a>
<a href="#" id="code-to-img-share-btn" data-i18n="codeToImage.shareImage"
>Share Image</a
>
</li>
<li>
<a href="#" id="code-to-img-copy-img-btn" data-i18n="codeToImage.copyImage"
Expand Down
6 changes: 5 additions & 1 deletion src/livecodes/i18n/locales/en/translation.lokalise.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,14 @@
"notes": "",
"translation": "Shadow"
},
"codeToImage.share": {
"codeToImage.shareImage": {
"notes": "",
"translation": "Share Image"
},
"codeToImage.shareTitle": {
"notes": "",
"translation": "Share"
},
"codeToImage.shareUrl": {
"notes": "",
"translation": "Share URL"
Expand Down
3 changes: 2 additions & 1 deletion src/livecodes/i18n/locales/en/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ const translation = {
save: 'Save Image',
scale: 'Image Scale',
shadow: 'Shadow',
share: 'Share Image',
shareImage: 'Share Image',
shareTitle: 'Share',
shareUrl: 'Share URL',
theme: 'Theme',
width: 'Width',
Expand Down

0 comments on commit 9acf7bd

Please sign in to comment.