website icon indicating copy to clipboard operation
website copied to clipboard

test: Check if a translation macro actually exists

Open mal-tee opened this issue 4 years ago • 3 comments

We should also write a test that checks if a macro is defined, if it's used in the translations. Feel free to move this into a new issue.

Originally posted by @mal-tee in https://github.com/datenanfragen/website/issues/802#issuecomment-950316326

mal-tee avatar Oct 24 '21 16:10 mal-tee

Can you elaborate on what you mean by that?

baltpeter avatar Oct 24 '21 17:10 baltpeter

If a translation string uses ${x}, x should be defined in the macro section. :D

mal-tee avatar Oct 24 '21 17:10 mal-tee

But that's the other way compared to what the issue says. :P

Either way, how would you implement that? I don't see a way to do that through Cypress (other than what I already did in #802). Do you want to establish another testing framework?

baltpeter avatar Oct 24 '21 20:10 baltpeter