-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support for Nested Classes #8
Comments
Very good suggestion ! |
Hey @Maskoe, Best regards mMilk |
I am constantly getting
If I copy the generated class into my project and disable your source generator, it works. I got it to work once, but I have no idea what I did. I also have this warning in my console
using LocTest.Locales;
namespace LocTest;
public class Testtt
{
public void DoSomething()
{
var msg = T.Uppercase;
Console.WriteLine(msg);
}
} Edit: Ahh found the difference. |
@Maskoe, thanks for your feedback, i will have a look |
@Maskoe, |
Yea works for me now. Its awesome. Thats pretty much how every i18n library in the javascript world does it. Was it a bug in your code or was it the weird compiler version thing? |
I'm glad to hear that it works. I'm still not 100% sure what is causing the problem. If you think the issue is resolved - feel free to close it. best regards mMilk |
Hello, very cool library.
I would like to have just one Locale.json file per language.
I would structure it like this
Messages/T.json
I would like that to lead to
Is that doable? If you dont want to do it, can you point me in a direction so I can give it a try?
Obviously while at it, it should probably work with any level of nesting. So I can really go ham and do
T.Errors.CreateUser.InvalidRole
.The text was updated successfully, but these errors were encountered: