adjust php version text

This commit is contained in:
Km.Van
2025-08-14 12:49:52 +08:00
parent 95b84b32d2
commit 060b73838d

View File

@@ -27,12 +27,15 @@ export const PhpInfoPhpVersion: FC = observer(() => {
href="https://www.php.net/"
title={gettext('Visit PHP.net Official website')}
>
{phpVersion}
{compare === -1
? ` ${template(gettext('{{latestPhpVersion}} (Latest)'), {
latestPhpVersion,
})}`
: ''}
? ` ${template(
gettext('{{oldVersion}} (Latest: {{latestPhpVersion}})'),
{
oldVersion: phpVersion,
latestPhpVersion,
}
)}`
: phpVersion}
</Link>
);
});