Translation API for multiple keys #737
-
Hi everyone, I have a JSON file with messages that need to be translated into a TypeScript (.ts) file. Currently, I'm using the following code for translation: .json
.ts
However, I find this approach a bit lengthy and complex. I'm looking for a more readable and concise way to achieve the same translation but with less code. Can anyone suggest a better approach or provide some tips on improving the existing code? Thanks in advance for your help! P.S better approach can be if if if possible
P.S real real case was following
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
@shaharkazaz Do you maybe know something more regarding this topic? |
Beta Was this translation helpful? Give feedback.
-
@shaharkazaz Do you maybe know when can we expect a new version with braking changes? |
Beta Was this translation helpful? Give feedback.
-
@ViktorDimitrievski I was in reserve duty and therefore not available. That said, I'll finish the change and release the version whenever I have free time. Out of curiosity, are you working on a personal project or using Transloco as part of your job? |
Beta Was this translation helpful? Give feedback.
@ViktorDimitrievski I appreciate your willingness to assist! 😀
I've already made the change and I'll release a new major today as this is a breaking change (a good one, but still 😉)
I would love to see you contribute to other issues we have here.
Thanks!