diff --git a/ext/bg/info.html b/ext/bg/info.html index 41999b1b..99f595d1 100644 --- a/ext/bg/info.html +++ b/ext/bg/info.html @@ -30,6 +30,7 @@
  • Extension version:
  • Platform:
  • Browser:
  • +
  • Language:
  • User agent:
  • AnkiConnect version: ...
  • Installed dictionaries: ...
  • diff --git a/ext/bg/js/info-main.js b/ext/bg/js/info-main.js index 04455a4f..58e9d3b7 100644 --- a/ext/bg/js/info-main.js +++ b/ext/bg/js/info-main.js @@ -50,20 +50,22 @@ function getOperatingSystemDisplayName(os) { document.querySelector('#content-scroll-focus').focus(); const manifest = chrome.runtime.getManifest(); + const language = chrome.i18n.getUILanguage(); api.forwardLogsToBackend(); await yomichan.prepare(); const {userAgent} = navigator; - const {version} = manifest; + const {name, version} = manifest; const {browser, platform: {os}} = await api.getEnvironmentInfo(); const thisVersionLink = document.querySelector('#release-notes-this-version-link'); thisVersionLink.href = thisVersionLink.dataset.hrefFormat.replace(/\{version\}/g, version); - document.querySelector('#version').textContent = `${version}`; + document.querySelector('#version').textContent = `${name} ${version}`; document.querySelector('#browser').textContent = getBrowserDisplayName(browser); document.querySelector('#platform').textContent = getOperatingSystemDisplayName(os); + document.querySelector('#language').textContent = `${language}`; document.querySelector('#user-agent').textContent = userAgent; (async () => {