The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
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;
};