Fix extension lookup

This commit is contained in:
Jordan Wages 2025-06-21 23:58:30 -05:00
commit 6279cfe6e0

View file

@ -33,7 +33,9 @@ Do not add any other keys, text, or formatting.`;
class CustomerTermBase {
constructor(nameId, operators) {
this.extension = ExtensionParent.GlobalManager.getExtension("ai-filter@example");
// Lookup our extension instance using the ID from manifest.json
// so locale strings are resolved correctly.
this.extension = ExtensionParent.GlobalManager.getExtension("ai-filter@jordanwages");
this.id = "aifilter#" + nameId;
this.name = this.extension.localeData.localizeMessage(nameId);
this.operators = operators;