@salesforcedevs/docs-components 1.3.194-langpicker1-alpha → 1.3.194-langpicker2-alpha

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.194-langpicker1-alpha",
3
+ "version": "1.3.194-langpicker2-alpha",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -16,6 +16,8 @@
16
16
  toc-title={tocTitle}
17
17
  toc-options={tocOptions}
18
18
  enable-slot-change="true"
19
+ languages={languages}
20
+ language={language}
19
21
  >
20
22
  <doc-phase
21
23
  slot="doc-phase"
@@ -4,6 +4,7 @@ import { sentenceCase } from "sentence-case";
4
4
  import qs from "query-string";
5
5
  import { AmfModelParser } from "doc/amfModelParser";
6
6
  import { normalizeBoolean } from "dxUtils/normalizers";
7
+ import type { OptionWithLink } from "typings/custom";
7
8
  import type {
8
9
  AmfConfig,
9
10
  AmfMetadataTopic,
@@ -48,6 +49,8 @@ export default class AmfReference extends LightningElement {
48
49
  @api useOldSidebar: boolean = false;
49
50
  @api tocTitle?: string;
50
51
  @api tocOptions?: string;
52
+ @api languages!: OptionWithLink[];
53
+ @api language!: string;
51
54
  @track navigation = [] as NavigationItem[];
52
55
  @track versions: Array<ReferenceVersion> = [];
53
56
  @track showVersionBanner = false;