Skip to content

Commit

Permalink
docs: fix person-card sections component names in localization (#2888)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii authored Nov 30, 2023
1 parent 700f6ef commit f3e8599
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class MgtContact extends BasePersonCardSection {
title: {
icon: getSvg(SvgIcon.Person),
showCompact: false,
title: this.strings.titleTitle
title: this.strings.personTitle
},
officeLocation: {
icon: getSvg(SvgIcon.OfficeLocation),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const strings = {
businessPhoneTitle: 'Business Phone',
cellPhoneTitle: 'Mobile Phone',
departmentTitle: 'Department',
titleTitle: 'Title',
personTitle: 'Title',
officeLocationTitle: 'Office Location',
copyToClipboardButton: 'Copy to clipboard'
};
17 changes: 7 additions & 10 deletions stories/components/personCard/personCard.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,10 @@ export const localization = () => html`
import { LocalizationHelper } from '@microsoft/mgt-element';
LocalizationHelper.strings = {
_components: {
login: {
signInLinkSubtitle: 'تسجيل الدخول',
signOutLinkSubtitle: 'خروج'
},
'person-card': {
showMoreSectionButton: 'أظهر المزيد' // global declaration
},
'person-card-contact': {
'contact': {
contactSectionTitle: 'اتصل',
emailTitle: 'البريد الإلكتروني',
chatTitle: 'دردشة',
Expand All @@ -78,21 +74,22 @@ export const localization = () => html`
titleTitle: 'لقب',
officeLocationTitle: 'موقع المكتب'
},
'person-card-organization': {
'organization': {
reportsToSectionTitle: 'تقارير ل',
directReportsSectionTitle: 'تقارير مباشرة',
organizationSectionTitle: 'منظمة',
youWorkWithSubSectionTitle: 'انت تعمل مع',
userWorksWithSubSectionTitle: 'يعمل مع'
},
'person-card-messages': {
'messages': {
emailsSectionTitle: 'رسائل البريد الإلكتروني'
},
'person-card-files': {
'file-list': {
filesSectionTitle: 'الملفات',
sharedTextSubtitle: 'مشترك'
sharedTextSubtitle: 'مشترك',
showMoreSubtitle: 'Show more 📂'
},
'person-card-profile': {
'profile': {
SkillsAndExperienceSectionTitle: 'المهارات والخبرة',
AboutCompactSectionTitle: 'حول',
SkillsSubSectionTitle: 'مهارات',
Expand Down
13 changes: 7 additions & 6 deletions stories/samples/general.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,25 @@ export const Localization = () => html`
'person-card': {
showMoreSectionButton: 'أظهر المزيد' // global declaration
},
'person-card-contact': {
'contact': {
contactSectionTitle: 'اتصل'
},
'person-card-organization': {
'organization': {
reportsToSectionTitle: 'تقارير ل',
directReportsSectionTitle: 'تقارير مباشرة',
organizationSectionTitle: 'منظمة',
youWorkWithSubSectionTitle: 'انت تعمل مع',
userWorksWithSubSectionTitle: 'يعمل مع'
},
'person-card-messages': {
'messages': {
emailsSectionTitle: 'رسائل البريد الإلكتروني'
},
'person-card-files': {
'file-list': {
filesSectionTitle: 'الملفات',
sharedTextSubtitle: 'مشترك'
sharedTextSubtitle: 'مشترك',
showMoreSubtitle: 'Show more 📂'
},
'person-card-profile': {
'profile': {
SkillsAndExperienceSectionTitle: 'المهارات والخبرة',
AboutCompactSectionTitle: 'حول',
SkillsSubSectionTitle: 'مهارات',
Expand Down

0 comments on commit f3e8599

Please sign in to comment.