Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


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:

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.



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)


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(