# Administrador -\> Personalizar -\> Texto comportándose mal

**URL:** <https://meta.discourse.org/t/admin-customize-text-behaving-badly/285691>\
**Category:** Bug\
**Tags:** translation, fixed\
**Created:** [16 Noviembre, 2023 09:00 UTC](https://meta.discourse.org/t/admin-customize-text-behaving-badly/285691 "2023-11-16T09:00:09Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [16 Noviembre, 2023 09:00 UTC](https://meta.discourse.org/t/admin-customize-text-behaving-badly/285691/1 "2023-11-16T09:00:09Z")

</div>

Estoy encontrando muchos problemas similares a este al intentar filtrar en los prompts de mi chatbot.

La parte realmente extraña es que el comportamiento puede ser bueno en una instalación pero no en otra.

Tome el filtro muy simple de `chatbot.prompt` en Administración → Personalizar → Texto:

Instalación que funciona:

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/0/6/806c2ee83f200c62524586129d8112445985973f.png)

Instalación fallida:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/3/8/f38d63a71951b168132e1d0e5d8f8be88e7f9720.png)

```plaintext
NoMethodError (undefined method `scan' for {:basic=>"You are a helpful assistant.", :agent=>"You are a helpful assistant. You have great tools in the form of functions that give you the power to get newer information. Only use the functions you have been provided with. The current date and time is %{current_date_time}. Only respond to the last question, using the prior information as context, if appropriate."}:Hash)
lib/i18n/i18n_interpolation_keys_finder.rb:6:in `find'
app/controllers/admin/site_texts_controller.rb:183:in `record_for'
app/controllers/admin/site_texts_controller.rb:249:in `block in find_translations'
app/controllers/admin/site_texts_controller.rb:234:in `each'
app/controllers/admin/site_texts_controller.rb:234:in `find_translations'
app/controllers/admin/site_texts_controller.rb:34:in `index'
app/controllers/application_controller.rb:422:in `block in with_resolved_locale'
app/controllers/application_controller.rb:422:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:64:in `call'
lib/middleware/content_security_policy_middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:389:in `call'
lib/middleware/gtm_script_nonce_injector.rb:10:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:233:in `call'

```

El archivo de localización en cuestión es este:

> <https://github.com/merefield/discourse-chatbot/blob/main/config/locales/server.en.yml>

¿Estoy haciendo algo ilegal?

---

_[View the full topic](https://meta.discourse.org/t/admin-customize-text-behaving-badly/285691)._
