-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
last-updated transfomer ignored after hydration #1035
Comments
But when I copied your config to test, I got a I recommend you to use a professional date transformer instead of the native Date API, since it would have Inconsistent performance on different platforms. Feel free to continue if you can provide a valid repro. |
Read the source: https://github.com/vuejs/vuepress/blob/master/packages/%40vuepress/theme-default/components/Page.vue#L77 It alrady uses toLocaleString without the plugin and takes the locale from the config.js locales so translating a single language page to German: locales: {
"/": {
lang: "de-DE"
}
}, |
…lose: #1035) Move the transformation to $plugin-last-updated, BTW, expose `lang` as the 2nd argument
Bug report
last-updated transfomer ignored after hydration
Version
^1.0.0-alpha.23
Steps to reproduce
config.js
if I debug the return value of the transfomer callback is a correct german local string.
The state of the
<v-XXX>
(the Component within<Content>
) holds$page.lastUpdated: "Mittwoch, 21. November 2018, 22:17"
but the shows
Last Updated: 11/21/2018, 10:17:00 PM
What is expected?
It should show the string from the transformer.
Other relevant information
The text was updated successfully, but these errors were encountered: