-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: uses XI18n component pt1 (#3455)
Part of #2813 This PR uses `<XI18n />` (#3420) throughout the application in place of `v-html`. I also turned our `vue/no-v-html` to `error` (it only warns by default) This means we can start using "non-DNS safe" terms/vars for our i18n texts if we need to do that. --- I also switched some usages of `innerHTML` to use `textContent` which, aside from other things, is apparently more performant, so may help further speed up our CodeBlock component. Finally, I added `eslint-plugin-no-unsanitized`, i.e. if we are linting for `v-html` we should also lint for `innerHTML`, can't really depend on one without the other. There'll be a separate PR to start using `<XI18n v-slot="{ t }" />` within non-route component (in the few places where we need that), and also using `<XI18n v-slot="{ t }" />` within `RouteView` to provide `RouteView::t`. Once that is done I'd like to somehow restrict usage of `useI18n()` so that the only way to translate/localize text is via `<XI18n />`. --- (sidenote: our RouteAnnouncer functionality has been broken for quite some time, I'll fix that up in a separate PR) Signed-off-by: John Cowen <[email protected]>
- Loading branch information
Showing
28 changed files
with
319 additions
and
237 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.