globalProperties.ts 475 B

12345678910111213141516
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import { i18n } from '#shared/i18n.ts'
  3. import applicationConfigPlugin from '../plugins/applicationConfigPlugin.ts'
  4. import type { App } from 'vue'
  5. export default function initializeGlobalProperties(app: App): void {
  6. app.config.globalProperties.i18n = i18n
  7. app.config.globalProperties.$t = i18n.t.bind(i18n)
  8. app.use(applicationConfigPlugin)
  9. app.config.globalProperties.__ = window.__
  10. }