rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
434 stars 238 forks source link

Initialize i18n after plugins load more #10987

Closed codyrancher closed 1 month ago

codyrancher commented 1 month ago

Summary

We previously initialized i18n on every middleware invocation. This happened to be called after harvester was loaded by the authenticated middleware which loaded it's i18n keys.

This will now call i18n/init in a 404 after the auth middleware is called and harvester pages are loaded.

Areas or cases that should be tested

Plugin translations, mostly Harvester.

Screenshot/Video

Screenshot 2024-05-09 025038

Checklist