@brightspace-ui/core 2.107.1 → 2.107.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- import { generateLink, localizeMarkup, LocalizeMixin } from '../localize-mixin.js';
1
+ import { generateLink, LocalizeMixin } from '../localize-mixin.js';
2
2
  import { LitElement } from 'lit';
3
3
 
4
4
  class Mission extends LocalizeMixin(LitElement) {
5
5
 
6
6
  static get localizeConfig() {
7
7
  const langResources = {
8
- 'en': { mission: '<p><link1>Transforming</link1> the way</p><link2> <b>{name}</b></link2> learns. \'<div></div>\'' },
9
- 'fr': { mission: '<p><link1>Transformer</link1> la façon dont</p><link2> <br></br> <b>{name}</b></link2> apprend' }
8
+ 'en': { mission: '<b>Transforming</b> the way <linkEarth>the world</linkEarth> learns' },
9
+ 'fr': { mission: '<b>Transformer</b> la façon dont <linkEarth>le monde</linkEarth> apprend' }
10
10
  };
11
11
  return {
12
12
  importFunc: async lang => langResources[lang]
@@ -14,12 +14,8 @@ class Mission extends LocalizeMixin(LitElement) {
14
14
  }
15
15
 
16
16
  render() {
17
- const surname = 'Smith';
18
- const surnameMarkup = localizeMarkup`<i>${surname}</i>`;
19
17
  const replacements = {
20
- name: 'Bill',
21
- link1: generateLink({ href: 'https://wikipedia.org/wiki/Culture_change', target: '_blank' }),
22
- link2: chunks => localizeMarkup`<d2l-link href="https://wikipedia.org/wiki/Earth" target="_blank"><em>${chunks}</em> ${surnameMarkup}</d2l-link>`
18
+ linkEarth: generateLink({ href: 'https://wikipedia.org/wiki/Earth', target: '_blank' }),
23
19
  };
24
20
 
25
21
  return this.localizeHTML('mission', replacements);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.107.1",
3
+ "version": "2.107.2",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",