# In a plugin, how can I force clients to re-load extra-locales file?

**URL:** <https://meta.discourse.org/t/in-a-plugin-how-can-i-force-clients-to-re-load-extra-locales-file/233539>\
**Category:** Development\
**Created:** [July 21, 2022, 1:17pm UTC](https://meta.discourse.org/t/in-a-plugin-how-can-i-force-clients-to-re-load-extra-locales-file/233539 "2022-07-21T13:17:36Z")\
**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:** [July 21, 2022, 1:17pm UTC](https://meta.discourse.org/t/in-a-plugin-how-can-i-force-clients-to-re-load-extra-locales-file/233539/1 "2022-07-21T13:17:36Z")

</div>

We’ve created a custom JS method for some custom locale work that loads the browser side `I18n` object with a custom attribute.

I want to trigger a re-evaluation of this JsLocaleHelper method on each of the dependent clients.

I’m trying to find a way to trigger this from server side.

This used to work but seems to have changed recently.

The data is correct when I delete the local client cache from the browser, but obviously this is not tenable for production use. It proves the issue is the local caching though.

Things I’ve tried include:

```plaintext
 Discourse.request_refresh!

```

or the more targetted:

```plaintext
Discourse.request_refresh!(user_ids: user_ids)

```

which appears to force refresh on navigate. However suspect the script is being cached so this is not a solution.

Any help appreciated!

---

_[View the full topic](https://meta.discourse.org/t/in-a-plugin-how-can-i-force-clients-to-re-load-extra-locales-file/233539)._
