mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
15 lines
383 B
Ruby
15 lines
383 B
Ruby
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
class UserDevice::NotificationPresenter < SimpleDelegator
|
|
def initialize(user_device, locale)
|
|
super(user_device)
|
|
@locale = locale
|
|
end
|
|
|
|
def location
|
|
value = __getobj__.location
|
|
return Translation.translate(@locale, 'Unknown') if value.blank? || value == 'unknown'
|
|
|
|
value
|
|
end
|
|
end
|