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
+2 -10
View File
@@ -1,8 +1,7 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { useTranslation } from 'react-i18next';
import Head from 'next/head';
import { useTranslation } from 'next-i18next';
import { getTranslatedServerSideProps } from '@app/components/utilities/withTranslateProps';
import { OrgSettingsPage } from '@app/views/Settings/OrgSettingsPage';
export default function SettingsOrg() {
@@ -11,7 +10,7 @@ export default function SettingsOrg() {
return (
<>
<Head>
<title>{t('common:head-title', { title: t('settings-org:title') })}</title>
<title>{t('common.head-title', { title: t('settings.org.title') })}</title>
<link rel="icon" href="/infisical.ico" />
</Head>
<OrgSettingsPage />
@@ -20,10 +19,3 @@ export default function SettingsOrg() {
}
SettingsOrg.requireAuth = true;
export const getServerSideProps = getTranslatedServerSideProps([
'settings',
'settings-org',
'section-incident',
'section-members'
]);
@@ -1,8 +1,6 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import Head from 'next/head';
import { useTranslation } from 'next-i18next';
import { getTranslatedServerSideProps } from '@app/components/utilities/withTranslateProps';
import { CreateServiceAccountPage } from '@app/views/Settings/CreateServiceAccountPage';
export default function ServiceAccountPage() {
@@ -18,10 +16,3 @@ export default function ServiceAccountPage() {
}
ServiceAccountPage.requireAuth = true;
export const getServerSideProps = getTranslatedServerSideProps([
'settings',
'settings-org',
'section-incident',
'section-members'
]);