satisfactorymodding / smr-frontend

Next generation Satisfactory Modding Repository (SMR) frontend
https://satisfactorymodding.github.io/smr-frontend/main/
GNU General Public License v3.0
6 stars 24 forks source link

Set up TS typed translation keys? #190

Open budak7273 opened 2 months ago

budak7273 commented 2 months ago

If we care about it: https://tolgee.io/js-sdk/typed_keys

I tried to follow it by putting a tolgee.d.ts file in src/, and it seemed to be recognized, but I could not find a way to ensure it was working (ex. a value that it would complain about). It did show the key as the TranslationKey type. I tried removing the LiteralUnion portion.