Hacker News new | ask | show | jobs
by LikeAnElephant 1688 days ago
It's almost universally bad practice to reference your TMS at runtime. There are always exceptions in G11N, but typically the best route is to either dump your translations into a property file or cache the translations somehow (in memory or in a DB, etc)
1 comments

If you use Tolgee, you should be using translations fetched from REST API in production. So you don't reference your TMS. See: https://tolgee.io/docs/web/get_started/preparing_for_product...

Or: https://tolgee.io/docs/web/using_with_react/react_preparing_...