mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-31 05:19:53 +00:00
## Summary Track template metadata in English for analytics regardless of user's locale to enable consistent statistical analysis. ## Changes - **What**: Load English [template index](https://github.com/Comfy-Org/ComfyUI_frontend/tree/main/public/templates) alongside localized version (cloud builds only) - **What**: Added `getEnglishMetadata()` method to `workflowTemplatesStore` that returns English versions of template tags, category, useCase, models, and license - **What**: Updated `MixpanelTelemetryProvider` to prefer English metadata for analytics events, falling back to localized values ## Review Focus English template fetch only triggers in cloud builds via `isCloud` flag. Non-cloud builds see no bundle size impact. Method returns null when English templates unavailable, with fallback to localized data ensuring analytics continue working in edge cases. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6292-translate-all-analytics-to-English-for-template-metadata-2986d73d365081fdbc21f372aa9bb41e) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com>