Skip to content

Translate syntax error messages with Fluent #110

Description

@srivastava-diya

Description

Follow up to #109 . Once the parser emits a specific mistake rather than a raw code, this issue turns that into text in the user's language.

Approach follows @hyperjump/json-schema-errors, as suggested in #84.

Scope

  • A Fluent message key per mistake, with en-US translations
  • Filling in whatever the parser passes alongside the mistake name
  • A fallback for anything unmapped, so an unknown mistake still produces something readable
  • Read the locale from the initialize params and thread it through to syntax validation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions