remove redundant parameter from Lang()

This commit is contained in:
ari melody 2025-07-15 00:02:12 +01:00
parent 1b25e56d0a
commit 7db5ec7fae
Signed by: ari
GPG key ID: 60B5F0386E3DDB7E
24 changed files with 29 additions and 36 deletions

View file

@ -20,7 +20,7 @@
import FollowersVisIcon from '@cf/icons/followers.svg';
import PrivateVisIcon from '@cf/icons/dm.svg';
const lang = Lang('en_GB');
const lang = Lang();
export let reply_id;

View file

@ -7,7 +7,7 @@
import Logo from '$lib/../img/campfire-logo.svg';
const lang = Lang('en_GB');
const lang = Lang();
let display_error = false;
let logging_in = false;

View file

@ -28,7 +28,7 @@
import FollowersIcon from '../../img/icons/followers.svg';
const VERSION = APP_VERSION;
const lang = Lang('en_GB');
const lang = Lang();
const dispatch = createEventDispatcher();

View file

@ -11,7 +11,7 @@
import ActionBar from '$lib/ui/post/ActionBar.svelte';
import Lang from '$lib/lang';
const lang = Lang('en_GB');
const lang = Lang();
let mention = (accounts) => {
let res = `<a href="/${$server.host}/${account.fqn}">${account.rich_name}</a>`;

View file

@ -1,7 +1,7 @@
<script>
import Lang from '$lib/lang';
const lang = Lang('en_GB');
const lang = Lang();
</script>
<div id="widgets">

View file

@ -20,7 +20,7 @@
export let post;
const lang = Lang('en_GB');
const lang = Lang();
async function toggleBoost() {
if (!$app || !$app.token) return;

View file

@ -3,7 +3,7 @@
export let post;
const lang = Lang('en_GB');
const lang = Lang();
let open = false;
</script>

View file

@ -4,7 +4,7 @@
import RepostIcon from '@cf/icons/repost.svg';
import Lang from '$lib/lang';
const lang = Lang('en_GB');
const lang = Lang();
export let post;

View file

@ -15,7 +15,7 @@
export let focused = false;
export let pinned = false;
const lang = Lang('en_GB');
const lang = Lang();
let post_context = undefined;
let post = post_data;

View file

@ -3,7 +3,7 @@
import { server } from '$lib/client/server';
import Lang from '$lib/lang';
const lang = Lang('en_GB');
const lang = Lang();
export let post;
export let reply = undefined;

View file

@ -4,7 +4,7 @@
import Lang from '$lib/lang';
const dispatch = createEventDispatcher();
const lang = Lang('en_GB');
const lang = Lang();
export let type = "react";
export let label = lang.string('post.actions.react');