globalProperties.ts 473 B

1234567891011121314
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { App } from 'vue'
  3. import { i18n } from '#shared/i18n.ts'
  4. import applicationConfigPlugin from '../plugins/applicationConfigPlugin.ts'
  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. }