tattle-made / DAU

MCA Tipline for Deepfakes
GNU General Public License v3.0
6 stars 0 forks source link

[10_W0] Trigger user-response messages in language selected by the user #100

Closed tarunima closed 7 months ago

tarunima commented 7 months ago

Scope of Work

dennyabrain commented 7 months ago

Since we have done this for the english templates, it would be relatively simpler to replicate this for the other languages. Most of the code relevant to this feature is here. And their associated templates are here

run the test using mix test test/dau/user_message/templates/FILENAME.exs

The static templates are stored here

A foot gun I had encountered last time was that when I was editing these template files using VSCode, it was removing certain spaces at the end of line which would cause the template to not match the text whitelisted on gupshup. I could not figure out which vscode extension was doing it, so I resorted to using vim to edit the files as a stopgap solution. Its a bit inconvinient but flagging this in case you end up encountering the same issue.

dennyabrain commented 7 months ago

All 18 approved hindi templates have been incorporated into the dashboard

Image