Hi, is i18n and css dark mode available?

Hi, I want to build a vue3 based project with vite, i18n and css dark mode. Is that work?

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)

It seems the dark mode in the demo links to another url?
like:
'https://preview.keenthemes.com/metronic8/demo1/dark/index.html' and 'https://preview.keenthemes.com/metronic8/demo1/index.html'.

Yes, dark and light preview pages are located in different URLs.

Hi Lauris ,
thanks for your reply. Different urls can not apply a transition effect when switch to another theme.

Is that possible to switch dark and night in just css ? (Like put a class called 'is-dark' in the body element and apply a transition animation when switch)

Hi,

We haven't tried our theme with Vite yet, we will consider trying it in upcoming releases.
For now please refer to the Vite official doc: https://vitejs.dev/

i18n is implemented by default, check our i18n doc for more info:
https://preview.keenthemes.com/metronic8/vue/docs/#/internationalization

Dark mode styles are included in the Vue version too.

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(