OpenFin Workspace Platform API
    Preparing search index...

    Type Alias Locale

    Locale: string

    An ISO language code accepted by the Workspace Platform.

    Built-in languages (supported out of the box):

    • en-US — English (default)
    • de-DE — German
    • ja-JP — Japanese
    • ko-KR — Korean
    • ru-RU — Russian
    • zh-CN — Chinese (Simplified)
    • zh-Hant — Chinese (Traditional)

    Adding custom languages via translationOverridesUrl:

    Supply a translationOverridesUrl in your Desktop Owner Settings (DOS) or application manifest pointing to a translation-override.json file. Any language code defined in that file will be accepted at runtime in addition to the built-in list above.

    Example translation-override.json:

    {
    "x.x.x": {
    "es-ES": {
    "global.save": "Guardar",
    "contextMenu.newWindow": "Nueva ventana"
    }
    }
    }

    The translationOverridesUrl can be configured in two ways:

    Via Desktop Owner Settings (dos.json on macOS, registry on Windows):

    {
    "desktopSettings": {
    "systemApps": {
    "workspace": {
    "customConfig": {
    "translationOverridesUrl": "https://example.com/translation-override.json"
    }
    }
    }
    }
    }

    Via the application manifest (under platform.workspace):

    {
    "platform": {
    "workspace": {
    "translationOverridesUrl": "https://example.com/translation-override.json"
    }
    }
    }