You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
generator outputs weird comments in i18n-types.ts RootTranslation #755
I'm sorry for the screenshot, but i can't just copy the value – bug disappears.
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
I also thought this was a bug, but it's actually a feature, since it's meant to link to the right place when looking for a translation key, instead of having this also come up as an extra place.
Activity
StagnantIce commentedon Jun 20, 2024
Its not a bug, you can fix it by found this row:
const addNonBreakingSpaceBetweenCharacters = (value: string) => value.split('').join('')
Alevale commentedon Jul 18, 2025
I also thought this was a bug, but it's actually a feature, since it's meant to link to the right place when looking for a translation key, instead of having this also come up as an extra place.
A better explanation can be provided by #585