Skip to content

Pass custom function to produce the route change announcement #26

@tcitworld

Description

@tcitworld

Currently it's just concatenating message and complement.

Vue.prototype.$announcer.set(`${msg} ${complement}`, politeness)

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:

(message) => {
  return this.$gettext('%{ message } has been loaded');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions