Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Import of Excel fails if the neutral resource file have been deleted

Open
#449 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
localization

Research direction

Start in src/ResXManager.Model/ResourceEntityExtensions.cs around lines 204-218, then follow the Excel import path for projects with localized resources but no neutral .resx file. Reproduce the listed steps and verify that importing skips the translation instead of failing, matching the behavior when all resource files are deleted.

Written by the indexing model from the issue text.

Description

Up for grabs UX Improvement

Describe the bug
Resx Manager fails to import all translations when the neutral resource file have been deleted, but there still is a localized version.

  • MyResource.resx
  • MyResource.da.resx

To Reproduce

  1. Create a resource file with a single row
  2. Translate the row to another language
  3. Export an Excel file of all rows
  4. Delete the neutral resx file
  5. Import the Excel file

Expected behavior
I would expect the ResxManager to skip importing the translation, similar to how it works if all the Resource files are deleted.

I tried debugging this a bit, but I was unable to detect where I would need to make my changes.
But I believe the primary culprit is here: https://github.com/dotnet/ResXResourceManager/blob/647beb330ccb12f7283fb73b2fe29acf8d3c0c68/src/ResXManager.Model/ResourceEntityExtensions.cs#L204-L218

Dominant language
C#
Stars
1.5k
Forks
251
Avg merge
1d 1h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/ResXResourceManager

All issues in dotnet/ResXResourceManager

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.