You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it's actually not possible to re-add an already existing endpoint I had to apply this dirty hack in the main:
fromorchestratorimportOrchestratorCorefromorchestrator.cli.mainimportappascore_clifromorchestrator.settingsimportAppSettingsimportproducts# noqa: F401 Side-effectsimportworkflows# noqa: F401 Side-effectsfromapi.api_v1.apiimportapi_routerapp=OrchestratorCore(base_settings=AppSettings())
if__name__=="__main__":
core_cli()
else:
app.register_graphql()
# remove the existing translation endpoint, so we can override it:app.router.routes= [routeforrouteinapp.router.routesifnotroute.__dict__["path"] =="/api/translations/{language}"]
app.include_router(api_router, prefix="/api")
NOTE The v2 GUI: configures a lot of endpoint stuff in configuration.ts -> but the translations endpoint can't be configured there. @ricardovdheijden / @DutchBen
The text was updated successfully, but these errors were encountered:
pboers1988
transferred this issue from workfloworchestrator/example-orchestrator
Mar 18, 2024
When a language file exists in the orchestrator: the core doesn't see or use it.
Not sure if that's a bug in core or in the example app.
As a workaround: I'm now using a "translations" endpoint in the example app.
As it's actually not possible to re-add an already existing endpoint I had to apply this dirty hack in the main:
NOTE The v2 GUI: configures a lot of endpoint stuff in
configuration.ts
-> but the translations endpoint can't be configured there. @ricardovdheijden / @DutchBenThe text was updated successfully, but these errors were encountered: