Skip to content

Amend translation strings in TriggerVars.vue component #11962

@MilosPaunovic

Description

@MilosPaunovic

If you have a flow defined like this:

id: transltions
namespace: github.qa

tasks:
  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: This is a problem with translation strings

triggers:
  - id: flow_trigger
    type: io.kestra.plugin.core.trigger.Flow
    conditions:
      - type: io.kestra.plugin.core.condition.ExecutionFlow
        flowId: system_flow
        namespace: system.prod
    states:
      - RUNNING

And you open Triggers tab of it, you'll see a warning in the console:

[intlify] Not found 'states' key in 'en' locale messages.

It's due to a fact that we have a getHumanizeLabel method in kestra/ui/src/components/flows/TriggerVars.vue component that does the mapping - so, we either need to cover all possible variations for triggers or check if the key exists and return raw value if not.

Metadata

Metadata

Assignees

Labels

area/frontendNeeds frontend code changesbugSomething isn't workinggood first issueGreat issue for new contributors

Type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions