aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Error/LogInRestricted.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Error/LogInRestricted.svelte')
-rw-r--r--src/lib/Error/LogInRestricted.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/Error/LogInRestricted.svelte b/src/lib/Error/LogInRestricted.svelte
index 999f2db3..0d4f00e3 100644
--- a/src/lib/Error/LogInRestricted.svelte
+++ b/src/lib/Error/LogInRestricted.svelte
@@ -2,18 +2,19 @@
import Popup from "$lib/Layout/Popup.svelte";
import { env } from "$env/dynamic/public";
import localforage from "localforage";
+import locale from "$stores/locale";
</script>
<Popup fullscreen locked>
<div class="message">
- Please <a
+ {$locale().errors?.loginRequiredPrefix}<a
href={`https://anilist.co/api/v2/oauth/authorize?client_id=${env.PUBLIC_ANILIST_CLIENT_ID}&redirect_uri=${env.PUBLIC_ANILIST_REDIRECT_URI}&response_type=code`}
onclick={async () => {
await localforage.setItem(
'redirect',
window.location.origin + window.location.pathname + window.location.search
);
- }}>log in</a
- > to view this page.
+ }}>{$locale().errors?.loginRequiredLink}</a
+ >{$locale().errors?.loginRequiredSuffix}
</div>
</Popup>