init create-fias

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-03-30 11:50:07 +05:00
commit 6265edf673
76 changed files with 37510 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { LanguageRoutes } from '../config/i18n/types';
const getLocaleCS = (): LanguageRoutes | undefined => {
if (typeof window !== 'undefined' && typeof document !== 'undefined') {
const match = document.cookie
.split('; ')
.find((row) => row.startsWith('NEXT_LOCALE='));
return match?.split('=')[1] as LanguageRoutes;
}
return undefined;
};
export default getLocaleCS;