Why do window.openai.locale and _meta["openai/locale"] return different locale values?

Hi there!

Found a strange issue today. Using locale resolution for internationalization in ChatGPT Apps UI widget put some light on a situation I was not expecting:

  • using window.openai.locale inside my React code returned en-US (and I observe this value being updated when I change my ChatGPT user settings)
  • reading _meta[“openai/locale”] in a tool request returned fr-FR (matching my browser locale)

I would have assumed _meta to be the same value as window.openai, both aligned to ChatGPT user preferred settings.

Do you have the same discrepancies in your app?

2 Likes