fix(multi-stream) add screenshare display name to i18n
This commit is contained in:
parent
7420113079
commit
5ebe308953
|
@ -894,6 +894,7 @@
|
|||
"unavailableTitle": "Recording unavailable",
|
||||
"uploadToCloud": "Upload to the cloud"
|
||||
},
|
||||
"screenshareDisplayName": "{{name}}'s screen",
|
||||
"sectionList": {
|
||||
"pullToRefresh": "Pull to refresh"
|
||||
},
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
import { getGravatarURL } from '@jitsi/js-utils/avatar';
|
||||
import type { Store } from 'redux';
|
||||
|
||||
import { i18next } from '../../base/i18n';
|
||||
import { isStageFilmstripEnabled } from '../../filmstrip/functions';
|
||||
import { GRAVATAR_BASE_URL, isCORSAvatarURL } from '../avatar';
|
||||
import { getSourceNameSignalingFeatureFlag } from '../config';
|
||||
|
@ -299,8 +300,9 @@ export function getParticipantDisplayName(stateful: Object | Function, id: strin
|
|||
*/
|
||||
export function getScreenshareParticipantDisplayName(stateful: Object | Function, id: string) {
|
||||
const owner = getParticipantById(stateful, getFakeScreenShareParticipantOwnerId(id));
|
||||
const name = owner.name;
|
||||
|
||||
return `${owner.name}'s screen`;
|
||||
return i18next.t('screenshareDisplayName', { name });
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue