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

+14 -12
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { getHost } from "lib/Api/Host";
import { playletStateStore } from "lib/Stores";
import { playletStateStore, tr } from "lib/Stores";
export let visibility: boolean;
@@ -87,6 +87,8 @@
const feedbackTitle = encodeURIComponent("[Feedback] Playlet");
let githubUrlIssue = "https://github.com/iBicha/playlet/issues/new";
let mailToUrl = "mailto:brahim.hadriche@gmail.com";
const feedbackMessageRaw =
"You have feedback? Let us know by %IssueStart%creating an issue on Github%IssueEnd% or by %EmailStart%sending an email%EmailEnd%.";
playletStateStore.subscribe((value) => {
appInfo = value.app || {};
@@ -141,17 +143,17 @@ ${JSON.stringify(profilesInfo, null, 2)}
<div class={visibility ? "" : "hidden"}>
<div class="text-base text-center m-8">
Thank you for using Playlet.<br /> You have feedback? Let us know by
<a
class="link"
href={githubUrlIssue}
target="_blank"
rel="noopener noreferrer">creating an issue on Github</a
>
or by
<a class="link" href={mailToUrl} target="_blank" rel="noopener noreferrer"
>sending an email</a
>.
{@html $tr(feedbackMessageRaw)
.replace(
"%IssueStart%",
`<a class="link" href="${githubUrlIssue}" target="_blank" rel="noopener noreferrer">`
)
.replace("%IssueEnd%", "</a>")
.replace(
"%EmailStart%",
`<a class="link" href="${mailToUrl}" target="_blank" rel="noopener noreferrer">`
)
.replace("%EmailEnd%", "</a>")}
</div>
<div class="overflow-x-auto">
<table class="table">