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
In our setup we have typescript enabled and are getting strong typing on keys and results. This is great! What would make it next level is if there were some way to cmd + click or GoToDefinition on the message id and be taken to the implementation in the default locale file. Is this already possible? If not thoughts on making it possible? I was mulling over potentially using some constant for the ids but would be amazing if it could be done in the library itself.
example:
Would love to be able to cmd + click historyWarning.title in VSCode to go to the local file it was inferred from.
(Update: it seems at least in this raw form it may not currently be possible to do with the string literal alone: microsoft/TypeScript#49033. So maybe something with a constant object could be done. eg using MyLocale.historyWarning.title instead of raw string or similar)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In our setup we have typescript enabled and are getting strong typing on keys and results. This is great! What would make it next level is if there were some way to cmd + click or GoToDefinition on the message id and be taken to the implementation in the default locale file. Is this already possible? If not thoughts on making it possible? I was mulling over potentially using some constant for the ids but would be amazing if it could be done in the library itself.
example:
Would love to be able to cmd + click historyWarning.title in VSCode to go to the local file it was inferred from.
(Update: it seems at least in this raw form it may not currently be possible to do with the string literal alone: microsoft/TypeScript#49033. So maybe something with a constant object could be done. eg using MyLocale.historyWarning.title instead of raw string or similar)
Beta Was this translation helpful? Give feedback.
All reactions