Skip to content

armgit / eve

Public Imported from GitHub
0

The Open Framework for Building Agents

280 B
Raw Blame
import { notFound } from "next/navigation";
import * as root from "next/root-params";
import { isSupportedLanguage } from "./languages";

export const getRootLang = async () => {
  const lang = await root.lang();
  return lang && isSupportedLanguage(lang) ? lang : notFound();
};