diff --git a/src/app/modules/link/link.component.html b/src/app/modules/link/link.component.html index 580ecaa..282314f 100644 --- a/src/app/modules/link/link.component.html +++ b/src/app/modules/link/link.component.html @@ -1,4 +1,4 @@ - + {{ text | translate }} diff --git a/src/app/modules/panel/panel.component.html b/src/app/modules/panel/panel.component.html index 0350ee5..88baf9e 100644 --- a/src/app/modules/panel/panel.component.html +++ b/src/app/modules/panel/panel.component.html @@ -15,8 +15,8 @@ #lang_btn >{{ getLang() }} - - + + diff --git a/src/app/modules/panel/panel.component.ts b/src/app/modules/panel/panel.component.ts index cbeaab5..2fb6170 100644 --- a/src/app/modules/panel/panel.component.ts +++ b/src/app/modules/panel/panel.component.ts @@ -3,17 +3,20 @@ import { Component, ElementRef, HostListener, ViewChild } from "@angular/core"; import { FontAwesomeModule } from "@fortawesome/angular-fontawesome"; import { faGithub } from "@fortawesome/free-brands-svg-icons"; import { faPowerOff, faVolumeHigh } from "@fortawesome/free-solid-svg-icons"; +import { TranslationPipe } from '../../pipes/translation.pipe'; import { PanelSevice } from "../../services/panel.service"; import { TranslateService } from "../../services/translate.service"; @Component({ standalone: true, selector: "app-panel", - imports: [CommonModule, FontAwesomeModule], + imports: [CommonModule, FontAwesomeModule, TranslationPipe], templateUrl: "./panel.component.html", styleUrls: ["./panel.component.less"], }) export class PanelComponent { + source_code_btn_title = "SOURCE_CODE_TITLE" + public time = ""; faGithub = faGithub; faVolume = faVolumeHigh; diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 6ccb062..289fc66 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -4,5 +4,6 @@ "MODAL_TEXT": "Hello, World!", "TELEGRAM_LABEL": "Telegram channel", "GITHUB_LABEL": "Admin's Github", - "GITEA_LABEL": "Neuro LLC Gitea" + "GITEA_LABEL": "Neuro LLC Gitea", + "SOURCE_CODE_TITLE": "Source code" } diff --git a/src/assets/i18n/ja.json b/src/assets/i18n/ja.json index 94ee720..e710822 100644 --- a/src/assets/i18n/ja.json +++ b/src/assets/i18n/ja.json @@ -4,5 +4,6 @@ "MODAL_TEXT": "こんにちは、世界!", "TELEGRAM_LABEL": "Telegramチャンネル", "GITHUB_LABEL": "管理者Github", - "GITEA_LABEL": "Neuro LLC Gitea" + "GITEA_LABEL": "Neuro LLC Gitea", + "SOURCE_CODE_TITLE": "ソースコード" } diff --git a/src/assets/i18n/ru.json b/src/assets/i18n/ru.json index 1c67830..2b7209d 100644 --- a/src/assets/i18n/ru.json +++ b/src/assets/i18n/ru.json @@ -4,5 +4,6 @@ "MODAL_TEXT": "Здравствуйте, мир!", "TELEGRAM_LABEL": "Телеграм канал", "GITHUB_LABEL": "Github админа", - "GITEA_LABEL": "Neuro LLC Gitea" + "GITEA_LABEL": "Neuro LLC Gitea", + "SOURCE_CODE_TITLE": "Исходный код" }