Translation of dynamic / external texts #27
Unanswered
tsteckenborn
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The idea of fbtee is that all translatable text is statically available at build time. If you have dynamic data that you want to render, it has to be present in source code. In the case of configuration, I would recommend using enums or other identifiers in the db/config store and then mapping that to fbt in code. Here is an example of how this works in Athena Crisis: https://github.com/nkzw-tech/athena-crisis/blob/main/hera/lib/getTranslatedBiomeName.tsx Can you give an example of what you are looking for? |
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 currently unsure on how to best translates texts that might be included dynamically (e.g. from configuration or services). Any recommendations on that?
Beta Was this translation helpful? Give feedback.
All reactions