@salesforcedevs/docs-components 1.29.0-aitoolbar-alpha → 1.29.0-aitoolbar-alpha1
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
|
@@ -77,10 +77,11 @@ export default class AmfReference extends LightningElement {
|
|
|
77
77
|
* AI toolbar is only enabled for markdown-based references in the en-us locale.
|
|
78
78
|
*/
|
|
79
79
|
get showAiToolbar(): boolean {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
);
|
|
80
|
+
if (this.showSpecBasedReference) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
const locale = this.language?.toLowerCase() ?? "en-us";
|
|
84
|
+
return locale === "en-us";
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
@api
|