Automatically remove synced defaultValues from code #2425
noinskit
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
I'm wondering, what's the use-case for dropping the default string for language keys? Is it to avoid the "unnecessary" declaration of the default value or does it have other benefits? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm converting a website with UI strings inlined with code to Tolgee and I found it very useful to automatically remove the
defaultValue
argument fromt()
invocations (just after they've been synced to Tolgee with tolgee-cli).I think it would make a nice addition to tolgee-cli.
FWIW this is the code I've been using (using ts-morph), although I'm aware it cannot be used directly due to multiple languages/platforms supported by tolgee-cli:
Beta Was this translation helpful? Give feedback.
All reactions