liqd / a4-product

A modern online participation platform for everyone developed by Liquid Democracy
http://beteiligung.in
GNU Affero General Public License v3.0
16 stars 3 forks source link

apps/actions: read current language from html tag #710

Closed MagdaN closed 5 years ago

MagdaN commented 5 years ago

timestamp.js is used to display ' xx minutes ago' instead of the timestamp if an action in the actionlist on the organisation's landing page happened less then an hour ago (it uses an external library, timeago.js). Because the text differs in each language we need to get the current language, which we can read from the html tag. The translation comes from timeago.js.