Replies: 1 comment
-
|
Hi @mustafa0x, thanks for trying it out and bringing up the idea! Tagged template strings were not extracted previously so I just made a new release that fixes this. You can upgrade Now, both of your ideas are possible, you can choose whichever is better to you. For the tagged template idea, you can make the heuristic function: function heuristic(msg) {
return msg.details.call === '_'
}And for your magic char idea: function heuristic(msg) {
return msg.msgStr[0].startsWith('※')
}If you use a simple heuristic function like this, it will ignore everything else. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for this @K1DV5, looks impressive! I'm working on replacing paraglide with this in my projects (a few million visitors per month).
Question, I was reviewing the rules, and am worried that it'll require many considerations in the code to make sure what I want to be translated is, and what I don't isn't.
I know a custom heuristic can be written, but I'm curious if you've considered adding a template tag, to opt in to translations, eg
and another option is some magic char, eg
"※this will be translated"Beta Was this translation helpful? Give feedback.
All reactions