remove redundant parameter from Lang()
This commit is contained in:
parent
1b25e56d0a
commit
7db5ec7fae
24 changed files with 29 additions and 36 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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>`;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
import Lang from '$lib/lang';
|
||||
|
||||
const lang = Lang('en_GB');
|
||||
const lang = Lang();
|
||||
</script>
|
||||
|
||||
<div id="widgets">
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
export let post;
|
||||
|
||||
const lang = Lang('en_GB');
|
||||
const lang = Lang();
|
||||
|
||||
async function toggleBoost() {
|
||||
if (!$app || !$app.token) return;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
export let post;
|
||||
|
||||
const lang = Lang('en_GB');
|
||||
const lang = Lang();
|
||||
|
||||
let open = false;
|
||||
</script>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue