-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass custom function to produce the route change announcement #26
Comments
Hi @tcitworld You can use the setComplementRoute method to update the route complement when the language changes. |
This method is just about changing the complement. I'm talking about totally customizing how the announcement is build. Imagine a language where the order of the sentence would be like |
I came here to give this feature request my vote as well. There's often a case where the title of the page includes some brand naming, which can be redundant for route announces. In such case the relevant part of the route could be parsed via this kind of function. |
Here is also my feature request, somewhat similar to this. We are needing this feature for being able to properly translate the route change message with I18N setup: #27 (comment) |
Currently it's just concatenating
message
andcomplement
.vue-announcer/src/index.js
Line 79 in e19a2df
For i18n purposes, it would be nice to pass a function when installing the plugin that would allow to define how this works, something like:
The text was updated successfully, but these errors were encountered: