# i18Next EXTENSION i18next is a full-featured i18n javascript library for translating your webapplication.

About

I18next is an internationalization-framework written in and for JavaScript. But it's much more than that. i18next goes beyond just providing the standard i18n features such as (plurals, context, interpolation, format). It provides you with a complete solution to localize your product from web to mobile and desktop.

There are other variations and versions of this plugin that is a little more advanced. The one we used is a bit ancient and for a purpose of demonstration only.

Find in-depth, guidelines, tutorials and more on i18Next's Official Documentation

## Integration demo

The plugin file is loaded via our lazyload script mechanism `initApp.loadScript("js/my_lovely_script.js", myFunction);`. This way the plugin and the language file is loaded on demand of the user only. This is triggered using the data attributes `data-action="lang"` `data-lang="en"`

Click on the buttons below to change the menu's language:

English Chinese (traditional)

## Configuration options

The lang files are stored in the `src/custom/lang` directory. Each language will have its own file and structure looks like below:

##### Lang file layout

    {
      "app": {
        "name": "SmartAdmin"
      },
      "nav": {
        "application_intel": "Analytics Intel",
        "application_intel_analytics_dashboard": "Analytics Dashboard",
        "application_intel_marketing_dashboard": "Marketing Dashboard",
      }
    }

##### HTML indicators to trigger change

    <nav>
        <span data-i18n="nav.application_intel"></span>
        <span data-i18n="nav.application_intel_analytics_dashboard"></span>
        <span data-i18n="nav.application_intel_marketing_dashboard"></span>
    </nav>

##### Script

    $.i18n.init({
    	resGetPath: 'media/data/__lng__.json',
    	load: 'unspecific',
    	fallbackLng: false,
    	lng: applang
    }, function (t){
    	$('[data-i18n]').i18n();
    });

##### Dependencies (if you wish to load it manually)

    <script src="js/app.jquery.bundle.js"></script>
    <script src="js/i18n/i18n.js"></script>

- Home
- Inbox
- Add More

Tracey Chang
IT Director

- Tracey Chang Online
- Oliver Kopyuv Online
- Dr. John Cook PhD Away
- Ali Amdaney Online
- Sarah McBrook Online
- oliver.kopyuv@gotbootstrap.com Offline
- oliver.kopyuv@gotbootstrap.com Busy
- oliver.kopyuv@gotbootstrap.com Offline
- +714651347790 Missed Call

Jun 19

Hey Tracey, did you get my files?

3:00 pm

Hi

Sorry going through a busy time in office. Yes I analyzed the solution.

It will require some resource, which I could not manage.

3:24 pm

Okay

Sending you some dough today, you can allocate the resources to this project.

3:26 pm

Perfect. Thanks a lot!

I will have them ready by tonight.

Cheers

Jun 20
Send

#### Layout Settings User Interface Settings

##### App Layout

Fixed Header header is in a fixed at all times
Fixed Navigation left panel is fixed
Minify Navigation Skew nav to maximize space
Hide Navigation roll mouse on edge to reveal
Top Navigation Relocate left pane to top
Fixed Footer page footer is fixed
Boxed Layout Encapsulates to a container

Fixed Background

##### Mobile Menu

Push Content Content pushed on menu reveal
No Overlay Removes mesh on menu reveal
Off-Canvas (beta) Content overlaps menu

##### Accessibility

Bigger Content Font content fonts are bigger for readability
High Contrast Text (WCAG 2 AA) 4.5:1 text contrast ratio
Daltonism (beta) color vision deficiency
Preloader Inside preloader will be inside content
SmartPanel Icons (not Panels) smartpanel buttons will appear as icons

##### Global Modifications

Clean Page Background adds more whitespace
Hide Navigation Icons invisible navigation icons
Disable CSS Animation Disables CSS based animations
Hide Info Card Hides info card from left panel
Lean Subheader distinguished page header
Hierarchical Navigation Clear breakdown of nav links
Dark Navigation Navigation background is darkend

##### Global Font Size

SM MD LG XL
Change root font size to effect rem values (resets on page refresh)

##### Theme colors more info

##### Theme Modes (beta) why beta?

###### Internet Explorer Issue

This particular component may not work as expected in Internet Explorer. Please use with caution.
Default
Light
Dark

Reset Settings
Factory Reset