more fixes

This commit is contained in:
Lokowitz
2025-05-17 20:16:26 +00:00
parent d9ee40c898
commit 547e777eb0
3 changed files with 10 additions and 9 deletions

View File

@@ -15,7 +15,7 @@ import {
import Link from "next/link";
import { cache } from "react";
import SettingsSectionTitle from "@app/components/SettingsSectionTitle";
import { useTranslations } from "next-intl";
import { getTranslations } from 'next-intl/server';
interface UserLayoutProps {
children: React.ReactNode;
@@ -27,7 +27,7 @@ export default async function UserLayoutProps(props: UserLayoutProps) {
const { children } = props;
const t = useTranslations();
const t = await getTranslations();
let user = null;
try {

View File

@@ -384,10 +384,10 @@ export default function LicensePage() {
<Check />
{licenseStatus?.tier ===
"PROFESSIONAL"
? t('licenseTierProfessional')
? t('licenseTierCommercial')
: licenseStatus?.tier ===
"ENTERPRISE"
? t('licenseTierEnterprise')
? t('licenseTierCommercial')
: t('licensed')}
</div>
</div>