AI helper does not always use user's locale

AI-generated summary

The issue concerns the AI helper not displaying in the user’s selected locale, despite consistent settings. Moin reports that the AI helper appears in German even though their locale is set to English, noting this has occurred multiple times. Keegan suggests a caching issue, possibly due to prior use in German. Moin confirms they initially used German but have since switched to English. Falco explains the caching mechanism is not locale-specific, leading to localized content being cached based on the first user, while Sam clarifies the code does cache per locale, questioning if the issue is resolved for Moin.

I don’t have any specific steps to reproduce the issue. However, I recently encountered a second instance where the AI helper modal did not display in English, despite making no changes to my locale settings. Below is a screenshot I took 2 weeks ago. Although my locale was set to English, it appeared in German.

This is the screenshot I took just now:

4 Likes

Hey @Moin,

I suspect this may be a caching issue. The list of prompts are fetched once and cached, but I believe it should be refreshed each day. Did you have your language ever previously set as German and then change it to English?

1 Like

I definitely had it set to German when I joined meta. Though I cannot remember the last time I used Meta in German[1]. So that’s why I did not report when it showed up in German. But I don’t think I ever chose French since I don’t speak French.


  1. I didn’t like to change the locale to take a screenshot ↩︎

2 Likes

It happened again


Bert is multilingual today.

2 Likes

@keegan the cache key here is not keyed on locale, so it will cache the localized version of the user who requests it first every 30 minutes

Ideal solution is to translate on client. Less ideal is to cache on locale.

4 Likes

looking at the code now, looks like it is cached per locale:

@Moin is this resolved for you?

3 Likes

This topic was automatically closed after 3 days. New replies are no longer allowed.