locale for web app (#334)

* locale for web app

* more translations

* Rename profiles service to avoid locale conflict

* More translation work

* Lint fix

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2024-03-22 17:43:03 -04:00
1 parent 019fde1e67
commit 42dadec020
54 files changed
+538 -151

No files matched your search

+3 -8
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { onDestroy, onMount } from "svelte";
import { playletStateStore } from "lib/Stores";
import { playletStateStore, tr } from "lib/Stores";
import { InvidiousApi } from "lib/Api/InvidiousApi";
import VideoCastDialog from "./VideoFeed/VideoCastDialog.svelte";
import ChannelCastDialog from "./VideoFeed/ChannelCastDialog.svelte";
@@ -17,15 +17,10 @@
let videoMetadata;
let channelMetadata;
let tvName = "Roku TV";
let invidiousInstance;
let invidiousApi = new InvidiousApi();
playletStateStore.subscribe((value) => {
tvName = value?.device?.friendly_name ?? "Roku TV";
invidiousApi.instance = invidiousInstance =
value?.invidious?.current_instance;
invidiousApi.instance = value?.invidious?.current_instance;
});
onMount(async () => {
@@ -199,7 +194,7 @@
: 'hidden'} fixed w-full h-full bg-base-100/80 z-50 flex justify-center items-center"
>
{#if isDragging}
<div class="text-2xl font-bold">Drop a YouTube link here</div>
<div class="text-2xl font-bold">{$tr("Drop a YouTube link here")}</div>
{:else if isLoading}
<span class="loading loading-spinner loading-md" />
{/if}