Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Multilanguage with .net standard #152

Closed
binoypatel opened this issue Jan 6, 2017 · 10 comments
Closed

Multilanguage with .net standard #152

binoypatel opened this issue Jan 6, 2017 · 10 comments

Comments

@binoypatel
Copy link

binoypatel commented Jan 6, 2017

Hi,

I am using MAT (Multilingual Tool kit) with .Net Standard library (1.4) that converts my language resources to supported languages. It perfectly works with Full .net but .Net Core / ASP.Net Core. I have full sample published on github https://github.com/binoypatel/NetCore.Localization that demonstrates the issue.

Basically in example code I have the followings:
Contoso.Languages: This is .net standard library 1.4 that contains multiple language resources (English, German and French),

ConsoleApp1.NetCore: This is .net core console application that uses Contoso.Languages library to display language specific resources based on the CurrentUICulture. But it doesn't work in this application. It always shows an English resource.

ConsoleApplication1.FullNet: This is standard .net console application that uses Contoso.Languages library to display language specific resources based on the CurrentUICulture. It works fine with this application. It shows correct language resource based on the CurrentUICulture.

This is really important scenario for many multilingual applications, I believe. I would be really appreciate any help to solve this issue.

Kind regards,
Binoy

@karelz
Copy link
Member

karelz commented Jan 7, 2017

I can't access your sample. Do you have a HelloWorld-style example? That is usually best - ideally console .NET Core app.
This issue belongs to https://github.com/dotnet/corefx repo. @krwq @tarekgh will be able to help you there ...

@karelz
Copy link
Member

karelz commented Jan 7, 2017

Closing here, please create issue in CoreFX repo with correct repro link.

@karelz karelz closed this as completed Jan 7, 2017
@tarekgh
Copy link
Member

tarekgh commented Jan 7, 2017

@karelz this looks resources issue so @ramarag could be the one can look at.

@tarekgh
Copy link
Member

tarekgh commented Jan 7, 2017

and the correct link is https://github.com/binoypatel/NetCore.Localization

@karelz
Copy link
Member

karelz commented Jan 7, 2017

Ah, sorry - the line between Globalization and Resources is still a bit blur for me :)
I updated the URL link in the original post. @binoypatel please link this issue from the new one in CoreFX. Thanks!

@ramarag
Copy link
Member

ramarag commented Jan 7, 2017

@binoypatel it would be great if you can confirm if the bug still repros with the latest CLI from https://www.microsoft.com/net/download/core, the latest CLI is based on msbuild and old project.json based CLI is unlikely to be updated or serviced

@binoypatel
Copy link
Author

@ramarag , I have tested with the followings and still not working:
Microsoft.Net Core 1.1.0 - SDK 1.0.0 Preview 2.1-003177
Microsoft .NET Core 1.0.1 VS 2015 Tooling Preview 2

I have opened a new issue in corefx as karelz suggested: https://github.com/dotnet/corefx/issues/14998

Thanks,
Binoy

@karelz
Copy link
Member

karelz commented Jan 9, 2017

Thanks @binoypatel!
Apparently even corefx repo is not where the root cause is, so it will be bounced once again - sorry for that! Sadly, that's what happens sometimes with issues - they are bounced around, until they are fully root caused :(

@binoypatel
Copy link
Author

I understand :), I tested with VS2017 RC1 as suggested by @onovotny and confirmed working. Now, my question is should I move my production application to VS2017 RC1 because multilanguage is not working with VS2015 or wait for VS2017 to RTM?

Thanks,
Binoy

@karelz
Copy link
Member

karelz commented Jan 9, 2017

It would be best to ask CLI folks for guidance (in the https://github.com/dotnet/cli/issues/3396 issue). If it's not getting anywhere, ping me and I'll try to get some help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants