parent
ff99657ab3
commit
0aea3c1e7c
@ -141,19 +141,15 @@ return $locale == l;
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{$locale}
|
|
||||||
{JSON.stringify($locale)}
|
|
||||||
<div class="w-full p-3">
|
<div class="w-full p-3">
|
||||||
<div class="inline-block mr-2 mt-2">
|
<div class="inline-block mr-2 mt-2">
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
// lang.set("de-DE");
|
lang.set("de-DE");
|
||||||
locale.set("de-DE");
|
locale.set("de-DE");
|
||||||
}}
|
}}
|
||||||
type="button"
|
type="button"
|
||||||
class:bg-black={$locale !== "de-DE"}
|
class="bg-black focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-black text-white text-sm py-2.5 px-5 rounded-md hover:bg-blue-700"
|
||||||
class:bg-blue-700={JSON.stringify($locale) == "de-DE"}
|
|
||||||
class="focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-black text-white text-sm py-2.5 px-5 rounded-md hover:bg-blue-700"
|
|
||||||
>Deutsch
|
>Deutsch
|
||||||
<svg
|
<svg
|
||||||
class="h-4 inline"
|
class="h-4 inline"
|
||||||
@ -174,13 +170,11 @@ return $locale == l;
|
|||||||
<div class="inline-block mr-2 mt-2">
|
<div class="inline-block mr-2 mt-2">
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
// lang.set("en-US");
|
lang.set("en-US");
|
||||||
locale.set("en-US");
|
locale.set("en-US");
|
||||||
}}
|
}}
|
||||||
type="button"
|
type="button"
|
||||||
class:bg-black={$locale !== "en-US"}
|
class="bg-black focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-black text-white text-sm py-2.5 px-5 rounded-md hover:bg-blue-700"
|
||||||
class:bg-blue-700={$locale !== "en-US"}
|
|
||||||
class="focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-black text-white text-sm py-2.5 px-5 rounded-md hover:bg-blue-700"
|
|
||||||
>English
|
>English
|
||||||
<svg
|
<svg
|
||||||
class="h-4 inline"
|
class="h-4 inline"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user