diff --git a/chromium/extension/components/modals.js b/chromium/extension/components/modals.js index 0e8edc46..477ac099 100644 --- a/chromium/extension/components/modals.js +++ b/chromium/extension/components/modals.js @@ -18,8 +18,9 @@ window.modals = { }, getMsg(key) { - return /Chromium|Firefox/.test(this.runtime) ? chrome.i18n.getMessage(key) - : this.imports.app.msgs[key] // from modals.imports.import({ app }) in userscript + return /Chromium|Firefox/.test(this.runtime) ? + chrome.i18n.getMessage(key) // from ./_locales/*/messages.json + : this.imports.app.msgs[key] // from modals.imports.import({ app }) in userscript }, alert(title = '', msg = '', btns = '', checkbox = '', width = '') { // generic one from chatgpt.alert() diff --git a/firefox/extension/components/modals.js b/firefox/extension/components/modals.js index 0e8edc46..477ac099 100644 --- a/firefox/extension/components/modals.js +++ b/firefox/extension/components/modals.js @@ -18,8 +18,9 @@ window.modals = { }, getMsg(key) { - return /Chromium|Firefox/.test(this.runtime) ? chrome.i18n.getMessage(key) - : this.imports.app.msgs[key] // from modals.imports.import({ app }) in userscript + return /Chromium|Firefox/.test(this.runtime) ? + chrome.i18n.getMessage(key) // from ./_locales/*/messages.json + : this.imports.app.msgs[key] // from modals.imports.import({ app }) in userscript }, alert(title = '', msg = '', btns = '', checkbox = '', width = '') { // generic one from chatgpt.alert()