2 ms·
An interesting thing of this article is that the SVG image of the type matchup [1] has embedded automatic translation. The type labels will be displayed in the
by reddalo 10mo ago
An interesting thing of this article is that the SVG image of the type matchup [1] has embedded automatic translation.
The type labels will be displayed in the language your browser is set to. I didn't even know this was possible.
[1] https://upload.wikimedia.org/wikipedia/commons/9/97/Pokemon_Type_Chart.svg https://upload.wikimedia.org/wikipedia/commons/9/97/Pokemon_...
- nchagnet 10mo agoOh that's really cool, I didn't know about this! I just linked to the wikimedia-hosted illustration, but that's a good perk too.
- scrollaway 10mo agoIt's using the <switch> tag for this https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/switch https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/E... However, like with many of these obscure features, I am not so sure it works well in practice. I have the Windows 11 laptop I'm viewing that SVG from set with support enabled for english, french and russian, and I'm getting, among most of the English tags, a few stray "Psychique" and "Привидение" types in the svg. I have no idea how it chooses which one to show, there.
- Sardtok 10mo agoJust a wild guess, but perhaps the order of the translations vary across cells. Perhaps the browser just picks the first one that matches your supported locales.
- coolness 10mo agoWow thats very cool, i was puzzled at first as to why the pokemon types were in Finnish!
- deleted 10mo ago[deleted]