Documentation
Feedback
Guides
Troubleshooting

Troubleshooting
Development
My multi-language store is not working in the development workspace

After creating a development workspace in a multi-language store, there is an error in my website.

Keywords: Development workspace | Internationalization| Messages | Multi-language

After creating a development workspace in a multi-language store, the following error is returned when trying to access the website:


_10
Error: messages
_10
at throwOnGraphQLErrors (/usr/local/app/node_modules/@vtex/api/lib/HttpClient/GraphQLClient.js:10:15)
_10
at /usr/local/app/node_modules/@vtex/api/lib/HttpClient/GraphQLClient.js:23:15
_10
at runMicrotasks (<anonymous>)
_10
at processTicksAndRejections (internal/process/task_queues.js:97:5)
_10
at MessagesGraphQL.translate (/usr/local/app/node_modules/@vtex/api/lib/clients/apps/MessagesGraphQL.js:50:26)
_10
at dataloader_1.default.batch (/usr/local/app/node_modules/@vtex/api/lib/service/worker/runtime/graphql/schema/messagesLoaderV2.js:69:15)

This error indicates issues with translations related either to the configuration settings of the vtex.messages app, which is used for translating storefront content or to the values assigned to the Locale field within the trade policy configuration.

Solution

To solve this problem, there are several solutions you can consider:

Checking your store language availability

Make sure the desired language is available for your storefront. In some cases, despite being able to select a language in the Locale field within the trade policy configuration, the storefront may not have been translated into that language. In this case, you will receive that error message.

To check which language is set up for your storefront, do the following:

  1. Access the trade policy configuration by going to the VTEX Admin and navigating to Store Settings > Channels > Trade Policies.

    {"base64":"  ","img":{"width":1565,"height":80,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":11065,"url":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/docs/troubleshooting/development/locale-trade-policy-en.png"}}

Open a ticket with VTEX Support to check if the translation is available. If the language is unavailable, you may request the translation through our support in the same ticket.

If the language is available and the problem continues, check if the Locale field’s value is correct.

Checking the Locale field

  1. Access the trade policy configuration by going to the VTEX Admin and navigating to Store Settings > Channels > Trade Policies.
  2. Make sure the Locale field’s value is correct. For example, consider a trade policy whose country code is Chile (CHL):
✅ Do❌ Don't
es-CLarn-CL

See Microsoft’s documentation to check the correct Language Code Identifiers to set up in the Locale field.

If you are still experiencing the same issue, disable the automatic translations in the vtex.messages app settings.

Disabling automatic translations

If the desired language is available and correct, follow the steps below:

  1. In the VTEX Admin, go to Apps > My Apps, and search for the vtex.messages app.

    {"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAACCAIAAADwyuo0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAJUlEQVR4nAEaAOX/AGFhYq+wsa2urxMaJgDExMTo6en////Fxcqy6g/p9LLCEgAAAABJRU5ErkJggg==","img":{"src":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/docs/troubleshooting/development/search-messages-app-en.png","width":848,"height":478,"type":"png"}}

  2. Open the app settings and disable the automatic translations.

    {"base64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAIAAAA7ljmRAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAJklEQVR4nGOoran9DwZv375jyMnJfQ0DDDIiIsFe3u/fvQ0OiwUAE84Yvawt2HUAAAAASUVORK5CYII=","img":{"src":"https://cdn.jsdelivr.net/gh/vtexdocs/dev-portal-content@main/docs/troubleshooting/development/vtex-messages-app-en.png","width":952,"height":794,"type":"png"}}

The expected behavior is for the multi-language store website to work properly in the development workspace.

After following these steps, if you keep receiving the same error message, open a ticket to VTEX Support.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Was this helpful?
Yes
No
Suggest edits (Github)
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page