@akinon/next 1.43.0-rc.11 → 1.43.0-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@ import settings from 'settings';
|
|
|
2
2
|
import { LayoutProps, PageProps, RootLayoutProps } from '../../types';
|
|
3
3
|
import { redirect } from 'next/navigation';
|
|
4
4
|
import { ServerVariables } from '../../utils/server-variables';
|
|
5
|
-
import {
|
|
5
|
+
import { getTranslations } from '../../utils/server-translation';
|
|
6
6
|
import { ROUTES } from 'routes';
|
|
7
7
|
import logger from '../../utils/log';
|
|
8
8
|
|
|
@@ -50,7 +50,7 @@ const addRootLayoutProps = async (componentProps: RootLayoutProps) => {
|
|
|
50
50
|
return redirect(ROUTES.HOME);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
const translations = await
|
|
53
|
+
const translations = await getTranslations(params.locale);
|
|
54
54
|
componentProps.translations = translations;
|
|
55
55
|
|
|
56
56
|
const locale = settings.localization.locales.find(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/next",
|
|
3
3
|
"description": "Core package for Project Zero Next",
|
|
4
|
-
"version": "1.43.0-rc.
|
|
4
|
+
"version": "1.43.0-rc.12",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"set-cookie-parser": "2.6.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@akinon/eslint-plugin-projectzero": "1.43.0-rc.
|
|
33
|
+
"@akinon/eslint-plugin-projectzero": "1.43.0-rc.12",
|
|
34
34
|
"@types/react-redux": "7.1.30",
|
|
35
35
|
"@types/set-cookie-parser": "2.4.7",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "6.7.4",
|