commit 916818ad8b62dd51e9a868a501cf4886ed952a09
parent 83fd72af934fc3838b500fef5702f6edf835ffb8
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 31 Jan 2022 02:52:42 +0100
Fix translations
Diffstat:
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/next-i18next.config.js b/next-i18next.config.js
@@ -2,6 +2,9 @@ module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'de-DE'],
- fallbackLng: 'en'
+ fallbackLng: 'en',
+ reloadOnPrerender: process.env.NODE_ENV === "production" ? false : true,
+ nsSeparator: false,
+ keySeparator: false
},
};
\ No newline at end of file
diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx
@@ -247,10 +247,6 @@ class Post extends PureComponent<Props, State> {
<Footer></Footer>
</div>
);
- } else if (error) {
- return (
- <div>Error: {error.message}</div>
- );
} else {
return (
<div className="min-h-full flex flex-col justify-between bg-[#fefefe]/[.95] dark:bg-[#14181E]/[.95]">