Hi,
It will take a while and you will need to fix it locally
https://support.abp.io/QA/Questions/6497#answer-3a104c91-1b30-e775-0db8-b0a1b839ee35
https://github.com/abpframework/abp/issues/18961
Hi,
This is because the LanguageText is a multi-tenant entity.
You can try this:
[ExposeServices(typeof(DynamicResourceLocalizer), typeof(IDynamicResourceLocalizer))]
public class MyDynamicResourceLocalizer : DynamicResourceLocalizer
{
private readonly ICurrentTenant _currentTenant;
public MyDynamicResourceLocalizer(IServiceScopeFactory serviceScopeFactory, IDistributedCache<LanguageTextCacheItem> cache, ICurrentTenant currentTenant) : base(serviceScopeFactory, cache)
{
_currentTenant = currentTenant;
}
public override LocalizedString GetOrNull(LocalizationResourceBase resource, string cultureName, string name)
{
using (_currentTenant.Change(null))
{
return base.GetOrNull(resource, cultureName, name);
}
}
protected override LanguageTextCacheItem GetCacheItem(LocalizationResourceBase resource, string cultureName)
{
using (_currentTenant.Change(null))
{
return base.GetCacheItem(resource, cultureName);
}
}
protected override Task<LanguageTextCacheItem> GetCacheItemAsync(LocalizationResourceBase resource, string cultureName)
{
using (_currentTenant.Change(null))
{
return base.GetCacheItemAsync(resource, cultureName);
}
}
}
Hi,
Could you also the CORS error screenshot of Bowser's console tab?
Hi,
This is not related to ABP.
The HTTP request which makes use of CORS failed because the HTTP connection failed at either the network or protocol level. The error is not directly related to CORS, but is a fundamental network error of some kind.
You can check this: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSDidNotSucceed
Can you share a project?
Hi,
I can reproduce the problem. we will check it.
Hi,
We will check it.