Setting the Application Language Using the countryCode URL Parameter in DCS
in Fusion RAMP
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:
- Start in French Canadian (
fr-CA). - Set
$application.variables.countryCodetofr_CA. - Show French Canadian as the active picker value.
- When the picker changes, update the URL and reload in the selected language.
Files to update
Purpose | Typical file |
|---|---|
Application variable and startup locale |
|
URL and picker helper functions |
|
Country initialization |
|
Tagged:
0