Comfy-Org / Comfy-Org/ComfyUI_frontend

Refactor: Clean up localization key structure in en/main.json

Open
#9,447 0 comments 0 reactions 1 assignee Claimed by @DrJKL View on GitHub
area:i18n
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

## Overview

The localization key structure in `src/locales/en/main.json` has grown organically and contains some structural issues that should be addressed for consistency and maintainability.

## Problem

As noted in PR #8951, several locale keys are either duplicated or placed at the wrong nesting level. For example, PR #8951 introduces two separate keys for "Workflow name" in different namespaces (`shareWorkflow.workflowNameLabel` and `comfyHubPublish.workflowName`), and many new top-level objects (`shareWorkflow`, `openSharedWorkflow`, `comfyHubPublish`, `comfyHubProfile`) may benefit from being reorganized under a more coherent hierarchy.

## Goals

- Audit all localization keys in `src/locales/en/main.json` for duplication and misplaced nesting
- Consolidate duplicate keys (e.g., multiple "Workflow name" strings)
- Evaluate whether new top-level namespaces (`shareWorkflow`, `openSharedWorkflow`, `comfyHubPublish`, `comfyHubProfile`) should be reorganized
- Ensure naming conventions are consistent across the file

## References

- PR: https://github.com/Comfy-Org/ComfyUI_frontend/pull/8951
- Comment: https://github.com/Comfy-Org/ComfyUI_frontend/pull/8951#discussion_r2892376618

Raised by @DrJKL and @AustinMroz.

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-9447-Refactor-Clean-up-localization-key-structure-in-en-main-json-31a6d73d3650811fa866ddbbbffd8f4c) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.