Pinegrow Community Support Forum

BootStrap 4 multilingual site menu


BootStrap 4 multilingual site menu is a simple example of how to do a multilingual selector menu in BootStrap 4 .

because of the way BootStrap works, it requires JavaScript on and JQuery loaded
useful for i18n (internationalization) and i10n (localization)


<!DOCTYPE html>
<html lang="en">
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <meta name="description" content="">
        <meta name="author" content="">
        <title>Multilingual Menu in Navbar Template for Bootstrap</title>
        <!-- Bootstrap core CSS -->
        <link href="" rel="stylesheet"> 
        <link href="" rel="stylesheet">
        <!-- Custom styles for this template -->
        <link href="navbar.css" rel="stylesheet">
        <div class="container">
            <nav class="navbar navbar-expand-lg navbar-light bg-light rounded">
                <a class="navbar-brand" href="#">Navbar</a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample09" aria-controls="navbarsExample09" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                <div class="collapse navbar-collapse" id="navbarsExample09">
                    <ul class="navbar-nav mr-auto">
                        <li class="nav-item active">
                            <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
                        <li class="nav-item">
                            <a class="nav-link" href="#">Link</a>
                        <li class="nav-item">
                            <a class="nav-link disabled" href="#">Disabled</a>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="" id="dropdown09" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span class="flag-icon flag-icon-us"> </span> English</a>
                            <div class="dropdown-menu" aria-labelledby="dropdown09">
                                <a class="dropdown-item" href="#fr"><span class="flag-icon flag-icon-fr"> </span>  French</a>
                                <a class="dropdown-item" href="#it"><span class="flag-icon flag-icon-it"> </span>  Italian</a>
                                <a class="dropdown-item" href="#ru"><span class="flag-icon flag-icon-ru"> </span>  Russian</a>
                    <form class="form-inline my-2 my-md-0">
                        <input class="form-control" type="text" placeholder="Search" aria-label="Search">
        <!-- Bootstrap core JavaScript
    ================================================== -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script src="" crossorigin="anonymous"></script>
        <script src=""></script>

navbar.css is actually rather superfluous

body {
    /*padding-top: 20px;*/
    padding-bottom: 20px;

.navbar {
    margin-bottom: 20px;


Rather neat! thanks for sharing :slight_smile: