mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-08 06:30:04 +00:00
## Summary - Templates were fetched once with the initial locale and cached behind an `isLoaded` guard. Changing language updated i18n UI strings but never re-fetched locale-specific template data (names, descriptions) from the server. - Extracts core template fetching into `fetchCoreTemplates()` and adds a `watch` on `i18n.global.locale` to re-fetch when the language changes. ## Test plan - [ ] Open the templates panel - [ ] Change language in settings (e.g. English -> French) - [ ] Verify template names and descriptions update without a page refresh - [ ] Verify initial load still works correctly ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8963-fix-reload-template-workflows-when-locale-changes-30b6d73d36508178a2f8c2c8947b5955) by [Unito](https://www.unito.io)