What is waitForPendingLocaleChange()
supposed to do?
#3161
-
What is According to the docs it's this: "Returns a promise that will be resolved once the pending locale is set." But it doesn't. I want to change the route hash after* the locale was changed but if I use If I wrap So apparently * preferably I'd like to change the hash in the same operation that changes the route prefix when changing the locale, but I did not find a way to hook into that operation. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The |
Beta Was this translation helpful? Give feedback.
The
waitForPendingLocaleChange()
function only does something ifskipSettingLocaleOnNavigate
is enabled, it's used when using page transitions, see https://i18n.nuxtjs.org/docs/guide/lang-switcher#wait-for-page-transition