ReSharper 2021.3 Help

Localization Manager

Localization Manager will assist you in localizing applications. It lets you view and edit localizable resources in a single grid, helping you add and edit localizable strings and spot missing localized values.

ReSharper: Localization Manager

When you select a resource in the grid, you can use the toolbar buttons to invoke the Rename   Themed icon edit screen gray, Move   Themed icon move live template screen gray, Inline   Themed icon scroll to bottom screen gray, and Safe Delete   Themed icon delete screen gray refactorings for that resource.

Open Localization Manager

  • Choose ReSharper | Windows | Localization Manager from the main menu.

  • Right-click a resource file in the Solution Explorer and choose Open With Localization Manager.

  • Set the caret at the declaration or usage of a resource in the editor, press Alt+Enter and choose Edit with Localization Manager.

    ReSharper: Edit with localization manager

Choose target resource bundles

Localization Manager scans all resource files (.resx) in your solution, groups them by the resource bundle and displays them on the left-hand side of the window.

Use checkboxes in the left-hand side view to choose bundles that should be added to the working grid. The Group by selector on the toolbar will help you regroup the bundles so that you can select entire grouping nodes, such as projects or solution folders.

%product: Localization manager. choose resources

Understand the working grid

Rows of the working grid list all resources from the bundles selected on the left. Resources are combined and sorted alphabetically.

Columns of the working grid list all cultures found in the selected bundles. For example, if one of the selected bundles has culture-specific files for de and es, and another has de and fr, then columns for de, es, and fr will be added.

Double-click the resource name to open the corresponding declaration in the .resx file of the default culture.

To locate the culture-specific resource definition, right-click a culture-specific cell and choose Edit with Visual Studio Resource Editor.

To hide some cultures from the working grid, click Choose Cultures Choose Cultures on the toolbar and use the dialog that appears to specify the desired cultures.

Each resource in specific culture is color-coded:

  • Grey with text — resource has a culture-specific value

  • Yellow with text — resource has a culture-specific value that is the same as in the default culture

  • Yellow empty — resource has no culture-specific value

Names of resources that have usages within the solution are highlighted with bold.

If you want to see only those resources, where culture-specific values are missing, toggle Show Only Problems Show Only Problems on the toolbar.

Add new resources

In the Localization Manager, you can add new resources by clicking Add New Add New above the working grid. In the dialog that opens, specify a name for the resource and choose the resource bundle where it should be added.

ReSharper: Add new resource dialog

If the target resource bundle is selected on the left, the new resource will appear in the grid and you can proceed with specifying resource values in different cultures.

Add cultures

You can add a new culture-specific files to all resource bundles in your solution — click Add New Culture Add New Culture above the tree view in the left part, and then specify a culture tag in the dialog that opens.

You can also add culture-specific files that are missing in some bundles. Such files are displayed as strikethrough in the tree view on the left.

Last modified: 07 April 2022