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)


The internationalization (i18n) library for Angular by ngx-translate. Check on the example; http://www.ngx-translate.com and https://github.com/ngx-translate/core

How to add a new language

Check on these files to register a new language

  1. /src/app/pages/_layout/topbar/language-selector/language-selector.component.ts
  2. /src/app/modules/i18n/vocabs/*.ts
  3. /src/app/app.component.ts

Add a new language here for the language selector to apppear; language-selector.component.ts

Duplicate en.ts file and create a new language file in /src/app/modules/i18n/vocabs/*.ts. The new file name and the language code inside must be matched.

Register the language by importing the language file to /src/app/app.component.ts and load all the language files to TranslationService.

import { locale as enLang } from './modules/i18n/vocabs/en';
this.translationService.loadTranslations(enLang, chLang, esLang, jpLang, deLang, frLang);

How to use

In the sample Angular application demo, the core parts like left side menu, topbar horizontal menu, etc. are already implemented with the translation.

The translator understands nested JSON objects as defined in /src/app/app.component.ts.

Examples of usage:
  1. Vocabulary example:
    {"HOME": {
        "HELLO": "hello {{value}}"
  2. View example *.html (you can then access the value by using the dot notation, in this case HOME.HELLO):
    <div [translate]="'HOME.HELLO'" [translateParams]="{value: 'world'}"></div>
  3. Code behind example *.ts:
    import { TranslateService } from '@ngx-translate/core';
      // Other code
      constructor(private translate: TranslateService) { }
      // Other code
      const _title: string = this.translate.instant('HOME.HELLO', "World");

For more detailed information, visit the official NGX Translate documentation website.

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