hasadna / reportit-agent

1 stars 1 forks source link

update translations mechanism to extract stringify function(s) textual parameters #52

Closed noamoss closed 4 years ago

noamoss commented 4 years ago

related to https://github.com/hasadna/reportit-agent/issues/51

include textual parameters for stringification functions in the translation process.

a existing example would be:

        askShareWithOrg: async(record, question) => {
          this.infocards.appendCard('org:' + record._currentOrg.slug);
          this.content.addTo(`${question} ${record._currentOrg["Organization Name"]}?`);
        },

but this can be abstracted via #51

akariv commented 4 years ago

Done, although no script currently needs this.