toonvanstrijp / nestjs-i18n

The i18n module for nestjs.
https://nestjs-i18n.com
Other
656 stars 113 forks source link

The word "push" breaks Typescript types #597

Open KristofferEriksson opened 1 year ago

KristofferEriksson commented 1 year ago

Describe the bug

The generated Typescript types seems correct, but it can for some reson not be used in autocomplete.

Example: { "messages": { "push": { "message-one": "Message One", }, "email": { "message-two": "Message Two", } } }

Gives this:

Skærmbillede 2023-11-25 kl  14 47 23

Reproduction

Create a translation JSON file with the key "push" in it, and try use the generated types.

System Info

System:
    OS: macOS 14.0
    CPU: (12) arm64 Apple M2 Max
    Memory: 169.81 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - /usr/local/bin/node
    npm: 9.6.5 - /usr/local/bin/npm
    pnpm: 8.6.12 - ~/Library/pnpm/pnpm
    Watchman: 2023.09.25.00 - /opt/homebrew/bin/watchman

Used Package Manager

npm

Validations