# js.composer.error.post\_length のテキストを更新できません

**URL:** <https://meta.discourse.org/t/cannot-update-text-for-js-composer-error-post-length/254611>\
**Category:** Product Support\
**Created:** [2023 年 2 月 9 日午後 1:23 UTC](https://meta.discourse.org/t/cannot-update-text-for-js-composer-error-post-length/254611 "2023-02-09T13:23:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![zcuric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zcuric/32/292837_2.png) [@zcuric](https://meta.discourse.org/u/zcuric)\
**Post date:** [2023 年 2 月 9 日午後 1:23 UTC](https://meta.discourse.org/t/cannot-update-text-for-js-composer-error-post-length/254611/1 "2023-02-09T13:23:00Z")

</div>

`js.composer.error.post_length` のテキストを更新しようとしています。これは、本番環境、ステージング環境、およびローカル環境の 2.9 および 3.1.0.beta2 で発生しています。

フロントエンドでは、値が設定されているにもかかわらず `[missing {{min}} value]` と表示されます。

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/b/8/7b8bf55dfca08c71703181c9b8305242e9616d06.png)

エラーログには次のように表示されています。

```plaintext
NoMethodError (undefined method `scan' for {:one=>"Post must be at least %{count} character", :other=>"Post must be at least %{count} characters"}:Hash keys = text.scan(pattern) ^^

```

```plaintext
Message

NoMethodError (undefined method `scan' for {:one=>"Post must be at least %{count} character", :other=>"Post must be at least %{count} characters"}:Hash

    keys = text.scan(pattern)
               ^^^^^
lib/i18n/i18n_interpolation_keys_finder.rb:6:in `find'
app/models/translation_override.rb:123:in `check_interpolation_keys'
app/models/translation_override.rb:64:in `upsert!'
app/controllers/admin/site_texts_controller.rb:88:in `update'
app/controllers/application_controller.rb:414:in `block in with_resolved_locale'
app/controllers/application_controller.rb:414:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:74:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/missing_avatars.rb:22:in `call'
lib/middleware/turbo_dev.rb:31:in `call'

Backtrace

lib/i18n/i18n_interpolation_keys_finder.rb:6:in `find'
app/models/translation_override.rb:123:in `check_interpolation_keys'
activesupport (7.0.4) lib/active_support/callbacks.rb:400:in `block in make_lambda'
activesupport (7.0.4) lib/active_support/callbacks.rb:199:in `block (2 levels) in halting'
activesupport (7.0.4) lib/active_support/callbacks.rb:687:in `block (2 levels) in default_terminator'
activesupport (7.0.4) lib/active_support/callbacks.rb:686:in `catch'
activesupport (7.0.4) lib/active_support/callbacks.rb:686:in `block in default_terminator'
activesupport (7.0.4) lib/active_support/callbacks.rb:200:in `block in halting'
activesupport (7.0.4) lib/active_support/callbacks.rb:595:in `block in invoke_before'
activesupport (7.0.4) lib/active_support/callbacks.rb:595:in `each'

Env

HTTP HOSTS: 127.0.0.1:3000
```

---

_[View the full topic](https://meta.discourse.org/t/cannot-update-text-for-js-composer-error-post-length/254611)._
