Open PaulDempsey-ms opened 2 years ago
e.g. asp.net.
Myproject.Resources.[yourlocation].Resources.MyTranslatedString
It is simple putting your resx files in a separate assembly for reuse in the project and you keep your resx resources up-to-date via MAT. update the source language strings in the .resx file and for the other languages you update your xlf files.
see: https://stackoverflow.com/questions/1142802/how-to-use-localization-in-c-sharp/60000088#60000088
I understand the process, but it would be useful to have actual samples for other technologies, so that you can see how resource binding works in each kind of app.
@PaulDempsey-ms Hello! I made a pull request with the Asp Core demo you requested.
Blazor Server might use also some examples :-)
Oh great!
I would love to contribute to that too.
I use WPF + .Net 6, the MAT not working for me ((. The MAT can't find any resources (.resx) in my project. It works if I use .resw files (by path : /strings/en-US/.resw) instead .resx , but the MAT clears all my translations each time after building my project. Please add a sample on how to use WPF + .Net 6 + Windows App SDK. Thanks.
It would be great to have samples for more than just UWP and WPF. Other technologies also need to do localization: