Skip to content

generator outputs weird comments in i18n-types.ts RootTranslation #755

@dilame

Description

@dilame

Version

5.26.2

Describe the bug

I'm sorry for the screenshot, but i can't just copy the value – bug disappears.

Screenshot 2023-12-19 at 03 57 44

Here we can see that comment for TranslationFunctions is good. Comment in root translation contains the same text, but with each character separated by ZWSP (seems to stand for Zero-Width Space)

Reproduction

I don't do anything special – just npx typesafe-i18n --no-watch

Logs

No response

Config

{
  "baseLocale": "en-EN",
  "esmImports": true,
  "outputPath": "./src",
  "$schema": "https://unpkg.com/typesafe-i18n@5.26.2/schema/typesafe-i18n.json"
}

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions