How To Detect Customer's Language In Order

Topic summary

A store owner with English and French locales wants to identify which language customers used when placing orders, ideally captured in order notes or similar fields.

Original Challenge:

  • Cannot add {% request.locale.name %} code since checkout customization is limited
  • An old discussion thread exists on this topic but previously had no good solution

Potential Solution:

  • One user suggests using the REST API to retrieve the "accept_language" field (formatted as "accept-language"), which may capture the customer’s language preference

Current Status:

  • The discussion references Shopify 2.0, suggesting newer platform capabilities might now offer solutions that weren’t previously available
Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

Hi,

My store has two locales - English and French. Once an order is made by a customer, we would like to find out whether the customer shopped in English or French, ideally somewhere in the order such as in the notes. I am not sure where to add the code “{% request.locale.name %}” as I cannot control the checkout. Normally, the locale would appear in the “Notes” of the order.

// this is an old post. but there was no good solution. And now we have shopify 2.0

maybe Now we have a solution?

https://community.shopify.com/c/shopify-discussions/how-to-detect-customer-s-language-in-order/td-p/1300554

Hi Kiwi,

did you try rest Api.

you can get it with accept language.

“accept_language”: "de-DE