AvaloniaUI / avalonia-docs

https://docs.avaloniaui.net/docs/welcome
62 stars 207 forks source link

Localizing using ResX should indicate that PublicResXFileCodeGenerator is to be used for Xaml support #474

Closed odalet closed 6 months ago

odalet commented 6 months ago

In https://docs.avaloniaui.net/docs/guides/implementation-guides/localizing, creating resx files and making sure their Build Action is Embedded Resource is not sufficient for it to work in Xaml.

One should also make sure the Custom Tool is set to PublicResXFileCodeGenerator and not the default ResXFileCodeGenerator. The latter gererates internal code that is not detected by the xaml compiler.

timunie commented 6 months ago

@odalet please file a PR to fix that. Thx.

odalet commented 6 months ago

See #476