-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat: support localePattern
option for locale structured with directory
#270
Conversation
lib/types/settings.ts
Outdated
* You need to use the locale capture as a named capture `?<locale>`, so it’s be able to capture from the path of the locale resources. | ||
* If you omit it, it will be captured from the resource path with the same regular expression pattern as `vue-cli-plugin-i18n`. | ||
*/ | ||
localePattern?: RegExp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regular expressions cannot be serialized to JSON, so users can only use .eslintrc.js
style configurations. Could you change it to accept string | RegExp
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, Indeed 😅
we have to support cases in other formats but .eslintrc.js
, such as .eslintrc.yaml
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a mistake the status.
I've just fixed it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.