mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 15:08:12 -05:00
Add localized issue template messages.
This commit is contained in:
parent
590c3baed9
commit
c2cc042de4
@ -790,6 +790,20 @@
|
|||||||
"popup_errorLog": {
|
"popup_errorLog": {
|
||||||
"message": "Error log"
|
"message": "Error log"
|
||||||
},
|
},
|
||||||
|
"popup_issueTemplate": {
|
||||||
|
"message": "\n\n\n<!-- Please write your comment ABOVE this line. -->\nSwitchyOmega $projectVersion$\n$userAgent$",
|
||||||
|
"description": "This is used for prefilled content of the issue created by the report issue button.",
|
||||||
|
"placeholders": {
|
||||||
|
"projectVersion": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "2.2.11"
|
||||||
|
},
|
||||||
|
"userAgent": {
|
||||||
|
"content": "$2",
|
||||||
|
"example": "Mozilla/5.0 (OS info) ..."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"browserAction_profileDetails_PacProfile": {
|
"browserAction_profileDetails_PacProfile": {
|
||||||
"message": "(PAC script)"
|
"message": "(PAC script)"
|
||||||
},
|
},
|
||||||
|
@ -790,6 +790,20 @@
|
|||||||
"popup_errorLog": {
|
"popup_errorLog": {
|
||||||
"message": "错误日志"
|
"message": "错误日志"
|
||||||
},
|
},
|
||||||
|
"popup_issueTemplate": {
|
||||||
|
"message": "\n\n\n<!-- ↑请在此行上方填写问题/建议详情,可用中文↑ -->\nSwitchyOmega $projectVersion$\n$userAgent$",
|
||||||
|
"description": "这是通过反馈问题按钮新建 Issue 时,默认填写的文字内容。",
|
||||||
|
"placeholders": {
|
||||||
|
"projectVersion": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "2.2.11"
|
||||||
|
},
|
||||||
|
"userAgent": {
|
||||||
|
"content": "$2",
|
||||||
|
"example": "Mozilla/5.0 (OS info) ..."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"browserAction_profileDetails_PacProfile": {
|
"browserAction_profileDetails_PacProfile": {
|
||||||
"message": "(PAC 脚本)"
|
"message": "(PAC 脚本)"
|
||||||
},
|
},
|
||||||
|
@ -790,6 +790,20 @@
|
|||||||
"popup_errorLog": {
|
"popup_errorLog": {
|
||||||
"message": "錯誤日誌"
|
"message": "錯誤日誌"
|
||||||
},
|
},
|
||||||
|
"popup_issueTemplate": {
|
||||||
|
"message": "\n\n\n<!-- ↑請在此行上方填寫問題/建議詳情,可用中文↑ -->\nSwitchyOmega $projectVersion$\n$userAgent$",
|
||||||
|
"description": "這是通過反饋問題按鈕新建 Issue 時,預設填寫的文字內容。",
|
||||||
|
"placeholders": {
|
||||||
|
"projectVersion": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "2.2.11"
|
||||||
|
},
|
||||||
|
"userAgent": {
|
||||||
|
"content": "$2",
|
||||||
|
"example": "Mozilla/5.0 (OS info) ..."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"browserAction_profileDetails_PacProfile": {
|
"browserAction_profileDetails_PacProfile": {
|
||||||
"message": "(PAC 指令碼)"
|
"message": "(PAC 指令碼)"
|
||||||
},
|
},
|
||||||
|
@ -790,6 +790,20 @@
|
|||||||
"popup_errorLog": {
|
"popup_errorLog": {
|
||||||
"message": "錯誤日誌"
|
"message": "錯誤日誌"
|
||||||
},
|
},
|
||||||
|
"popup_issueTemplate": {
|
||||||
|
"message": "\n\n\n<!-- ↑請在此行上方填寫問題/建議詳情,可用中文↑ -->\nSwitchyOmega $projectVersion$\n$userAgent$",
|
||||||
|
"description": "這是通過反饋問題按鈕新建 Issue 時,預設填寫的文字內容。",
|
||||||
|
"placeholders": {
|
||||||
|
"projectVersion": {
|
||||||
|
"content": "$1",
|
||||||
|
"example": "2.2.11"
|
||||||
|
},
|
||||||
|
"userAgent": {
|
||||||
|
"content": "$2",
|
||||||
|
"example": "Mozilla/5.0 (OS info) ..."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"browserAction_profileDetails_PacProfile": {
|
"browserAction_profileDetails_PacProfile": {
|
||||||
"message": "(PAC 指令碼)"
|
"message": "(PAC 指令碼)"
|
||||||
},
|
},
|
||||||
|
@ -8,7 +8,9 @@ document.querySelector('.error-log').addEventListener 'click', (->
|
|||||||
|
|
||||||
window.OmegaTargetWebBasics.getEnv (env) ->
|
window.OmegaTargetWebBasics.getEnv (env) ->
|
||||||
url = 'https://github.com/FelisCatus/SwitchyOmega/issues/new?title=&body='
|
url = 'https://github.com/FelisCatus/SwitchyOmega/issues/new?title=&body='
|
||||||
body = window.OmegaTargetWebBasics.getMessage('popup_issueTemplate', env)
|
body = window.OmegaTargetWebBasics.getMessage('popup_issueTemplate', [
|
||||||
|
env.projectVersion, env.userAgent
|
||||||
|
])
|
||||||
body ||= """
|
body ||= """
|
||||||
\n\n
|
\n\n
|
||||||
<!-- Please write your comment ABOVE this line. -->
|
<!-- Please write your comment ABOVE this line. -->
|
||||||
|
Loading…
Reference in New Issue
Block a user