logo
The World’s #1 Bootstrap 5 HTML,
VueJS, React, Angular, Laravel, Asp.Net Core, Blazor, Django & Flask

Admin Dashboard Ecosystem

This is Metronic 7 documentation!

Upon purchase you can get Metronic 7 version from our Github Repository.
Request Github access
The new Metronic 8 is now available with the most advanced Bootstrap 5, VueJS, React and Laravel foundation with a solid light and dark mode design system, extensive utility classes and custom made in-house components.
View Metronic 8 documentation

To use most of the Metronic build tools, Node.js LTS version is required. Version 14.x LTS is recommended. Some of the plugins and framework in Metronic v7 does not support the latest Node.js version. https://nodejs.org/en/

Internationalization (i18n)

Overview

The internationalization (i18n) library for Vue is vue-i18n and defined in [metronic]/theme/vue/[demo]/src/core/plugins/vue-i18n.js. Vue I18n is internationalization plugin of Vue.js. It easily integrates some localization features to your Vue.js Application. For more detailed documentation, see here https://kazupon.github.io/vue-i18n/

How to add a new language

Register your new language in the plugin configuration file in [metronic]/theme/vue/[demo]/src/core/plugins/vue-i18n.js

Create a new language config and the example can be found in this folder [metronic]/theme/vue/[demo]/src/core/config/i18n/

Import new language config into vue-i18n plugin config file in [metronic]/theme/vue/[demo]/src/core/plugins/vue-i18n.js

import { locale as myLang } from "@/common/config/i18n/myLang";
//...
messages = { ...messages, en, ch, es, jp, de, fr, myLang };

New language selection can be added in this language selector component [metronic]/theme/vue/[demo]/src/view/layout/topbar/DropdownLanguage.vue

How to use

Use it anywhere in the HTML template.

{{ $t('message.hello', { msg: 'hello' }) }}

More sample use can be found in https://kazupon.github.io/vue-i18n/started.html

Think About The Future, Stay Connected With Us
The More We Learn, The More We Are Able To Innovate & To Develop