i18n: translated error message in authProvider.ts

This commit is contained in:
Hakadao
2023-04-11 16:55:52 +08:00
parent 7f819c7b2d
commit bd5fcfe3cb
6 changed files with 42 additions and 27 deletions

View File

@@ -1,9 +1,12 @@
import { onMessage } from 'webext-bridge'
// import { onMessage } from 'webext-bridge'
import { createApp } from 'vue'
import type { App as AppType } from 'vue'
import App from './views/App.vue'
import { setupApp } from '~/logic/common-setup'
import { SVG_ICONS, i18n } from '~/utils'
let app: AppType | null = null;
// Firefox `browser.tabs.executeScript()` requires scripts return a primitive value
(() => {
// console.info('[vitesse-webext] Hello world from content script')
@@ -58,8 +61,10 @@ import { SVG_ICONS, i18n } from '~/utils'
shadowDOM.appendChild(svgDiv)
document.body.appendChild(container)
const app = createApp(App)
app = createApp(App)
setupApp(app)
app.use(i18n).mount(root)
}
})()
export default app as AppType