${interestItems}
@@ -466,7 +471,7 @@ export class MgtPersonCardProfile extends BasePersonCardSection {
return null;
}
- const end = event.endMonthYear ? new Date(event.endMonthYear).getFullYear() : 'Current';
+ const end = event.endMonthYear ? new Date(event.endMonthYear).getFullYear() : this.strings.currentYearSubtitle;
return `${start} — ${end}`;
}
diff --git a/packages/mgt-components/src/components/mgt-person-card/sections/mgt-person-card-profile/strings.ts b/packages/mgt-components/src/components/mgt-person-card/sections/mgt-person-card-profile/strings.ts
new file mode 100644
index 0000000000..5968f5338d
--- /dev/null
+++ b/packages/mgt-components/src/components/mgt-person-card/sections/mgt-person-card-profile/strings.ts
@@ -0,0 +1,19 @@
+/**
+ * -------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
+ * See License in the project root for license information.
+ * -------------------------------------------------------------------------------------------
+ */
+
+export const strings = {
+ SkillsAndExperienceSectionTitle: 'Skills & Experience',
+ AboutCompactSectionTitle: 'About',
+ SkillsSubSectionTitle: 'Skills',
+ LanguagesSubSectionTitle: 'Languages',
+ WorkExperienceSubSectionTitle: 'Work Experience',
+ EducationSubSectionTitle: 'Education',
+ professionalInterestsSubSectionTitle: 'Professional Interests',
+ personalInterestsSubSectionTitle: 'Personal Interests',
+ birthdaySubSectionTitle: 'Birthday',
+ currentYearSubtitle: 'Current'
+};
diff --git a/packages/mgt-components/src/components/mgt-person-card/strings.ts b/packages/mgt-components/src/components/mgt-person-card/strings.ts
new file mode 100644
index 0000000000..a57b4672f0
--- /dev/null
+++ b/packages/mgt-components/src/components/mgt-person-card/strings.ts
@@ -0,0 +1,12 @@
+/**
+ * -------------------------------------------------------------------------------------------
+ * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
+ * See License in the project root for license information.
+ * -------------------------------------------------------------------------------------------
+ */
+
+export const strings = {
+ sendEmailLinkSubtitle: 'Send email',
+ startChatLinkSubtitle: 'Start chat',
+ showMoreSectionButton: 'Show more'
+};
diff --git a/stories/samples/general.stories.js b/stories/samples/general.stories.js
index a60978f857..6cab93b500 100644
--- a/stories/samples/general.stories.js
+++ b/stories/samples/general.stories.js
@@ -8,21 +8,37 @@
import { html } from 'lit-element';
import { withSignIn } from '../../.storybook/addons/signInAddon/signInAddon';
import { withCodeEditor } from '../../.storybook/addons/codeEditorAddon/codeAddon';
-import { localize } from '../../.storybook/addons/localizeAddon/localizationAddon';
-import { withKnobs } from '@storybook/addon-knobs';
export default {
title: 'Samples | General',
component: 'mgt-combo',
- decorators: [withSignIn, withCodeEditor, withKnobs, localize],
+ decorators: [withSignIn, withCodeEditor],
parameters: {
a11y: {
disabled: true
},
signInAddon: {
test: 'test'
- },
- strings: {
+ }
+ }
+};
+
+export const LoginToShowAgenda = () => html`
+
+
+`;
+
+export const Localization = () => html`
+
+
+
+
+
+
+
+
`;
export const theme = () => html`