RESX translation: translate .NET resource files with AI

.NET RESX resource files: string <data> entries, comments and format items, translated per culture.

.resxformat: resxone file per locale

What it is

RESX is the XML resource format of .NET, used by ASP.NET Core (IStringLocalizer), WinForms, WPF, MAUI and class libraries. The neutral file (Strings.resx) holds the source language; each culture gets a sibling named after it (Strings.de.resx, Strings.pt-BR.resx) that the build compiles into a satellite assembly.

Example

Resources/Strings.resx
<?xml version="1.0" encoding="utf-8"?><root>  <resheader name="resmimetype">    <value>text/microsoft-resx</value>  </resheader>  <data name="WelcomeMessage" xml:space="preserve">    <value>Welcome back, {0}!</value>    <comment>Shown after sign-in. {0} is the user's first name.</comment>  </data>  <data name="OrderTotal" xml:space="preserve">    <value>Total: {0:C} for {1:N0} items</value>  </data>  <data name="AppIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">    <value>..\Resources\icon.png;System.Drawing.Bitmap, System.Drawing</value>  </data></root>

How Glossa handles it

Plurals
RESX has no plural structure; each <data> entry is translated as one string. Keep plural variants as separate keys (ItemCountOne, ItemCountOther) and choose between them in code.
Comments and context
The <comment> element becomes the string's context in every translation prompt and is written back unchanged.
Placeholders
Composite format items are protected and checked, including alignment and format strings: {0}, {0:C}, {1:N0}, {2,-10}, {3:dd MMM yyyy}. A translation may reorder them but never drop or change one; one that does is marked needs review with a review task. Inline HTML such as <b> is checked too.
Round trip
Only string resources are translated. Typed entries (type= or mimetype=, such as images, ResXFileRef and Int32 values) and the schema and resheader preamble are copied from your file into every culture, so Visual Studio and the build still open it.

Which entries get translated

A <data> element with a name and no type or mimetype attribute is a string and is translated. Everything else (embedded images, file references, numbers) is left alone: in the example above, WelcomeMessage and OrderTotal are translated, AppIcon is copied as written. Escaped markup (&lt;b&gt;) is read as the text it stands for and escaped again on the way out.

What a translated culture file looks like

Pull writes the culture file next to the neutral one, with the same preamble, every string entry marked xml:space="preserve", the comments you wrote and the non-string entries after the strings. The {0} and {0:C} items survive exactly as in the source.

Resources/Strings.es.resx
<?xml version="1.0" encoding="utf-8"?><root>  <resheader name="resmimetype">    <value>text/microsoft-resx</value>  </resheader>  <data name="WelcomeMessage" xml:space="preserve">    <value>¡Hola de nuevo, {0}!</value>    <comment>Shown after sign-in. {0} is the user's first name.</comment>  </data>  <data name="OrderTotal" xml:space="preserve">    <value>Total: {0:C} por {1:N0} artículos</value>  </data>  <data name="AppIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">    <value>..\Resources\icon.png;System.Drawing.Bitmap, System.Drawing</value>  </data></root>

Culture file names

The culture comes from the file name: Strings.de.resx is German, Strings.pt-BR.resx Brazilian Portuguese, Strings.zh-Hans.resx Simplified Chinese. The neutral Strings.resx is your source language, and its translations are written as Strings.<culture>.resx beside it, the names .NET's resource fallback (de-AT → de → neutral) looks for. Already have culture files? Push them after the neutral file: their translations are imported onto the same keys and never overwritten by AI.

Keep it in sync from CI

Run sync in your pipeline after the neutral file changes. It pushes the source, waits for new strings to be translated and pulls every culture file, so a pull request carries the .resx changes with the code that needs them. Keys whose English changed are translated again (or kept for review, if the project turns retranslation off).

npx @meterapp/glossa sync Resources/Strings.resx --project app --wait 10mgit add Resources/*.resx

Translate it from the command line

Push the source-language file; strings are deduplicated against the rest of your workspace and queued for translation. Pull writes Resources/Strings.es.resx back in the same format.

npx @meterapp/glossa loginnpx @meterapp/glossa push Resources/Strings.resx --project appnpx @meterapp/glossa pull --project app --locale es,de,ja

Or ask an agent over MCP: “Push Resources/Strings.resx to Glossa and pull Spanish.” It calls push_file and pull_file. See the CLI and MCP guides.

Questions

How do I translate a .resx file?
Push the neutral file (npx @meterapp/glossa push Resources/Strings.resx --project app). Glossa translates every string entry into your project's target languages with Claude, using the <comment> as context, and pull writes Strings.es.resx, Strings.de.resx and so on next to it.
Does translation break {0:C} or {1,-10} format items?
No. Composite format items, with their alignment and format string, are placeholders: the model is told to keep them, and a translation that drops or alters one is marked needs review and lands in the review queue with the mismatch named.
What happens to images and other non-string resources?
They are copied unchanged into every culture file. Only <data> entries without a type or mimetype attribute are translated.
Can I keep using Visual Studio's resource editor?
Yes. Culture files keep the resheader preamble and schema from your neutral file, so the resource editor, the ResX code generator and satellite-assembly builds read them as before.

Other formats

Moving from Crowdin? Read the comparison.

Bring every translation you have

Glossa hosts every app free, for good. Import your files, connect your chatbot to audit them, and export the fixes back into your codebase.