Skip to main content
If you want to add support for multiple languages, you can refer to this document to learn how to implement multi-language support. Currently, ComfyUI supports the following languages:
  • English(en)
  • Chinese (Simplified)(zh)
  • Chinese (Traditional)(zh-TW)
  • French(fr)
  • Korean(ko)
  • Russian(ru)
  • Spanish(es)
  • Japanese(ja)
  • Arabic(ar)
Custom node i18n demo: comfyui-wiki/ComfyUI-i18n-demo

Directory Structure

Create a locales folder under your custom node, which supports multiple types of translation files:

nodeDefs.json - Node Definition Translation

For example, here is a Python definition example of an i18n-demo node:
Then the corresponding localized support nodeDefs.json file content should include:
For the node output part, the corresponding output index is used instead of the output name, for example, the first output should be 0, the second output should be 1, and so on. For example, in the i18n-demo custom node, we registered the following two menu settings:
If you need to add corresponding internationalization support, for the menu category, you need to add it in the main.json file:
For the translation of the corresponding setting items, it is recommended to update them separately in the settings.json file, for example:
Note that the name of the corresponding translation key should replace the . in the original id with _, for example:

Custom Frontend Component Localization Support

[To be updated]