Remotely configured translations? #101
Closed
BrutalCoding
started this conversation in
Ideas
Replies: 2 comments
-
Hi, This feature is on the pipeline but it is too much effort to do it now. Maybe, end of 2022 is possible. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is released in 3.0.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
edit - I just noticed this #52 about the same issue. Only noticed it after I opened my topic here.
For anyone reading, what is the best approach to make (certain) translations remotely configurable?
Let me explain.
I've currently got 1 JSON with translations, and Slang generates the statically typed version of it.
So far so good.
However, some of these translations might change in the future. The keys will stay the same, but the values might change and that could also affect the variables inside the values. No new variables will be added but some might be removed/unused.
E.g. simple use case
Today:
"greeting": "Hey $username, how can I help you?"
In the future, without app updates:
"greeting": "How may I help you today?"
A more realistic use case is that a certain text is explaining how the (dollar) amount that the user is about to pay, is calculated. The user sees this before the user confirms the payment. This calculation is done by the backend, thus the amount might change over time and I would like to have the flexibility to update the explainer text to reflect this change too.
My solution would be to:
The way I see it is that I should implement my own approach for these remotely configurable translations, so Slang will have nothing to do with this topic. Because I don't see how Slang could help me in this scenario, but I'm obviously open to any ideas.
Beta Was this translation helpful? Give feedback.
All reactions