summaryrefslogtreecommitdiff
path: root/src/ollama_web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/ollama_web/templates')
-rw-r--r--src/ollama_web/templates/index.html6
-rw-r--r--src/ollama_web/templates/login.html4
2 files changed, 3 insertions, 7 deletions
diff --git a/src/ollama_web/templates/index.html b/src/ollama_web/templates/index.html
index 11457e8..df877fa 100644
--- a/src/ollama_web/templates/index.html
+++ b/src/ollama_web/templates/index.html
@@ -11,9 +11,7 @@
<script src="{{ url_for('static', path='vendor/purify.min.js') }}"></script>
<script src="{{ url_for('static', path='vendor/highlight.min.js') }}"></script>
<script src="{{ url_for('static', path='vendor/katex.min.js') }}"></script>
- <script>
- window.I18N = {{ messages | tojson }};
- </script>
+ <meta name="ollama-web-i18n" content="{{ messages | tojson | forceescape }}" />
<script src="{{ url_for('static', path='i18n.js') }}"></script>
</head>
<body>
@@ -89,4 +87,4 @@
<script src="{{ url_for('static', path='mcp.js') }}"></script>
<script src="{{ url_for('static', path='app.js') }}"></script>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/src/ollama_web/templates/login.html b/src/ollama_web/templates/login.html
index 128c842..263afe7 100644
--- a/src/ollama_web/templates/login.html
+++ b/src/ollama_web/templates/login.html
@@ -5,9 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ollama-web login</title>
<link rel="stylesheet" href="{{ url_for('static', path='style.css') }}" />
- <script>
- window.I18N = {{ messages | tojson }};
- </script>
+ <meta name="ollama-web-i18n" content="{{ messages | tojson | forceescape }}" />
<script src="{{ url_for('static', path='i18n.js') }}"></script>
</head>
<body class="login-page">