translatableMarker.ts 344 B

12345678910111213
  1. // Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. // Add global __() method for marking translatable strings.
  3. const getGlobalThis = () => {
  4. if (typeof globalThis !== 'undefined') return globalThis
  5. return window
  6. }
  7. getGlobalThis().__ = (source) => source
  8. // Add 'export' to treat this as a JS module.
  9. export {}