-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Use default locale's custom path if not defined for a locale #354
Use default locale's custom path if not defined for a locale #354
Conversation
Codecov Report
@@ Coverage Diff @@
## 6.x #354 +/- ##
===================================
Coverage 100% 100%
===================================
Files 2 2
Lines 6 6
===================================
Hits 6 6 Continue to review full report at Codecov.
|
src/helpers/utils.js
Outdated
* @param {Object} pages Pages options from module's configuration | ||
* @param {Array} locales Locale from module's configuration | ||
* @param {String} pagesDir Pages dir from Nuxt's configuration | ||
* @param {String} defaultLocale Pages dir from Nuxt's configuration |
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.
the description seems to have been copy-pasted from the previous line 😕
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.
fixed 😜
cc4e8a1
to
e315432
Compare
e315432
to
814f4a5
Compare
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.
Thanks for the PR @jeanphilippeds.
This change makes sense to me but it should be considered as a breaking change. I've changed the base branch to 6.x
and we'll release this in the next major version.
I left one small comment, could you address it before we merge this?
Co-Authored-By: Paul Gascou-Vaillancourt <[email protected]>
@jeanphilippeds I know this is an old PR but I've just stumbled upon the behavior introduced by this change and I do wonder how it does make sense... When we have
{
'fr': '/about-fr'
} With this change here the English locale will also use the Without this change, the Maybe the intention here was to handle a case like for example:
{
'fr': '/about-fr'
} And then both the |
Hello,
Here is a PR to use default locale's custom path when a custom path is not defined for a locale.
It can help if you have a lot of locales to manage and only want a custom path for a few of them.