nestjs-i18n icon indicating copy to clipboard operation
nestjs-i18n copied to clipboard

How to distribute i18n language configuration files across multiple folders

Open YanxinNet opened this issue 1 year ago • 1 comments

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.

YanxinNet avatar Dec 07 '23 02:12 YanxinNet

+1

Setitch avatar Mar 05 '24 20:03 Setitch