nestjs-i18n
nestjs-i18n copied to clipboard
How to distribute i18n language configuration files across multiple folders
Describe the bug
There are multiple i18n folders in my project, such as:
- /i18n
- /apps/aaa/i18n
- /apps/bbb/i18n
- /apps/ccc/i18n
- ......
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
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a minimal reproducible of the bug.
+1