How can I access theme locales in a theme app extension?

Topic summary

Main issue: In a theme app extension’s app block, attempting to use theme translation keys via Liquid’s translation filter (e.g., {{ ‘customer.login_page.email’ | t }}) returns “translation missing.” Locales refer to the theme’s translation files used by the | t filter.

Request: Clarification on whether a theme app extension can access a merchant’s theme locales or other theme assets directly.

Workarounds discussed: One user mirrored the theme’s locale within the extension, but noted this is unreliable because any merchant changes to theme translations would not sync with the extension.

Current status: Multiple participants report the same limitation and are seeking a solution. No confirmed workaround or official guidance is provided. The thread remains open and unresolved.

Summarized with AI on December 12. AI used: gpt-5.

Hi, I’m trying to access the default theme locales in my theme app extension’s app block. If I try the following I get an translation missing error:

{{ 'customer.login_page.email' | t }}

Is there a way to access the locales or assets in general from the user’s theme in a theme app extension?

3 Likes

Hello, i’m in the same situation, does anyone have the solution?

I could replicate the theme’s locale on my app extension but it is useless if one day the user will modify/add a translation on the theme.

thanks

Does anyone have a solution?