Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 8, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
international-types 0.7.0 -> 0.8.0 age adoption passing confidence

Release Notes

QuiiBz/next-international (international-types)

v0.8.0

Compare Source

App Router

Rewrite the URL to hide the locale

You might have noticed that by default, next-international redirects and shows the locale in the URL (e.g /en/products). This is helpful for users, but you can transparently rewrite the URL to hide the locale (e.g /products).

Navigate to the middleware.ts file and set the urlMappingStrategy to rewrite (the default is redirect):

// middleware.ts
const I18nMiddleware = createI18nMiddleware(['en', 'fr'] as const, 'fr', {
    urlMappingStrategy: 'rewrite'
})
useChangeLocale with basePath

When using useChangeLocale and if you have set a basePath option inside next.config.js, you'll also need to set it here:

const changeLocale = useChangeLocale({
  basePath: '/your-base-path'
})

What's Changed

New Contributors

Full Changelog: QuiiBz/next-international@0.7.0...0.8.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the UPDATE-MINOR label Aug 8, 2023
@renovate renovate bot requested review from a team, ModuloM and matthprost and removed request for a team August 8, 2023 06:46
@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2023

🦋 Changeset detected

Latest commit: 11274dc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@scaleway/use-i18n Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@renovate
Copy link
Contributor Author

renovate bot commented Aug 8, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@philibea philibea force-pushed the renovate/international-types-0.x branch from feb9d28 to 11274dc Compare August 8, 2023 09:16
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Merging #1437 (11274dc) into main (dc4b557) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1437   +/-   ##
=======================================
  Coverage   98.69%   98.69%           
=======================================
  Files          26       26           
  Lines         688      688           
  Branches       97       97           
=======================================
  Hits          679      679           
  Misses          1        1           
  Partials        8        8           

@philibea philibea merged commit 09a48aa into main Aug 8, 2023
@philibea philibea deleted the renovate/international-types-0.x branch August 8, 2023 09:39
@github-actions github-actions bot mentioned this pull request Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants