5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 03:26:22 +00:00
panel/app/models/metadata_lang.rb

17 lines
255 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Un campo de idioma
class MetadataLang < MetadataTemplate
def default_value
I18n.locale
end
def value
self[:value] || document.collection.label.to_sym
end
def values
I18n.available_locales
end
end