How to change Tweets text in the header?


#1

Hello everybody,

I would like to change Tweets text in the header of my embedded timeline to Tweetit (Finnish language).

I have not found anything related to this on https://dev.twitter.com/web/embedded-timelines#customization

To be honest, I would not like to use some css or jquery hacks … but if there is no other option, I would have to follow dirty way :-/ Probably using $(window).load(function() to be sure that iframe is loaded properly.

Thanks for any hint.

Filip


#2

Add a lang=“fi” attribute to your a.twitter-timeline fallback content for interpretation by Twitter’s JavaScript when rendering the page. If a parent element in the DOM declares a lang attribute the Twitter JavaScript should inherit that language context.

<a class="twitter-timeline" href="https://twitter.com/{screen_name}" lang="fi" data-widget-id="{widget_id}">

or

<html lang="fi">
...
<a class="twitter-timeline" href="https://twitter.com/{screen_name}" data-widget-id="{widget_id}">

#3

Thank you niall, that’s exactly what I want :wink:


#4