marhali / easy-i18n

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

Any possibility to exclude a directory using File structure? #327

Open haladamateusz opened 10 months ago

haladamateusz commented 10 months ago

I am working with Nx Monorepo.

I have locales directory set to my project root. My locales are stored in apps/ and libs/ directories. Unfortunately, easy-i18n loads also translations from node_modules/ folder. Is there any possibility to filter files only for apps/**/i18n/lang.json and libs/**/i18n/lang.json

Here are my settings: image

Project structure inside project root: image

marhali commented 8 months ago

This is not possible at the moment.

It might be a good idea to search the entire project for translation files based on a regex pattern. However, this would lead to the need to consider how these "long paths" should be made available for code completion in combination with modularized namespaces (folder- and file-based).