refactor(ui): changed frontend to normal i18n without SSR

This commit is contained in:
akhilmhdh
2023-05-09 23:28:23 +05:30
parent 420d71d923
commit 3561c589b1
198 changed files with 5008 additions and 5253 deletions
+1 -9
View File
@@ -1,7 +1,6 @@
import { useTranslation } from 'react-i18next';
import Head from 'next/head';
import { getTranslatedStaticProps } from '@app/components/utilities/withTranslateProps';
import { ProjectSettingsPage } from '@app/views/Settings/ProjectSettingsPage';
const ProjectSettings = () => {
@@ -10,10 +9,9 @@ const ProjectSettings = () => {
return (
<>
<Head>
<title>{t('common:head-title', { title: t('settings-project:title') })}</title>
<title>{t('common.head-title', { title: t('settings.project.title') })}</title>
<link rel="icon" href="/infisical.ico" />
</Head>
<ProjectSettingsPage />
</>
);
@@ -22,9 +20,3 @@ const ProjectSettings = () => {
export default ProjectSettings;
ProjectSettings.requireAuth = true;
export const getServerSideProps = getTranslatedStaticProps([
'settings',
'settings-project',
'section-token'
]);