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

@ -702,6 +702,7 @@
"pangolinServerAdmin": "Server Admin - Pangolin",
"licenseTierProfessional": "Professional License",
"licenseTierEnterprise": "Enterprise License",
"licenseTierCommercial": "Commercial License",
"licensed": "Licensed",
"yes": "Yes",
"no": "No",
@ -757,11 +758,11 @@
"idpJmespathAboutDescription": "The paths below use JMESPath syntax to extract values from the ID token.",
"idpJmespathAboutDescriptionLink": "Learn more about JMESPath",
"idpJmespathLabel": "Identifier Path",
"idpJmespathLabelDescription": "The JMESPath to the user identifier in the ID token",
"idpJmespathLabelDescription": "The path to the user identifier in the ID token",
"idpJmespathEmailPathOptional": "Email Path (Optional)",
"idpJmespathEmailPathOptionalDescription": "The JMESPath to the user's email in the ID token",
"idpJmespathEmailPathOptionalDescription": "The path to the user's email in the ID token",
"idpJmespathNamePathOptional": "Name Path (Optional)",
"idpJmespathNamePathOptionalDescription": "The JMESPath to the user's name in the ID token",
"idpJmespathNamePathOptionalDescription": "The path to the user's name in the ID token",
"idpOidcConfigureScopes": "Scopes",
"idpOidcConfigureScopesDescription": "Space-separated list of OAuth2 scopes to request",
"idpSubmit": "Create Identity Provider",
@ -785,9 +786,9 @@
"defaultMappingsOptional": "Default Mappings (Optional)",
"defaultMappingsOptionalDescription": "The default mappings are used when when there is not an organization policy defined for an organization. You can specify the default role and organization mappings to fall back to here.",
"defaultMappingsRole": "Default Role Mapping",
"defaultMappingsRoleDescription": "JMESPath to extract role information from the ID token. The result of this expression must return the role name as defined in the organization as a string.",
"defaultMappingsRoleDescription": "The result of this expression must return the role name as defined in the organization as a string.",
"defaultMappingsOrg": "Default Organization Mapping",
"defaultMappingsOrgDescription": "JMESPath to extract organization information from the ID token. This expression must return the org ID or true for the user to be allowed to access the organization.",
"defaultMappingsOrgDescription": "This expression must return the org ID or true for the user to be allowed to access the organization.",
"defaultMappingsSubmit": "Save Default Mappings",
"orgPoliciesEdit": "Edit Organization Policy",
"org": "Organization",

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>