mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +01:00
Fix unknown country display on realtime page.
This commit is contained in:
parent
f7201c9cfc
commit
50bc2371b8
1 changed files with 6 additions and 1 deletions
|
|
@ -129,7 +129,12 @@ export default function RealtimeLog({ data, websites, websiteId }) {
|
||||||
id="message.log.visitor"
|
id="message.log.visitor"
|
||||||
defaultMessage="Visitor from {country} using {browser} on {os} {device}"
|
defaultMessage="Visitor from {country} using {browser} on {os} {device}"
|
||||||
values={{
|
values={{
|
||||||
country: <b>{countryNames[country]}</b>,
|
country: (
|
||||||
|
<b>
|
||||||
|
{countryNames[country] ||
|
||||||
|
intl.formatMessage({ id: 'label.unknown', defaultMessage: 'Unknown' })}
|
||||||
|
</b>
|
||||||
|
),
|
||||||
browser: <b>{BROWSERS[browser]}</b>,
|
browser: <b>{BROWSERS[browser]}</b>,
|
||||||
os: <b>{os}</b>,
|
os: <b>{os}</b>,
|
||||||
device: <b>{intl.formatMessage(devices[device])?.toLowerCase()}</b>,
|
device: <b>{intl.formatMessage(devices[device])?.toLowerCase()}</b>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue