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.
こんにちは。
私も同じ問題に遭遇しました。
ローカライゼーションの問題は、おそらくユーザーが接続されていないため、そのロケールを推定するのが難しいことにあると思われますが、設定によるものでしょうか? Discourseインスタンスが単一言語コミュニティのみを対象としている場合、それは理にかなっています!
これはずいぶん前から存在しているように見えます。これが Contribute > Feature request(機能リクエスト)の領域に分類されるのか、それとも Contribute > Bug(バグ)の分類になるのか気になります。 ![]()
こちらで修正を提出しました。
このトピックは、最後の返信から2日後に自動的に閉じられました。新しい返信は許可されていません。
