feat(Language): remove unused quote language functionality and clean up code

This commit is contained in:
alexsparkes
2026-01-24 21:32:11 +00:00
parent 503eef29c8
commit 07a6e2bbf4
4 changed files with 28 additions and 88 deletions

View File

@@ -156,9 +156,8 @@ export function useQuoteLoader(updateQuote) {
if (offline) return doOffline();
const fetchAPIQuote = async () => {
const quoteLanguage = localStorage.getItem('quoteLanguage');
const response = await fetch(
`${variables.constants.API_URL}/quotes/random?language=${quoteLanguage}`
`${variables.constants.API_URL}/quotes/random`
).then(res => res.json());
if (response.statusCode === 429) return null;
@@ -169,7 +168,6 @@ export function useQuoteLoader(updateQuote) {
author: response.author,
authorlink: getAuthorLink(response.author),
...authorimgdata,
quoteLanguage,
authorOccupation: response.author_occupation,
};
};

View File

@@ -11,7 +11,6 @@ export function useQuoteState() {
authorlink: null,
authorimg: null,
authorimglicense: null,
quoteLanguage: '',
noQuote: false,
});