Open abxeps opened 4 years ago
You can get applicaton-configuration from gateway.
I saw this approach, does it mean I need to create a dependency (and rebuild the gateway) each time we add new resources to some microservice? like here : https://github.com/abpframework/abp-samples/blob/e21e21d59b76622ce418f270f897cb1ac7369a18/MicroserviceDemo/gateways/BackendAdminAppGateway.Host/BackendAdminAppGateway.Host.csproj#L47
Would have been nice to be less coupled and have the ability for modules to register themselves at startup and send resource informations to the main app or gateway
There is currently no such module,you can implement this feature yourself. You can store localized content in a distributed cache and read from the cache.
I am adding this to the backlog as an improvement point. But we can't have time to work on this in a short time.
Hi @realLiangshiwei , how can I override the /api/abp/application-configuration
to store and read from the cache as you mentioned ?
It's hurt every time I localize new string and then I have to build gateway again and again.
There is currently no such module,you can implement this feature yourself. You can store localized content in a distributed cache and read from the cache.
Do I get it right, that my issue is not resolvable now? I have Angular module accessing several server-side endpoints. I want to be able to indicate, where I get the resources from. However, all I can do is to supply a resource name, not an appName. And seems like it tries to access any resource from 'default' apiName endpoint, I can't change that:
localization: {
defaultResourceName: 'ListSpoolMng'
}
Hi,
How are multiple resource files (from multiple microservices) supposed to be accessed from on angular web application ? Since angular gets its localized texts from a single service call to
/api/abp/application-configuration
, how can all resources be merged into the response of this call? The microservices are developed as independant abp module solutions.