fix(i18n): load locales from file system, instead of http-backend

This commit is contained in:
Amruth Pillai
2022-03-05 10:08:28 +01:00
parent 7c73685759
commit a4983ac6bc
74 changed files with 105 additions and 142 deletions

View File

@ -4,7 +4,6 @@ import { Theme } from '@reactive-resume/schema';
import clsx from 'clsx';
import get from 'lodash/get';
import isEmpty from 'lodash/isEmpty';
import Image from 'next/image';
import { useMemo } from 'react';
import Markdown from '@/components/shared/Markdown';
@ -25,10 +24,9 @@ export const MastheadSidebar: React.FC = () => {
return (
<div className="col-span-2 grid justify-items-start gap-3 px-4 pt-4">
{photo.visible && !isEmpty(photo.url) && (
<Image
<img
alt={name}
src={photo.url}
objectFit="cover"
width={photo.filters.size}
height={photo.filters.size}
className={getPhotoClassNames(photo.filters)}