0
mrvithan created
How to get the current selected language from Server-Side ?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
3 Answer(s)
-
0
Solved. After running thru all source code, i found this LanguageManager !!!.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hey, I have tested
System.Threading.Thread.CurrentThread.CurrentUICultureand LanguageManager through injection:
private readonly Abp.Localization.LanguageManager _lanManager; _lanManager.CurrentLanguageboth work pretty much the same for me.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I sugges to use LanguageManager. Say that you defined 2 languages:
"tr-TR" "en"
And your current thread's language is "en-US". Then LanguageManager returns "en" (because we have no en-US defined for the application). So, it may be different in this case.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)