Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jhipster delting the languages

I am really new to JHipster. I am writing an application based on the JHipster Template. The JHipster template comes up with a lot of languages but I only need a few of them. My question is how can I delete the other one without getting errors. I can't just delete the menu entries. Because they come from Cookies and are initialized with the following coed.

<li class="dropdown pointer" ng-controller="LanguageController">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="javascript:;">
                            <span>
                                <span class="glyphicon glyphicon-flag"></span>
                                <span class="hidden-tablet" translate="global.menu.language">Language</span>
                                <b class="caret"></b>
                            </span>
                        </a>
                        <ul class="dropdown-menu">
                            <li active-menu="{{key}}" ng-repeat="(key, language) in languages">
                                <a href="javascript:;" ng-click="changeLanguage(key)">{{language}}</a>
                            </li>
                        </ul>
                    </li>

Does someone now where those Cookies are initialized and how I can delete the other languages?

like image 809
Trafalgar Avatar asked Nov 20 '25 04:11

Trafalgar


1 Answers

  • You can delete them, indeed. Have a look at the constants.js file.
  • In the next version we will make this easier, as indeed we are now having too many languages!
like image 70
Julien Dubois Avatar answered Nov 21 '25 18:11

Julien Dubois