0

I have developed a multilingual application where my resource file resides in App_GlobalResources. Resource file structure is as below:

App_GlobalResources

--------Resource.ar.resx

--------Resource.resx

I want to display resourcekey value with both culture. How can I get value of specific resourcekey in both culture.

Ronak
  • 127
  • 3
  • 15

1 Answers1

0

you can do this with ResourceManager

        ResourceManager rm = new ResourceManager(typeof(*Your Resource Class*));
        rm.GetString("Resource Key", new CultureInfo("en"));
        rm.GetString("Resource Key", new CultureInfo("ar"));
Steve
  • 11,696
  • 7
  • 43
  • 81