Oneboxes text not translated

Hey all,

when I paste a link from the same Discourse installation domain, I get a nice (onebox?) summary.

At the bottom a line reports the reading time, but the string is not translated into my installation language.

In Transifex the string is translated:

Also there’s an [image] text tag at the beginning of the box.

Why :question:

1 Like

Perhaps @techapj can assist as he built this feature. The translation would be in the onebox project though.


Hi @vulkanino,

String “Reading time” should be getting localized.

I looked at your Discourse instance:

and noticed that translation is not working at all. Notice the Sign Up / Login button text, footer notice. Everything is in English. Why is that? Once we figure that out the original issue you reported should be fixed.


It is fully translated! Maybe Discourse finds your browser or system language and adapts to it?

Do you have this setting enabled: set locale from accept language header

If yes, then that must be why “Reading time” is not getting translated, because the onebox makes anonymous request.


I had the option enabled but I don’t think that’s the problem. Now I have disabled it and the onebox still shows the text in English.

This is the topic, please check:

You will need to onebox the topic again (add ?1 at the end of the URL). See translated onebox in action here: