1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-25 23:03:47 +01:00

chore: adds locale for menu items (#3969)

This commit is contained in:
Amir Raminfar
2025-06-11 19:59:59 -07:00
committed by GitHub
parent bcb859509b
commit a47be8730a
20 changed files with 169 additions and 35 deletions

View File

@@ -143,13 +143,15 @@
<li class="line"></li>
<li>
<a @click.prevent="showDrawer(Terminal, { container, action: 'attach' }, 'lg')">
<ri:terminal-window-fill /> Attach
<ri:terminal-window-fill />
{{ $t("toolbar.attach") }}
<KeyShortcut char="a" :modifiers="['shift', 'meta']" />
</a>
</li>
<li>
<a @click.prevent="showDrawer(Terminal, { container, action: 'exec' }, 'lg')">
<material-symbols:terminal /> Shell
<material-symbols:terminal />
{{ $t("toolbar.shell") }}
<KeyShortcut char="e" :modifiers="['shift', 'meta']" />
</a>
</li>

View File

@@ -3,7 +3,24 @@
class="dropdown dropdown-start dropdown-hover font-sans group-[.compact]:absolute group-[.compact]:-left-0.5"
v-show="container"
>
<button tabindex="0" class="btn btn-square btn-ghost btn-xs -mr-1 -ml-3 opacity-0 group-hover/entry:opacity-100">
<router-link
v-if="isSearching"
@click="resetSearch()"
tabindex="0"
class="btn btn-square btn-ghost btn-xs pointer-events-auto! -mr-1 -ml-3 opacity-0 group-hover/entry:opacity-100"
:to="{
name: '/container/[id].time.[datetime]',
params: { id: container.id, datetime: logEntry.date.toISOString() },
query: { logId: logEntry.id },
}"
>
<material-symbols:eye-tracking />
</router-link>
<button
tabindex="0"
class="btn btn-square btn-ghost btn-xs -mr-1 -ml-3 opacity-0 group-hover/entry:opacity-100"
v-else
>
<ion:ellipsis-vertical />
</button>
<ul
@@ -11,17 +28,8 @@
class="menu dropdown-content rounded-box bg-base-200 border-base-content/20 z-50 -mr-1 -ml-3 w-52 border p-1 text-sm shadow-sm"
@click="hideMenu"
>
<li>
<a v-if="isSupported" @click="copyLogMessage()">
<material-symbols:content-copy />
Copy line
</a>
<a v-if="isSupported" @click="copyPermalink()">
<material-symbols:link />
Copy permalink
</a>
<li v-if="isSearching">
<router-link
v-if="isSearching"
@click="resetSearch()"
:to="{
name: '/container/[id].time.[datetime]',
@@ -30,11 +38,25 @@
}"
>
<material-symbols:eye-tracking />
See log in context
{{ $t("action.see-in-context") }}
</router-link>
<a @click="showDrawer(LogDetails, { entry: logEntry })" v-if="logEntry instanceof ComplexLogEntry">
</li>
<li v-if="isSupported">
<a @click="copyLogMessage()">
<material-symbols:content-copy />
{{ $t("action.copy-log") }}
</a>
</li>
<li v-if="isSupported">
<a @click="copyPermalink()">
<material-symbols:link />
{{ $t("action.copy-link") }}
</a>
</li>
<li v-if="logEntry instanceof ComplexLogEntry">
<a @click="showDrawer(LogDetails, { entry: logEntry })">
<material-symbols:code-blocks-rounded />
Show details
{{ $t("action.show-details") }}
</a>
</li>
</ul>

View File

@@ -13,12 +13,10 @@ exports[`<ContainerEventSource /> > render html correctly > should render dates
<circle cx="256" cy="96" r="48" fill="currentColor"></circle>
</svg></button>
<ul tabindex="0" class="menu dropdown-content rounded-box bg-base-200 border-base-content/20 z-50 -mr-1 -ml-3 w-52 border p-1 text-sm shadow-sm">
<li>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!--v-if-->
</li>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!--v-if-->
</ul>
</div>
<!--v-if-->
@@ -49,12 +47,10 @@ exports[`<ContainerEventSource /> > render html correctly > should render dates
<circle cx="256" cy="96" r="48" fill="currentColor"></circle>
</svg></button>
<ul tabindex="0" class="menu dropdown-content rounded-box bg-base-200 border-base-content/20 z-50 -mr-1 -ml-3 w-52 border p-1 text-sm shadow-sm">
<li>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!--v-if-->
</li>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!--v-if-->
</ul>
</div>
<!--v-if-->
@@ -85,12 +81,10 @@ exports[`<ContainerEventSource /> > render html correctly > should render messag
<circle cx="256" cy="96" r="48" fill="currentColor"></circle>
</svg></button>
<ul tabindex="0" class="menu dropdown-content rounded-box bg-base-200 border-base-content/20 z-50 -mr-1 -ml-3 w-52 border p-1 text-sm shadow-sm">
<li>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!--v-if-->
</li>
<!--v-if-->
<!--v-if-->
<!--v-if-->
<!--v-if-->
</ul>
</div>
<!--v-if-->

View File

@@ -1,5 +1,4 @@
<template>
<Search />
<HistoricalContainerLog :id :date show-title :scrollable="pinnedLogs.length > 0" v-if="currentContainer" />
<div v-else-if="ready" class="hero bg-base-200 min-h-screen">
<div class="hero-content text-center">

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Genstart
show-hostname: Vis værtsnavn
show-container-name: Vis containernavn
shell: Shell
attach: Tilknyt
action:
copy-log: Kopier log
copy-link: Kopier permalink
see-in-context: Se i kontekst
show-details: Vis detaljer
label:
containers: Containere
container: Ingen containere | 1 container | {count} containere

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Neustarten
show-hostname: Host-Name anzeigen
show-container-name: Container-Name anzeigen
shell: Shell
attach: Anhängen
action:
copy-log: Log kopieren
copy-link: Permalink kopieren
see-in-context: Im Kontext anzeigen
show-details: Details anzeigen
label:
containers: Container
container: Keine Container | 1 Container | {count} Container

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Restart
show-hostname: Show hostname
show-container-name: Show container name
shell: Shell
attach: Attach
action:
copy-log: Copy log
copy-link: Copy permalink
see-in-context: See in context
show-details: Show details
label:
containers: Containers
container: No containers | 1 container | {count} containers

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Reiniciar
show-hostname: Mostrar nombre del host
show-container-name: Mostrar nombre del contenedor
shell: Shell
attach: Conectar
action:
copy-log: Copiar registro
copy-link: Copiar enlace permanente
see-in-context: Ver en contexto
show-details: Mostrar detalles
label:
containers: Contenedores
container: No contenedores | 1 contenedor | {count} contenedores

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Redémarrer
show-hostname: Afficher le nom d'hôte
show-container-name: Afficher le nom du conteneur
shell: Shell
attach: Attacher
action:
copy-log: Copier le journal
copy-link: Copier le permalien
see-in-context: Voir dans le contexte
show-details: Afficher les détails
label:
containers: Conteneurs
container: Pas de conteneur | 1 conteneur | {count} conteneurs

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Mulai ulang
show-hostname: Tampilkan nama host
show-container-name: Tampilkan nama kontainer
shell: Shell
attach: Lampirkan
action:
copy-log: Salin log
copy-link: Salin permalink
see-in-context: Lihat dalam konteks
show-details: Tampilkan detail
label:
containers: Kontainer

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Restart
show-hostname: Mostra nome host
show-container-name: Mostra nome container
shell: Shell
attach: Collega
action:
copy-log: Copia log
copy-link: Copia permalink
see-in-context: Vedi nel contesto
show-details: Mostra dettagli
label:
containers: Container
container: Nessun container | 1 container | {count} container

View File

@@ -9,6 +9,13 @@ toolbar:
restart: 다시 시작
show-hostname: 호스트 이름 보기
show-container-name: 컨테이너 이름 보기
shell:
attach: 연결
action:
copy-log: 로그 복사
copy-link: 영구 링크 복사
see-in-context: 컨텍스트에서 보기
show-details: 세부 정보 표시
label:
containers: 컨테이너
container: 컨테이너가 없습니다 | 컨테이너 1개 | 컨테이너 {count}개

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Herstarten
show-hostname: Toon hostnaam
show-container-name: Toon containernaam
shell: Shell
attach: Koppelen
action:
copy-log: Log kopiëren
copy-link: Permalink kopiëren
see-in-context: Bekijk in context
show-details: Toon details
label:
containers: Containers
container: Geen containers | 1 container | {count} containers

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Restart
show-hostname: Pokaż nazwę hosta
show-container-name: Pokaż nazwę kontenera
shell: Shell
attach: Dołącz
action:
copy-log: Skopiuj log
copy-link: Skopiuj permalink
see-in-context: Zobacz w kontekście
show-details: Pokaż szczegóły
label:
service: Brak usług | 1 usługa | {count} usług
total-containers: Całkowita liczba kontenerów

View File

@@ -4,6 +4,18 @@ toolbar:
search: Pesquisa
show: Mostrar apenas {std}
show-all: Mostrar todos os fluxos
stop: Parar
start: Iniciar
restart: Reiniciar
show-hostname: Mostrar nome do anfitrião
show-container-name: Mostrar nome do contentor
shell: Shell
attach: Anexar
action:
copy-log: Copiar registo
copy-link: Copiar hiperligação permanente
see-in-context: Ver no contexto
show-details: Mostrar detalhes
label:
containers: Contentores
container: Nenhum contentor | 1 contentor | {count} contentores

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Reiniciar
show-hostname: Mostrar nome do host
show-container-name: Mostrar nome do container
shell: Shell
attach: Anexar
action:
copy-log: Copiar log
copy-link: Copiar permalink
see-in-context: Ver no contexto
show-details: Mostrar detalhes
label:
containers: Contêineres
container: Nenhum container | 1 container | {count} containers

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Перезапустить
show-hostname: Показать имя хоста
show-container-name: Показать имя контейнера
shell: Оболочка
attach: Подключить
action:
copy-log: Копировать лог
copy-link: Копировать постоянную ссылку
see-in-context: Посмотреть в контексте
show-details: Показать детали
label:
containers: Контейнеры
container: Нет контейнеров | 1 контейнер | {count} контейнеров

View File

@@ -9,6 +9,13 @@ toolbar:
restart: Yeniden Başlat
show-hostname: Sunucu adını göster
show-container-name: Konteyner adını göster
shell: Kabuk
attach: Bağla
action:
copy-log: Günlüğü kopyala
copy-link: Kalıcı bağlantıyı kopyala
see-in-context: Bağlamda gör
show-details: Detayları göster
label:
containers: Konteynerlar
container: Konteyner yok | 1 konteyner | {count} konteyner

View File

@@ -9,6 +9,13 @@ toolbar:
restart: 重新啟動
show-hostname: 顯示主機名稱
show-container-name: 顯示容器名稱
shell: 終端機
attach: 附加
action:
copy-log: 複製日誌
copy-link: 複製永久連結
see-in-context: 在內容中查看
show-details: 顯示詳細資訊
label:
containers: 容器
container: 無容器 | 1 個容器 | {count} 個容器

View File

@@ -9,6 +9,13 @@ toolbar:
restart: 重启
show-hostname: 显示主机名
show-container-name: 显示容器名称
shell: 终端
attach: 附加
action:
copy-log: 复制日志
copy-link: 复制永久链接
see-in-context: 在上下文中查看
show-details: 显示详细信息
label:
containers: 容器
container: 无容器 | 1 容器 | {count} 容器