# 社区健康仪表板上的图表标题未进行本地化

**URL:** <https://meta.discourse.org/t/titles-on-graphs-in-community-health-dashboard-are-not-localized/302776>\
**Category:** Bug\
**Tags:** translation\
**Created:** [2024年四月7日 15:15 UTC](https://meta.discourse.org/t/titles-on-graphs-in-community-health-dashboard-are-not-localized/302776 "2024-04-07T15:15:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [2025年一月2日 02:22 UTC](https://meta.discourse.org/t/titles-on-graphs-in-community-health-dashboard-are-not-localized/302776/6 "2025-01-02T02:22:44Z")

</div>

这应该可以解决报告问题：

> <https://github.com/discourse/discourse/pull/30524>
>
> Our bulk report endpoint uses \`hijack\`, which does not
> use the current user's l…ocale via the \`with\_resolved\_locale\`
> method in \`ApplicationController\`. This is happening because
> we are doing \`around\_action\` to set the locale, then calling
> the code in the block inside the action directly when we use
> \`hijack\`.
> 
> We can fix this by capturing \`I18n.locale\` when starting the
> hijack then using \`I18n.with\_locale\` when evaluating the
> block inside \`hijack\`, this way the translations will always
> use the correct locale based on the current user.
> 
> c.f. https://meta.discourse.org/t/titles-on-graphs-in-community-health-dashboard-are-not-localized/302776/5

关于“回复给”问题，看起来我们的捷克语翻译有点不足，我们的德语 `server.de.yml` 文件中有 `user_notifications.in_reply_to`，但 `server.cs.yml` 没有。当缺少键时，翻译会回退到英语。

---

_[View the full topic](https://meta.discourse.org/t/titles-on-graphs-in-community-health-dashboard-are-not-localized/302776)._
