> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change download URLs by player language

> Point the launcher at a different CDN based on the player's operating system language, for example for players in China.

Sometimes you want the launcher to download from a different place depending on the player's locale, for example a dedicated CDN for players in China. This page uses workflow logic to check a separate URL when the operating system language is Chinese, and a global URL otherwise.

You can also do this with separate launchers for China and the rest of the world, or with CDN redirection.

## Requirements

* Your releases, including the alias and catalog files, are deployed or [copied](https://docs.directgvr.com/release-automation/copy-releases.md) to a CDN that serves players in China.
* The launcher allows that CDN's domains. See [Host configuration](https://docs.directgvr.com/reference/client-skin-system/host-configuration.md).

## Set up the workflow

This workflow uses the `if` [core expandable string](https://docs.directgvr.com/reference/client-workflow-engine/core-expandable-strings.md) to check whether the operating system language is Chinese (`zh`). If it is, `aliasUrl` expands to the China CDN; otherwise it uses the global CDN.

```json workflow.json theme={null}
"loadMacros": {
  "type": "macro",
  "keyValuePairs": {
    "repository": "mygame-{systemShortName}",
    "repositoryTitle": "My Game",
    "environment": "production",
    "aliasUrl": "https://{if:{equals:{userISO639LangName},zh},china-cdn.example.com/game/,global-cdn.example.com/game/}",
    "installDirectory": "{moduleDirectory}Download{pathSlash}",
    "executableName-win": "binaries/game.exe",
    "repositoryLauncher": "game-launcher",
    "repositoryLauncherTitle": "Game Launcher",
    "repositoryName": "{repository}.{environment}",
    "repositoryMetafile": "{repositoryName}.metafile",
    "repositoryAliasUrl": "{aliasUrl}{repository}/alias.json",
    "repositoryCatalogUrl": "{aliasUrl}{repository}/catalog/"
  }
},
```

The full alias and catalog URLs are built in `repositoryAliasUrl` and `repositoryCatalogUrl`. If your workflow builds them differently, make sure each URL uses the `if` logic.

## Related

* [Core expandable strings](https://docs.directgvr.com/reference/client-workflow-engine/core-expandable-strings.md)
* [Configure the launcher to download your repositories](https://docs.directgvr.com/launcher-design/download-repositories.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.