# テーマ翻訳の上書きは管理者言語のみに適用

**URL:** <https://meta.discourse.org/t/theme-translation-overrides-only-apply-to-the-administrators-language/226870>\
**Category:** Bug\
**Created:** [2022 年 5 月 12 日午後 2:18 UTC](https://meta.discourse.org/t/theme-translation-overrides-only-apply-to-the-administrators-language/226870 "2022-05-12T14:18:45Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2025 年 5 月 9 日午前 7:56 UTC](https://meta.discourse.org/t/theme-translation-overrides-only-apply-to-the-administrators-language/226870/8 "2025-05-09T07:56:20Z")

</div>

> [@david](#):
>
> これは私たちが認識している制限ですが、現時点では改善のETAはありません。理想的には、/admin/customize/textと同じように機能させ、各言語のオーバーライドを設定できるようにします。

これが実装されたと思います

> <https://github.com/discourse/discourse/pull/26150>
>
> \## Why this change?
> 
> In the current Discourse theme admin UI, admins are limi…ted to editing the label in their own language only. This PR changes that.
> 
> \<details\>\<summary\>Changes\</summary\>
> 
> \- Add \`ComboBox\` in \`admin-customize-theme-show.js\` with \`availableLocales\` based on \`admin-site-text-index.js\`
> \- Add \`locale\` property to request
> \- Add check in update\_translations method to check \`locale\` property
> 
> \</details\>
> 
> \### TODO:
> \- \[x\] Tests ( would love some input on that, what would be a good test for the changes that I've made, examples )
> \- \[x\] fetching translations for the selected language; without it, the Admin might get lost. I thought of adding a get method \[here\](https://github.com/Grubba27/discourse/blob/aa30541a11b71ab0dc0f1c995ba9767f1a6e3ff9/config/routes.rb#L232-L234) to get translations -\> \` get "translations/:key" =\> "themes#translations"\`)
> 
> 
> 
> 
> \## Demo
> 
> https://github.com/discourse/discourse/assets/70247653/6849fdfb-761b-4d26-9986-23880e49a472

---

_[View the full topic](https://meta.discourse.org/t/theme-translation-overrides-only-apply-to-the-administrators-language/226870)._
