Skip to content

Commit

Permalink
feat(ZNTA-2113): store locale in window config
Browse files Browse the repository at this point in the history
  • Loading branch information
efloden committed Feb 13, 2018
1 parent 6c19e35 commit eb767bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/zanata-frontend/src/index.html
Expand Up @@ -30,6 +30,7 @@
data-links='{"loginUrl": "/login",
"registerUrl": "/register"
}'
data-app-locale='en-us'
/>
<script type="application/javascript">
window.config = document.getElementById('config').dataset
Expand Down
1 change: 1 addition & 0 deletions server/zanata-war/src/main/webapp/a/index.xhtml
Expand Up @@ -37,6 +37,7 @@
data-links='{"loginUrl": "#{applicationConfigurationAction.getLoginUrl(request)}",
"registerUrl": "#{applicationConfigurationAction.registerUrl}"}'
data-allow-register="#{allowPublicRegistration}"
data-app-locale="#{localeSelectorAction.getLocale()}"
>
</div>
<script type="application/javascript">
Expand Down

0 comments on commit eb767bc

Please sign in to comment.