Control date format on footer from git #1726
-
I want the date format in the footer from git to appear in UK (DD/MMM/YYYY) format, https://vuepress-theme-hope.github.io/v2/guide/feature/meta.html#git-based-information
Is this the current language specified in the config - if so do I need to submit a PR for a en-gb lanaguage? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Sorry, we no longer use dayjs to format now in v2, (we will correct v2 docs soon). Now we are using So if the browser is supporting your language, it should provide the correct locale string. We do not have plans to make any edit here, but you are free to overide it using https://vuepress-theme-hope.github.io/v2/cookbook/advanced/replace.html#replace-components |
Beta Was this translation helpful? Give feedback.
Sorry, we no longer use dayjs to format now in v2, (we will correct v2 docs soon).
Now we are using
Date.toLocaleString(currentPageLang)
So if the browser is supporting your language, it should provide the correct locale string.
We do not have plans to make any edit here, but you are free to overide it using https://vuepress-theme-hope.github.io/v2/cookbook/advanced/replace.html#replace-components