Skip to content

Commit

Permalink
Fixed replay and webapp in different languages
Browse files Browse the repository at this point in the history
  • Loading branch information
VascoRatoFCCN committed May 16, 2023
1 parent a5fef67 commit d2ba9a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions framed/templates/frame_insert_mobile.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@
<!-- Plugin for cookie to choose language-->
<link rel="shortcut icon" href="/img/logo-16.png" type="image/x-icon">
<!-- Arquivo.pt specific functions and js code, such as loading constants, cookies -->
{# Language cookie must be read from the server since it's an HttpOnly cookie #}
{% for cookie in env.HTTP_COOKIE.split(';') %}
{% if cookie.split('=')[0].strip() == 'i18n' %}
<script>localStorage.language = "{{ cookie.split('=')[1].strip().split('_')[0].upper() }}";</script>
{% endif %}
{% endfor %}
<script src="{{ static_prefix }}/js/arquivo.js{{ buildUrlSuffix }}"></script>
<script src="{{ static_prefix }}/js/replayLeftNav.js{{ buildUrlSuffix }}"></script>
<script type="text/javascript">
Expand Down

0 comments on commit d2ba9a6

Please sign in to comment.