Dates always show up in default (US) locale in embedded comments.
Hmm. What do you mean “embedded comments”? Can you provide some detailed steps to reproduce this bug?
- Switch Discourse locale to any other than English
- Embed Discourse comments on a website
- UI is localised but dates are not on the embedded (iframe) comments
Any updates on this?
Still in English, but we can now at least hide them with CSS.
Happy anniversary!
![]()
Darkness leads me to this bug under the pale moonlight ![]()
But as a general tip, it would be definitely better if there is a link or screenshots. I can hardly understand what you are talking about if I haven’t translated the documentation ![]()
Embed comments:
The problem is in embed/comments.html.erb:
then ember_helper.rb:
The fix can be either using the FreedomPatches::Rails4.distance_of_time_in_words, I18n.localize(dt, format: I18n.t("datetime_formats.formats.short_no_year")) or replace the link by a different translation string as the digest email.
; I don’t quite understand the current status of server time formats so I won’t fire PR here.
안녕하세요,
저도 동일한 문제를 겪었습니다.
여기서 로컬라이제이션 관련 문제를 파악했습니다. 현재 연결된 사용자가 없을 수 있기 때문에 해당 사용자의 로케일을 추정하는 것이 복잡할 수 있습니다… 하지만 이걸 설정으로 처리할 수는 없을까요? 특정 언어 커뮤니티만 대상으로 하는 디스커스 인스턴스의 경우, 이렇게 하면 합리적일 것 같습니다!
이 문제는 꽤 오래전부터 있었던 것 같습니다. Contribute > Feature 요청 영역으로 더 분류되는 게 맞지, Contribute > Bug 버킷에는 안 맞지 않을까요? ![]()
여기 수정 사항을 제출했습니다:
이 주제는 마지막 답변 후 2일 자동으로 닫혔습니다. 더 이상 답변이 허용되지 않습니다.
