-
Notifications
You must be signed in to change notification settings - Fork 329
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
Support for NuGet Packages with Language Packages #632
Comments
Hi @hackerzhuli |
@JoC0de Thank you for your prompt response. I guess I'll have to modify the source code of Humanizer to enable localization in Unity. |
Did you try copy pasting the dlls to unity manually? |
What I found about language packages of Humanizer in Unity.SummaryI tried to copy dlls manually and here is what I find:
Detailed ResultHere is my detailed test result. When only fr language package (dll) is in the project. Console logs:
When only de language package (dll) is in the project. Console logs:
When both fr and de language packages (dll) are in the project. No compile errors are found. Console logs:
ConclusionThe reason only one of language packages would work in Unity is probably because they have the same assembly name (Humanizer.resources). |
Interesting. |
I tried to change the names of language packages' dll files, but it makes no difference. I guess Unity just doesn't support localization in this way. |
Description
I tried to install the Humanzier package. The core package worked but the language packages are not working. I inspected the files that are downloaded by NuGetForUnity and found that the actual assemblies that contains the localized strings are not downloaded, even though the folders for language packages are there. Is it a limitation of Unity that .NET language packages does not work, or is it a limitation of NuGetForUnity?
Why this is important
If the limitation is not caused by Unity, then I think this improvement is very useful for anyone who need to use a NuGet package with language packages.
If the limitation is caused by Unity, then I think it will be great if you can put this information in the documentation of NuGetForUnity and explain why language packages are not supported, it will be very helpful for others who encountered the same issue.
The text was updated successfully, but these errors were encountered: