Skip to content

The open alternative to Salesforce, designed for AI.

328 B
Raw Blame
import { notFound } from 'next/navigation';
import { type DocumentationSupportedLanguage } from 'twenty-shared/constants';

import { isWebsiteLocale } from './is-website-locale';

export const resolveLocaleParam = (
  raw: string,
): DocumentationSupportedLanguage => {
  if (!isWebsiteLocale(raw)) notFound();
  return raw;
};