4 ms·
I kind of despise the pattern where in order to support translations you have to turn every string in your program into an abomination of bespoke markup, storin
by rhyme-boss 3y ago
I kind of despise the pattern where in order to support translations you have to turn every string in your program into an abomination of bespoke markup, storing strings in variables, etc..
- winternewt 3y agoDo you have any alternative in mind? Assuming we want the user interface to have grammatically correct language.
- rhyme-boss 3y agouse a delimiter that's already in your markup to identify strings, and then translate those. Like look at `<p>` boundaries and other tags that wrap plain text, and attach an attribute like data-translation-id.