From bd01a35cc6f47e8d26c3b1394dabf584892ae696 Mon Sep 17 00:00:00 2001 From: Nolway Date: Sun, 19 Dec 2021 16:01:51 +0100 Subject: [PATCH] Add en-US translations --- .../AudioManager/AudioManager.svelte | 3 +- front/src/Components/Chat/Chat.svelte | 3 +- .../Components/Chat/ChatMessageForm.svelte | 3 +- front/src/Components/Chat/ChatSubMenu.svelte | 9 +- .../CustomCharacterScene.svelte | 14 ++- .../EnableCamera/EnableCameraScene.svelte | 5 +- .../Components/FollowMenu/FollowMenu.svelte | 50 +++++--- .../HelpCameraSettingsPopup.svelte | 16 +-- front/src/Components/Login/LoginScene.svelte | 13 +- .../Components/Menu/AboutRoomSubMenu.svelte | 25 ++-- .../Components/Menu/AudioGlobalMessage.svelte | 5 +- .../src/Components/Menu/ContactSubMenu.svelte | 24 ++-- .../Menu/GlobalMessagesSubMenu.svelte | 11 +- front/src/Components/Menu/GuestSubMenu.svelte | 14 ++- front/src/Components/Menu/Menu.svelte | 15 ++- front/src/Components/Menu/MenuIcon.svelte | 29 ++++- .../src/Components/Menu/ProfileSubMenu.svelte | 19 +-- .../Components/Menu/SettingsSubMenu.svelte | 67 +++++++--- .../Components/Menu/TextGlobalMessage.svelte | 3 +- front/src/Components/MyCamera.svelte | 3 +- .../Components/ReportMenu/BlockSubMenu.svelte | 7 +- .../Components/ReportMenu/ReportMenu.svelte | 9 +- .../ReportMenu/ReportSubMenu.svelte | 13 +- .../SelectCompanionScene.svelte | 7 +- .../Components/TypeMessage/BanMessage.svelte | 4 +- front/src/Components/UI/AudioPlaying.svelte | 3 +- .../src/Components/VisitCard/VisitCard.svelte | 4 +- .../WarningContainer/WarningContainer.svelte | 11 +- .../SelectCharacterScene.svelte | 7 +- front/src/Phaser/Login/EntryScene.ts | 17 ++- .../Phaser/Reconnecting/ReconnectingScene.ts | 3 +- front/src/Translator/Translator.ts | 4 +- front/src/WebRtc/MediaManager.ts | 5 +- front/translations/en-US/audio.en-US.json | 8 ++ front/translations/en-US/camera.en-US.json | 19 +++ front/translations/en-US/chat.en-US.json | 10 ++ front/translations/en-US/companion.en-US.json | 9 ++ .../en-US/custom-character.en-US.json | 16 +++ front/translations/en-US/error.en-US.json | 14 +++ front/translations/en-US/follow.en-US.json | 25 ++++ front/translations/en-US/login.en-US.json | 12 ++ front/translations/en-US/menu.en-US.json | 118 ++++++++++++++++++ front/translations/en-US/report.en-US.json | 23 ++++ front/translations/en-US/test.en-US.json | 5 - front/translations/en-US/warning.en-US.json | 13 ++ 45 files changed, 539 insertions(+), 158 deletions(-) create mode 100644 front/translations/en-US/audio.en-US.json create mode 100644 front/translations/en-US/camera.en-US.json create mode 100644 front/translations/en-US/chat.en-US.json create mode 100644 front/translations/en-US/companion.en-US.json create mode 100644 front/translations/en-US/custom-character.en-US.json create mode 100644 front/translations/en-US/error.en-US.json create mode 100644 front/translations/en-US/follow.en-US.json create mode 100644 front/translations/en-US/login.en-US.json create mode 100644 front/translations/en-US/menu.en-US.json create mode 100644 front/translations/en-US/report.en-US.json delete mode 100644 front/translations/en-US/test.en-US.json create mode 100644 front/translations/en-US/warning.en-US.json diff --git a/front/src/Components/AudioManager/AudioManager.svelte b/front/src/Components/AudioManager/AudioManager.svelte index b62d8fbe..5bf02fc9 100644 --- a/front/src/Components/AudioManager/AudioManager.svelte +++ b/front/src/Components/AudioManager/AudioManager.svelte @@ -5,6 +5,7 @@ import { get } from "svelte/store"; import type { Unsubscriber } from "svelte/store"; import { onDestroy, onMount } from "svelte"; + import { translator } from "../../Translator/Translator"; let HTMLAudioPlayer: HTMLAudioElement; let audioPlayerVolumeIcon: HTMLElement; @@ -144,7 +145,7 @@
diff --git a/front/src/Components/Chat/Chat.svelte b/front/src/Components/Chat/Chat.svelte index 6827dde4..2e60e43e 100644 --- a/front/src/Components/Chat/Chat.svelte +++ b/front/src/Components/Chat/Chat.svelte @@ -5,6 +5,7 @@ import ChatElement from "./ChatElement.svelte"; import { afterUpdate, beforeUpdate, onMount } from "svelte"; import { HtmlUtils } from "../../WebRtc/HtmlUtils"; + import { translator } from "../../Translator/Translator"; let listDom: HTMLElement; let chatWindowElement: HTMLElement; @@ -45,7 +46,7 @@

×

    -
  • Here is your chat history:

  • +
  • {translator._("chat.intro")}

  • {#each $chatMessagesStore as message, i}
  • {/each} diff --git a/front/src/Components/Chat/ChatMessageForm.svelte b/front/src/Components/Chat/ChatMessageForm.svelte index d57eaf5c..6853d669 100644 --- a/front/src/Components/Chat/ChatMessageForm.svelte +++ b/front/src/Components/Chat/ChatMessageForm.svelte @@ -1,5 +1,6 @@
      -
    • -
    • +
    • + +
    • +