Replies: 1 comment 2 replies
-
Not sure if I completely understand your use case, but generally the best way is to simply call This might be related: #1661 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I've been running into a problem where I have a function that should be given a specific translation. I'd like to write a function something like this, that doesn't use next-intl directly
I know that I could pass
t
toformatAccountName
with something liketypeof useTranslations<"account">
, however I have a script that statically analyses translations in order to cull unused translations (Like in here).Is this something maintainers think should be worth considering? It could be something enable-able via
AppConfig
.Fwiw, I can get this working in my own
.d.ts
file, but then I have to callt
witht("<key>" as const)
to get a matching return type.Beta Was this translation helpful? Give feedback.
All reactions