Skip to content

Commit

Permalink
user translated interpolate string
Browse files Browse the repository at this point in the history
  • Loading branch information
JanAckermann committed Mar 19, 2021
1 parent 6533a77 commit 7290420
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/web-runtime/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</template>
<script>
import 'inert-polyfill'
import { mapGetters, mapState, mapActions } from 'vuex'
import {mapActions, mapGetters, mapState} from 'vuex'
import TopBar from './components/Top-Bar.vue'
import MessageBar from './components/MessageBar.vue'
import SkipTo from './components/SkipTo.vue'
Expand Down Expand Up @@ -327,7 +327,9 @@ export default {
announceRouteChange(route) {
const pageTitle = this.extractPageTitleFromRoute(route, false)
this.announcement = `${this.$gettext('Navigated to')} "${pageTitle}"`
const translated = this.$gettext(' Navigated to %{ pageTitle }')
this.announcement = this.$gettextInterpolate(translated, { pageTitle })
},
extractPageTitleFromRoute(route, includeGeneralName = true) {
Expand Down

0 comments on commit 7290420

Please sign in to comment.