Skip to content

Commit

Permalink
將 下載檔案 文字 移出 function,避免有時i18n會無法翻譯
Browse files Browse the repository at this point in the history
  • Loading branch information
joe committed May 18, 2023
1 parent c742d71 commit cc1c96a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -4897,6 +4897,7 @@ function findGroupAndIndex(promptId) {
}

const PlaceholderKeywordInput = i18n("placeholder_keyword_input");
const MENU_ITEM_DOWNLOAD_HTML = i18n("menu_item_download_html");

function generateButtons() {
const findCustomMenu = document.querySelector(".custom-menu");
Expand Down Expand Up @@ -5041,7 +5042,7 @@ function findGroupAndIndex(promptId) {

// 下載
const downloadHtmlButton = createButton(
i18n("menu_item_download_html"),
MENU_ITEM_DOWNLOAD_HTML,
"secondary",
""
);
Expand Down

0 comments on commit cc1c96a

Please sign in to comment.