Skip to content

Wisej.Web.Ext.DxDashboard.DxDashboard Language change problem #4727

Closed

Description

@itg-assistant

Lefyapı İnşaat AŞ asked 2025-03-10 08:31:00 UTC

Hello, I use Wisej.Web.Ext.DxDashboard.DxDashboard control, I use many features actively, but I cannot manage the culture of dxDashboard despite trying many methods. How can I achieve this?

Activity

  1. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    Julie (ITG) answered 2025-03-10 14:03:13 UTC

    The DevExpress Dashboard control is created by a third party (DevExpress) and not by Wisej- thus, you'll need to refer to their documentation on this.

    Looks like you'll need to use their localization service.

    Relevant documentation:
    https://docs.devexpress.com/Dashboard/402540/web-dashboard/integrate-dashboard-component/dashboard-control-for-javascript-applications-jquery-knockout-etc/localization
    https://supportcenter.devexpress.com/ticket/details/t337308/translation-of-dashboard

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 16, 2026
  3. itg-assistant commented on Jun 16, 2026

    @itg-assistant
    Author

    Lefyapı İnşaat AŞ answered 2025-03-11 07:31:49 UTC

    Hello, thank you for your support. The problem has been fixed through the article you shared. I share it in case others may need it for solution

    URL : https://docs.devexpress.com/Dashboard/402540/web-dashboard/integrate-dashboard-component/dashboard-control-for-javascript-applications-jquery-knockout-etc/localization

    ----- Web.config -----

    -- dxDashboard Init Script --

    this.init = function(options) {
        var self = this; // 'this' bağlamını saklıyoruz.
    
        $.when(
    
            $.getJSON("/Resources/dx-dashboard.tr.json").then(DevExpress.Dashboard.ResourceManager.setLocalizationMessages),
            $.getJSON("/Resources/dx-analytics-core.tr.json").then(DevExpress.Dashboard.ResourceManager.setLocalizationMessages)
        )
        .then(function () {
    
            DevExpress.Dashboard.ResourceManager.setLocalizationMessages({ "DashboardStringId.ActionExportTo": "Custom Text for Export Button" });
    
            DevExpress.localization.locale('tr');
    
            const dashboardOptions = {
                ...options,
                localization: {
                    locale: 'tr'
                },
                cultureName: 'tr-TR',
                viewerSettings: {
                    cultureName: 'tr-TR'
                },
                designerSettings: {
                    cultureName: 'tr-TR'
                }
            };
    
            self.widget = new DevExpress.Dashboard.DashboardControl(self.container, dashboardOptions);
    
            if (self.widget) {
                self.widget.render();
            }
        })
        .fail(function(jqXHR, textStatus, errorThrown) {
            console.error("JSON dosyaları yüklenirken hata oluştu:", textStatus, errorThrown);
        });
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions