Missing localization resources when use Nuget packages

1 Answer 142 Views
GridView Localization
Julien
Top achievements
Rank 1
Julien asked on 28 Jul 2022, 10:06 AM

Hello,

Until today, I was using Telerik libraries with the Visual Studio built-in extension. In other words, all the Telerik dlls were placed in a "Lib" folder and the various projects referenced them. Everything was working perfectly.

I would like to use Telerik via NuGet packages.

So I removed all references in my projects, deleted the "Lib" folder, and added the necessary NuGet packages as replacements in each projects.

The application compiles and launches perfectly.

Unfortunately, all texts (on a GridView for example) now appear in English (before, it was in French).

Looking at the "bin/Debug/fr" folder, I see that the Telerik.Windows.Controls.resources.dll file is missing. The file doesn't seem to generate when compiling. If I manually copy the file into this folder, the texts appear in French.

How do I make this happen automatically? I have the impression that the NuGet packages do not contain the resources of the different localization.

Am I doing something wrong or is it a problem with Telerik's NuGet packages?

Thanks in advance.

Julien
Top achievements
Rank 1
commented on 28 Jul 2022, 10:14 AM

Installed nuget packages:

1 Answer, 1 is accepted

Sort by
1
Accepted
Martin Ivanov
Telerik team
answered on 01 Aug 2022, 01:37 PM

Hello Julien,

In order to support different languages when using nuget packages, you will need to install separate packages with the corresponding resources. For example, to get French texts, you should install also the following package:

Telerik.Windows.Controls.for.Wpf.fr

Can you please try this and let me know if it helps?

Regards,
Martin Ivanov
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Julien
Top achievements
Rank 1
commented on 04 Aug 2022, 01:06 PM

It works perfectly. Thanks.
Tags
GridView Localization
Asked by
Julien
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or