localization not work when disable one of languages
See original GitHub issuehi dears,
-
Your Abp package version: 5.1.
-
Your base framework: .Net Framework or .Net Core: .Net Core.
-
Steps needed to reproduce the problem. in class DefaultLanguagesCreator.cs when disable ‘us’ language and add ‘gb’ language, the expected behavior is localization use fallback localization file (default localization file with same culure) but it not shows the localization in site
please note this was working before
private static List<ApplicationLanguage> GetInitialLanguages()
{
var tenantId = MyProjectConsts.MultiTenancyEnabled ? null : (int?)MultiTenancyConsts.DefaultTenantId;
return new List<ApplicationLanguage>
{
new ApplicationLanguage(tenantId, "en", "English", "famfamfam-flags us", true),
new ApplicationLanguage(tenantId, "en-GB", "English", "famfamfam-flags us"),
new ApplicationLanguage(tenantId, "ar-KW", "العربية", "famfamfam-flags kw"),
};
}
to see issue you can download template andmake upper changes
Issue Analytics
- State:
- Created 4 years ago
- Comments:28 (15 by maintainers)
Top Results From Across the Web
localization not work when disable one of languages #5701
If what you need is using default "en" culture as a fallback mechanism even if you disable it, It is not possible. Defualt...
Read more >Disabled localization for component doesn't work #12775
When you create a component with a relation to another element it's not possible to reuse the same relation for all languages. I...
Read more >Disable localization in Android application
Is there any way to disable localization in an Android application? It must use only English strings. We have library projects with French ......
Read more >What's the best way to disable a language while it's being ...
One way would be to put the locale into a separate addressable group and set that group to not be exported in the...
Read more >How to disable language localization? - Forum
Hi,. I updated NPM from 10.3 to 10.4.1 last Friday. Today I had a deeper look into the new installed NPM and saw...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@demirmusa I download new template from the site and issue still there
i updated these files like below
but as you can see issue still there
is there something wrong i did in my modifications? is there something i need to add to make localization work?
I think solution maybe to change this part in the code in line 83 of this file (https://github.com/aspnetboilerplate/aspnetboilerplate/pull/5670/commits/d2e552c0825ee635548b2ba4996b5e5c3dda050d#diff-16a7725abffda170921fb5b428593585)
to something like this
@demirmusa first thanks for set issue in milestone second, hope your solution take care of the issue i mentioned and details i put, for summary: i have 2 .xml file
in db there are 4 languages
expected result as mentioned in the issue: when user select language e.g (en-GB) translations come from xml with culture (en) as fallback languages (as mentioned above this behavior was working before)
Thanks again for your time