intergram icon indicating copy to clipboard operation
intergram copied to clipboard

Custom text for "send a message"

Open TVBZ opened this issue 5 years ago • 5 comments

Hi,

I want to use intergram in a different language. How to set a custom text for:

  • "send a message"
  • "you" (in chat bubbles)

Thanks! Cool project :)

TVBZ avatar Feb 23 '20 13:02 TVBZ

Hi @TVBZ, you can override the placeholder text by suppling a different placeholderText in the JSON configuration

I'm not sure you can change "you" part in the chat bubbles without forking. If you want I can merge a PR making it configurable just like placeholderText.

idoco avatar Feb 25 '20 10:02 idoco

Hi @idoco. Thanks for the info. Indeed seams there is no option to change the "you". Too bad.

TVBZ avatar Feb 27 '20 17:02 TVBZ

@idoco I believe this placeholderText variable should be included in the instructions at the front page of this github.

And it would be great if that "You" could be replaced too.

davidtaubmann avatar Jun 15 '23 19:06 davidtaubmann

If the "You" text you're saying is the one from the web guest/visitor, it can be replaced with the property visitorPronoun. Just as it was talked on this issue: https://github.com/idoco/intergram/issues/99

And implemented on this PR: https://github.com/idoco/intergram/pull/100

NFKData avatar Jun 15 '23 20:06 NFKData

@NFKData This variable visitorPronoun doesn't seem to be working when established in the intergramCustomizations . I've read the mentioned PR's, but can't understand... How is this "property" established?

davidtaubmann avatar Jun 29 '23 19:06 davidtaubmann