i18n on the web - deepseek translations

This commit is contained in:
Priec
2026-08-14 20:35:37 +02:00
parent 2dc0d94ba0
commit 8f1bfdbe0c
91 changed files with 4679 additions and 1237 deletions

View File

@@ -1,8 +1,8 @@
{# POST /api/catalog — crate::pages::analytics::ui::CatalogFragment #}
{% if tables.is_empty() %}
<p class="hint">This profile has no analytics tables.</p>
<p class="hint">{{ nav.tr("analytics-no-tables") }}</p>
{% else %}
<p class="schema-summary"><strong>{{ tables.len() }}</strong> tables available</p>
<p class="schema-summary">{{ nav.tr_count("analytics-tables-available", "count", tables.len() as i64) }}</p>
<div class="catalog-tables">
{% for table in tables %}
<details class="catalog-table">
@@ -10,7 +10,7 @@
<code>{{ table.name }}</code>
</summary>
<button type="button" class="starter-query" data-sql="{{ table.starter_query }}"
x-on:click="sql = $el.dataset.sql; $refs.sql.focus()">Use starter query</button>
x-on:click="sql = $el.dataset.sql; $refs.sql.focus()">{{ nav.tr("analytics-use-starter") }}</button>
<ul class="columns">
{% for column in table.columns %}
<li>
@@ -22,10 +22,10 @@
</ul>
{% if !table.links.is_empty() %}
<div class="links">
<span>Links</span>
<span>{{ nav.tr("analytics-links") }}</span>
<ul>
{% for link in table.links %}
<li><code>{{ link.source_column }}</code><code>{{ link.linked_table }}</code>{% if link.required %} (required){% endif %}</li>
<li><code>{{ link.source_column }}</code><code>{{ link.linked_table }}</code>{% if link.required %} ({{ nav.tr("analytics-required") }}){% endif %}</li>
{% endfor %}
</ul>
</div>
@@ -34,11 +34,11 @@
{% endfor %}
</div>
<details class="llm-context">
<summary>LLM schema context</summary>
<p class="hint">Copy this entire text and include it when asking an LLM to write a query.</p>
<summary>{{ nav.tr("analytics-llm-context") }}</summary>
<p class="hint">{{ nav.tr("analytics-llm-hint") }}</p>
<textarea x-ref="llmSchema" readonly>{{ llm_context }}</textarea>
<button type="button" class="secondary"
x-on:click="navigator.clipboard.writeText($refs.llmSchema.value); copied = true">Copy context</button>
<span class="hint" x-show="copied" x-cloak>Copied</span>
x-on:click="navigator.clipboard.writeText($refs.llmSchema.value); copied = true">{{ nav.tr("analytics-copy-context") }}</button>
<span class="hint" x-show="copied" x-cloak>{{ nav.tr("analytics-copied") }}</span>
</details>
{% endif %}