scientist-softserv / adventist_knapsack

Apache License 2.0
1 stars 0 forks source link

🐛 Ensure Catalog i18ns favor knapsack #65

Closed jeremyf closed 9 months ago

jeremyf commented 9 months ago

Prior to this change, we had ensured knapsack's translations took precedence over Hyku's. However, that ensuring occurred at the after_initialize. We had missed the CatalogController's translation moment as well.

When we specify the index fields in the CatalogController, blacklight caches those translations. However, in the case of dogbiscuits, those are not yet loaded. Which results in a translation error; even though we later load the dog biscuits translations.

With this change, I have added two tests to:

  1. verify that translations are correct for the catalog controller
  2. that when the app boots, the Knapsack translations take precedence over Hyku.

Related to: