toonvanstrijp / nestjs-i18n

The i18n module for nestjs.
https://nestjs-i18n.com
Other
654 stars 113 forks source link

How to distribute i18n language configuration files across multiple folders #601

Open YanxinNet opened 11 months ago

YanxinNet commented 11 months ago

Describe the bug

There are multiple i18n folders in my project, such as:

How should I configure the loaderOptions. paths attribute because it does not accept arrays or regular patterns, as follows:

{
    fallbackLanguage: 'en',
    loaderOptions: {
        // How do i wirte this path?
        path: xxx,
        watch: true
    }
}

Reproduction

1

System Info

Mac os

Used Package Manager

npm

Validations

Setitch commented 8 months ago

+1