Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #31 from ReGuilded/i18nfix
Browse files Browse the repository at this point in the history
fix: non-specified region languages not redirecting
closes #22
  • Loading branch information
ItzNxthaniel authored Jan 2, 2024
2 parents 75b3406 + e2a9601 commit d776b78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ module.exports = {
i18n: {
defaultLocale: "en-US",
locales: ["en-US", "es-ES", "fr-FR", "zh-CN"],
fallbackLng: {
default: ["en"],
'es': ["es-ES"],
'fr': ["fr-FR"],
'zh': ["zh-CN"]
},
nonExplicitSupportedLngs: true
},

localePath: typeof window === "undefined" ? require("path").resolve("./lang") : '/lang',
Expand Down

3 comments on commit d776b78

@ItzNxthaniel
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correction this closes #27

@vercel
Copy link

@vercel vercel bot commented on d776b78 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

reguilded-website – ./frontend/

reguilded-website-git-main-reguilded.vercel.app
www.reguilded.dev
reguilded-website-reguilded.vercel.app
reguilded.dev

@vercel
Copy link

@vercel vercel bot commented on d776b78 Jan 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

reguilded-webapi – ./backend/

reguilded-webapi-reguilded.vercel.app
reguilded-webapi-git-main-reguilded.vercel.app
api.reguilded.dev

Please sign in to comment.