From 8534f4bafb4f172ca3ccb9b4da7dd191d27635c8 Mon Sep 17 00:00:00 2001 From: AdrienLSH Date: Fri, 2 Feb 2024 11:02:23 +0100 Subject: [PATCH] lang: search window title --- frontend/static/js/lang/en.json | 3 ++- frontend/static/js/lang/fr.json | 3 ++- frontend/static/js/views/Search.js | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/static/js/lang/en.json b/frontend/static/js/lang/en.json index 700fbe3..c5e42e4 100644 --- a/frontend/static/js/lang/en.json +++ b/frontend/static/js/lang/en.json @@ -28,5 +28,6 @@ "registerFormButton": "Register", "registerAlreadyAccount": "Already have an account?", "registerLogin": "Login", - "404WindowTitle": "Not Found" + "404WindowTitle": "Not Found", + "SearchWindowTitle": "Search" } diff --git a/frontend/static/js/lang/fr.json b/frontend/static/js/lang/fr.json index 4691961..663c19c 100644 --- a/frontend/static/js/lang/fr.json +++ b/frontend/static/js/lang/fr.json @@ -28,5 +28,6 @@ "registerFormButton": "S'inscrire", "registerAlreadyAccount": "Déjà un compte?", "registerLogin": "Connexion", - "404WindowTitle": "Pas trouvé" + "404WindowTitle": "Pas trouvé", + "SearchWindowTitle": "Recherche" } diff --git a/frontend/static/js/views/Search.js b/frontend/static/js/views/Search.js index 76358f8..5cab730 100644 --- a/frontend/static/js/views/Search.js +++ b/frontend/static/js/views/Search.js @@ -1,10 +1,10 @@ import AbstractView from "./abstracts/AbstractView.js"; -import {client} from "../index.js"; +import { client, lang } from "../index.js"; import {Message} from "../api/chat/message.js" export default class extends AbstractView { constructor(params) { - super(params, "Search"); + super(params, lang.get('SearchWindowTitle', 'Search')); } async wait_get_online_users() {