feat(editor): Add Object global completions (#5407)

* ✏️ Add i18n info

*  Mount i18n keys

* ✏️ Fix typos in tests

*  Add `Object` global completion

*  Add `Object` global options completions

* 🧪 Add tests
This commit is contained in:
Iván Ovejero
2023-02-08 12:41:33 +01:00
committed by GitHub
parent d469a98073
commit d7b3923c2f
5 changed files with 60 additions and 6 deletions

View File

@@ -368,6 +368,13 @@ export class I18nClass {
'$workflow.name': this.baseText('codeNodeEditor.completer.$workflow.name'),
};
globalObject: Record<string, string | undefined> = {
assign: this.baseText('codeNodeEditor.completer.globalObject.assign'),
entries: this.baseText('codeNodeEditor.completer.globalObject.entries'),
keys: this.baseText('codeNodeEditor.completer.globalObject.keys'),
values: this.baseText('codeNodeEditor.completer.globalObject.values'),
};
luxonInstance: Record<string, string | undefined> = {
// getters
isValid: this.baseText('codeNodeEditor.completer.luxon.instanceMethods.isValid'),