marhali / easy-i18n

This is a IntelliJ IDE based plugin for internationalization. Supports the most common translation file types.
MIT License
87 stars 27 forks source link

Freezing UI on large translation files when toggling Filter Incomplete Translations #390

Open tiberiuzuld opened 7 months ago

tiberiuzuld commented 7 months ago

Hello, First of all Awesome plugin :) There is a freezing of UI when having 5 languages and large translation files 9k+ lines each of JSON and toggling Filter Incomplete Translation. CPU goes to 100% The JSON files are generated by https://github.com/jsverse/transloco in a tree form:

{
   "FEATURE": {
        "LABELS": {
            "LABEL_1" : "My Label"
            ...
        },
        "MESSAGES": {
            "MESSAGE_1": "My Message"
             ...
         }
    }
}
marhali commented 7 months ago

All translations are saved in the working memory and synchronised as required. It might be a good idea to outsource the IO to other, non-UI-related threads.