Skip to content

Commit

Permalink
fix: remove from url only /es or /it
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianpaolo Sinatra committed Dec 28, 2023
1 parent d3e427e commit 86fae14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/features/getUnlocalizedUrl.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import i18n from "src/i18n";

const getUnlocalizedUrl = (url: string) => {
console.log(i18n.languages);
const locales = i18n.languages;
const locales = i18n.languages.map((locale) => "/" + locale);

const regExp = new RegExp(locales.join("|"), "g");

Expand Down

0 comments on commit 86fae14

Please sign in to comment.