def traco_cache(attribute, fallback:)
      cache = @traco_cache ||= {}
      per_locale_cache = cache[I18n.locale] ||= {}
      per_attribute_cache = per_locale_cache[attribute] ||= {}

      per_attribute_cache[fallback] ||= begin
        # AR methods are lazily evaluated, so we must use `instance.respond_to?(column)` rather
        # than `instance_methods.include?(column)`.
        #
        # We previously forced AR to evaluate them, but that caused issues before the DB existed,
        # e.g. running `rake db:create`.
        instance = new

        locales_to_try = Traco.locale_with_fallbacks(I18n.locale, fallback)

        locales_to_try.each_with_object({}) do |locale, columns|
          column = Traco.column(attribute, locale)
          columns[locale] = column if instance.respond_to?(column)
        end
      end
    end
def traco_cache(attribute, fallback:)
      cache = @traco_cache ||= {}
      per_locale_cache = cache[I18n.locale] ||= {}
      per_attribute_cache = per_locale_cache[attribute] ||= {}

      per_attribute_cache[fallback] ||= begin
        # AR methods are lazily evaluated, so we must use `instance.respond_to?(column)` rather
        # than `instance_methods.include?(column)`.
        #
        # We previously forced AR to evaluate them, but that caused issues before the DB existed,
        # e.g. running `rake db:create`.
        instance = new

        locales_to_try = Traco.locale_with_fallbacks(I18n.locale, fallback)

        locales_to_try.each_with_object({}) do |locale, columns|
          column = Traco.column(attribute, locale)
          columns[locale] = column if instance.respond_to?(column)
        end
      end
    end
Structured by (current) locale => attribute => fallback option => {locale_to_try => column}.
 @example
     {
       :"pt-BR" => {
         title: {
           default: { :"pt-BR" => :title_pt_br, :en => :title_en },
           any: { :"pt-BR" => :title_pt_br, :en => :title_en, :sv => :title_sv }
         },
       },
       :sv => {
         title: {
           default: { :sv => :title_sv, :en => :title_en },
           any: { :sv => :title_sv, :en => :title_en, :"pt-BR" => :title_pt_br }
         }
       }
     }