Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 tasks done
YanxinNet opened this issue Dec 7, 2023 · 1 comment
Open
5 tasks done
Labels
enhancement New feature or request

Comments

@YanxinNet
Copy link

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

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
@Setitch

This comment was marked as spam.

@rubiin rubiin added the enhancement New feature or request label Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants