Skip to content

Commit fb08a2b

Browse files
committed
feat: localize the strings used in the dropdown
1 parent c1877c7 commit fb08a2b

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ function RemoteFunctions(config = {}) {
16121612
<span data-action="delete" title="${config.strings.delete}">
16131613
${ICONS.trash}
16141614
</span>
1615-
<span data-action="more-options" title='More Options'>
1615+
<span data-action="more-options" title="${config.strings.moreOptions}">
16161616
${ICONS.verticalEllipsis}
16171617
</span>
16181618
</div>`;
@@ -1802,15 +1802,15 @@ function RemoteFunctions(config = {}) {
18021802
<div class="more-options-dropdown">
18031803
<div class="dropdown-item" data-action="cut">
18041804
<span class="item-icon">${ICONS.cut}</span>
1805-
<span class="item-label">Cut</span>
1805+
<span class="item-label">${config.strings.cut}</span>
18061806
</div>
18071807
<div class="dropdown-item" data-action="copy">
18081808
<span class="item-icon">${ICONS.copy}</span>
1809-
<span class="item-label">Copy</span>
1809+
<span class="item-label">${config.strings.copy}</span>
18101810
</div>
18111811
<div class="dropdown-item" data-action="paste">
18121812
<span class="item-icon">${ICONS.paste}</span>
1813-
<span class="item-label">Paste</span>
1813+
<span class="item-label">${config.strings.paste}</span>
18141814
</div>
18151815
</div>
18161816
`;

src/LiveDevelopment/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ define(function main(require, exports, module) {
109109
delete: Strings.LIVE_DEV_MORE_OPTIONS_DELETE,
110110
ai: Strings.LIVE_DEV_MORE_OPTIONS_AI,
111111
imageGallery: Strings.LIVE_DEV_MORE_OPTIONS_IMAGE_GALLERY,
112+
moreOptions: Strings.LIVE_DEV_MORE_OPTIONS_MORE,
113+
cut: Strings.LIVE_DEV_MORE_OPTIONS_CUT,
114+
copy: Strings.LIVE_DEV_MORE_OPTIONS_COPY,
115+
paste: Strings.LIVE_DEV_MORE_OPTIONS_PASTE,
112116
aiPromptPlaceholder: Strings.LIVE_DEV_AI_PROMPT_PLACEHOLDER,
113117
imageGalleryUseImage: Strings.LIVE_DEV_IMAGE_GALLERY_USE_IMAGE,
114118
imageGallerySelectDownloadFolder: Strings.LIVE_DEV_IMAGE_GALLERY_SELECT_DOWNLOAD_FOLDER,

src/nls/root/strings.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ define({
190190
"LIVE_DEV_MORE_OPTIONS_DELETE": "Delete",
191191
"LIVE_DEV_MORE_OPTIONS_AI": "Edit with AI",
192192
"LIVE_DEV_MORE_OPTIONS_IMAGE_GALLERY": "Image Gallery",
193+
"LIVE_DEV_MORE_OPTIONS_MORE": "More Options",
194+
"LIVE_DEV_MORE_OPTIONS_CUT": "Cut",
195+
"LIVE_DEV_MORE_OPTIONS_COPY": "Copy",
196+
"LIVE_DEV_MORE_OPTIONS_PASTE": "Paste",
193197
"LIVE_DEV_IMAGE_GALLERY_USE_IMAGE": "Use this image",
194198
"LIVE_DEV_IMAGE_GALLERY_SELECT_DOWNLOAD_FOLDER": "Choose image download folder",
195199
"LIVE_DEV_IMAGE_GALLERY_SEARCH_PLACEHOLDER": "Search images\u2026",

0 commit comments

Comments
 (0)