Skip to main content
.resx files store .NET resources in XML. Hyperlocalise translates supported string resources; preserve non-text application resources according to the behavior below. Supported extensions: .resx.

Source file

Save this example as locales/en-US/messages.resx.

Configure your files

Use this i18n.yml for the example, or add its file mapping to your existing bucket. See path templates for other layouts.

Translate

Install the CLI and set OPENAI_API_KEY in your project’s .env.local or shell. You can also configure another AI provider.
The dry run previews the work. The second command writes translations to the configured target path and updates the lockfile.

Behavior and limitations

  • Uses the generic XML parser for text resources: data names identify their value text.
  • Comments, attributes, metadata, and resheader elements are preserved.
  • Use text-only resources. Mixed-content XML is unsupported; do not treat support for text RESX as support for arbitrary serialized .NET objects.
  • Changed CDATA values are written as escaped text. See XML for shared behavior.

Next steps