Skip to content

Let's use AI to Earn!

121 B
Raw Blame
export function removeLocalePrefix(path: string): string {
  return path.replace(/^\/[a-z]{2}(-[A-Z]{2})?/, '') || '/'
}