Skip to content

Commit 2928148

Browse files
committed
remove i18n
1 parent ecc1278 commit 2928148

File tree

9 files changed

+16
-103
lines changed

9 files changed

+16
-103
lines changed

.env.development

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
WARNING_THIS_FILE_IS_NOT_GITIGNORED=true
2+
13
NEXT_PUBLIC_URL=http://localhost:3000

.env.production

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
NEXT_PUBLIC_URL=https://glib.gunivers.net
1+
WARNING_THIS_FILE_IS_NOT_GITIGNORED=true
2+
3+
NEXT_PUBLIC_URL=https://trapped-chest.gunivers.net

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ yarn-error.log*
4242
/datapacks/release
4343
.env
4444
datapacks/contributors.json
45+
46+
Archive.zip

components/layout.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@ import { Box } from "@mui/system";
55
import Head from "next/head";
66
import { useEffect, useRef, useState } from "react";
77
import Link from 'next/link'
8-
import useTranslation from "next-translate/useTranslation";
98
import useResizeObserver from "@react-hook/resize-observer";
10-
import CountUp, { useCountUp } from "react-countup"
119

1210
export default function Layout({ children, bg, getHeightViewport }: any) {
1311

14-
const { t, lang } = useTranslation('common')
15-
1612
const NavBar = useRef<HTMLDivElement>(null);
1713
useResizeObserver(NavBar, (entry) => getHeightViewport(`(100vh - ${entry.contentRect.height}px)`));
1814
const countUpRef = useRef(null);
@@ -30,12 +26,12 @@ export default function Layout({ children, bg, getHeightViewport }: any) {
3026
return (
3127
<>
3228
<Head>
33-
<title>{t('site.name')}</title>
29+
<title>Trapped Chest</title>
3430
</Head>
3531
<AppBar position="fixed" id="NavBar" sx={{ zIndex: (theme) => theme.zIndex.drawer + 1 }} ref={NavBar}>
3632
<Toolbar>
3733
<Typography variant="h4" noWrap sx={{ flexGrow: 1 }}>
38-
{t('site.name')}
34+
Trapped Chest
3935
</Typography>
4036

4137
{/* <Typography variant="h3" sx={{ mx: 'auto' }}>

i18n.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

locales/en/common.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

locales/fr/common.json

Lines changed: 0 additions & 35 deletions
This file was deleted.

next.config.js

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
/** @type {import('next').NextConfig} */
2-
const nextTranslate = require('next-translate')
32

4-
module.exports =
5-
nextTranslate({
6-
reactStrictMode: true,
7-
images: {
8-
domains: ['secure.gravatar.com'],
9-
},
10-
// async redirects() {
11-
// return [
12-
// {
13-
// source: '/docs',
14-
// destination: 'https://stackoverflow.com/posts/66662033',
15-
// permanent: false,
16-
// basePath: false
17-
// },
18-
// ]
19-
// },
20-
})
3+
4+
const nextConfig = {
5+
/* config options here */
6+
}
7+
8+
module.exports = nextConfig;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8+
"export": "next export",
89
"start": "next start -p 50212",
910
"lint": "next lint"
1011
},

0 commit comments

Comments
 (0)