Skip to content

feat: localize CVSS calculator metric names and descriptions #441

@ericfitz

Description

@ericfitz

Summary

The CVSS calculator dialog (added in #86) displays metric category names, metric names, metric descriptions, and metric value names/descriptions sourced directly from the ae-cvss-calculator library. These strings are all in English and are not localized.

Current behavior

Metric labels like "Attack Vector (AV)", value labels like "Network", and descriptions like "This metric reflects the context by which vulnerability exploitation is possible" are rendered in English regardless of the user's selected locale.

Expected behavior

All metric-related strings displayed in the calculator dialog should be translated to the user's active locale.

Approach considerations

  • The ae-cvss-calculator library does not provide localized strings — it only returns English names/descriptions via getRegisteredComponents()
  • Options to consider:
    1. Maintain our own translation keys for all CVSS 3.1 and 4.0 metric/value names and descriptions (significant number of strings)
    2. Contribute i18n support upstream to ae-cvss-calculator
    3. Use a mapping layer that overrides library strings with our own Transloco keys
  • CVSS 3.1 has ~8 base metrics + temporal/environmental; CVSS 4.0 has ~11 base metrics + supplemental groups — each with multiple values, so the total string count is substantial

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions