fix(multi-stream) add screenshare display name to i18n

This commit is contained in:
William Liang 2022-04-18 10:58:41 -04:00 committed by Дамян Минков
parent 7420113079
commit 5ebe308953
2 changed files with 4 additions and 1 deletions

View File

@ -894,6 +894,7 @@
"unavailableTitle": "Recording unavailable",
"uploadToCloud": "Upload to the cloud"
},
"screenshareDisplayName": "{{name}}'s screen",
"sectionList": {
"pullToRefresh": "Pull to refresh"
},

View File

@ -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 });
}
/**