Closed dlockhart closed 7 years ago
@ryantmer mentioned offline that it might be nice to try and keep the separate file for just the translations. I'm going to play with a setup that preserves this.
OK, updated to still use the existing mixin, so the translations can be encapsulated nicely in a separate file.
I've switched this over to use
d2l-localize-behavior
fromapp-localize-behavior
.The main change here is that specifying
<d2l-file-uploader language="whatever">
is no longer needed -- it will automatically pull the language off the<html lang="fr">
element/attribute. So a much more scalable way to do localization in our web components.I feel like this should result in a major version bump for the component, since it's changing the way localization is specified.