Skip to content

Typescript not parsed correctly with string keys #228

@richardolsson

Description

@richardolsson

Description

The TypeScript parser does not correctly handle string keys in the messageIds objects.

Steps to reproduce

  1. Go to https://lyra.zetkin.org
  2. Choose German (or any language)
  3. Navigate to the strings in the feat.canvass.households.colorPicker scope

Expected Behaviour

The keys from the code (which are strings starting with #) should be listed as part of the keys, or at least be handled somehow.

https://github.com/zetkin/app.zetkin.org/blob/dc57527f5979e02096ac9684d47a36741ca6b298/src/features/canvass/l10n/messageIds.ts#L23

Actual Behaviour

The keys are listed as undefined.

Screenshots (if you have any)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions