1 import * as bootstrap from '@proton/account/bootstrap'
2 import type { ProtonConfig } from '@proton/shared/lib/interfaces'
3 import { setTtagLocales } from '@proton/shared/lib/i18n/locales'
5 import locales from './locales'
7 export const bootstrapEditorApp = async ({ config }: { config: ProtonConfig }) => {
8 setTtagLocales(locales)
10 const authentication = bootstrap.createAuthentication({ initialAuth: false })
11 bootstrap.init({ config, locales, authentication })
13 const searchParams = new URLSearchParams(location.search)
14 await bootstrap.publicApp({ app: config.APP_NAME, locales, searchParams, pathLocale: '' })