You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Setting the Application Language Using the countryCode URL Parameter in DCS

Use this configuration when an existing Visual Builder app needs a bookmarkable locale parameter that:

  • Sets the application language at startup.
  • Keeps the language picker, application variable, and URL synchronized.

Target behaviour

A user opens:

https://<host>/<app>/?countryCode=fr_CA

The app should:

  1. Start in French Canadian (fr-CA).
  2. Set $application.variables.countryCode to fr_CA.
  3. Show French Canadian as the active picker value.
  4. When the picker changes, update the URL and reload in the selected language.

Files to update

Purpose

Typical file

Application variable and startup locale

app-flow.json

URL and picker helper functions

app-flow.js

Country initialization

chains/InitializeCountryCodeAction.js

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!