{"id":23060696,"url":"https://github.com/syncfusionexamples/how-to-localize-labels-in-wpf-chart-control","last_synced_at":"2025-06-14T09:07:07.481Z","repository":{"id":267219226,"uuid":"894325644","full_name":"SyncfusionExamples/How-to-Localize-Labels-in-WPF-Chart-Control","owner":"SyncfusionExamples","description":"This article illustrates how to localize the label in WPF Chart control.","archived":false,"fork":false,"pushed_at":"2024-12-09T04:29:04.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T10:49:42.671Z","etag":null,"topics":["chart","chart-tooltip","data-visulalization","financial-chart","interactive-chart","label-localization","localization","range-chart","sfchart","trackball","wpf-chart","wpf-localization"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SyncfusionExamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-26T06:48:09.000Z","updated_at":"2024-12-09T04:29:08.000Z","dependencies_parsed_at":"2024-12-09T05:25:17.820Z","dependency_job_id":"2bf2951d-3574-48b2-98d8-2eb360766a8c","html_url":"https://github.com/SyncfusionExamples/How-to-Localize-Labels-in-WPF-Chart-Control","commit_stats":null,"previous_names":["syncfusionexamples/how-to-localize-labels-in-wpf-chart-control"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SyncfusionExamples/How-to-Localize-Labels-in-WPF-Chart-Control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FHow-to-Localize-Labels-in-WPF-Chart-Control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FHow-to-Localize-Labels-in-WPF-Chart-Control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FHow-to-Localize-Labels-in-WPF-Chart-Control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FHow-to-Localize-Labels-in-WPF-Chart-Control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyncfusionExamples","download_url":"https://codeload.github.com/SyncfusionExamples/How-to-Localize-Labels-in-WPF-Chart-Control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2FHow-to-Localize-Labels-in-WPF-Chart-Control/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259790454,"owners_count":22911547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chart","chart-tooltip","data-visulalization","financial-chart","interactive-chart","label-localization","localization","range-chart","sfchart","trackball","wpf-chart","wpf-localization"],"created_at":"2024-12-16T03:14:50.190Z","updated_at":"2025-06-14T09:07:07.451Z","avatar_url":"https://github.com/SyncfusionExamples.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to Localize Labels in WPF Chart Control\n\nLocalization of the [**WPF Chart**](https://www.syncfusion.com/wpf-controls/charts) can be customized by using the [**CurrentUICulture**](https://learn.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo.currentuiculture?view=netcore-3.1) property in the WPF Chart. You can change the language by assigning the culture name of the desired language to this property.\n\n## Set Current UI Culture to the Application\n \n ```\npublic MainWindow()\n{\n    InitializeComponent();\n    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(\"fr-FR\");\n} \n ```\n\n\n## Steps to localize based on CurrentUICulture using Resource files\n\n1.\tCreate new folder, named as Resources in the application.\n\n2.\tRight-click on the Resources folder, select Add, and then click New Item. In the Add New Item dialog, select the Resource File option and name the file as `Syncfusion.SfChart.WPF.\u003cculture name\u003e.resx`. For example, name it as `Syncfusion.SfChart.WPF.fr-FR.resx` to add localization support for the French language.\n\n ![Add resource file](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNzQ2Iiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.F50nTICguTBOLogYEQPnYVxPMu_7OsIynI9kHGd_OZo)\n\n3.\tThe culture name that indicates the name of language and country.\n4.\tNow, add the Name/Value pair in Resource Designer of Syncfusion.SfChart.WPF.fr-FR.resx file and change its corresponding value to the corresponding culture.\n\n ![Add localized culture value](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNzQ3Iiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.HHbaZGselIepJE2F0FG3mYd04KlKoWcr67h2eiTU0aI)\n\nThe following image illustrates the [WPF Chart](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Charts.SfChart.html) successfully localized in the French language, displaying the changes applied through the provided localization steps.\n \n ## Output\n ![Localization demo](https://support.syncfusion.com/kb/agent/attachment/article/18165/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMyNzQ4Iiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5zeW5jZnVzaW9uLmNvbSJ9.8jhoSR8hp2sRn-mPUMrbEFjfSBTeSIQ8OEvxzjA4uOs)\n\n## Troubleshooting\n\n#### Path too long exception\n\nIf you are facing a path too long exception when building this example project, close Visual Studio and rename the repository to a shorter name before building the project.\n\nFor more details, refer to the KB on [how to localize lables in WPF chart control?](https://support.syncfusion.com/kb/article/18165/how-to-localize-labels-in-wpf-chart-control).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fhow-to-localize-labels-in-wpf-chart-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyncfusionexamples%2Fhow-to-localize-labels-in-wpf-chart-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fhow-to-localize-labels-in-wpf-chart-control/lists"}