module ViewComponent::Translatable

def i18n_key(key, scope = nil)

def i18n_key(key, scope = nil)
  scope = scope.join(".") if scope.is_a? Array
  key = key&.to_s unless key.is_a?(String)
  key = "#{scope}.#{key}" if scope
  key = "#{i18n_scope}#{key}" if key.start_with?(".")
  key
end