Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Valexr committed Apr 19, 2024
1 parent ed4d617 commit 17f7f9f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function createQuote() {
const url = `./assets/quotes_${local}.json`
const res = await fetch(url);
const json = await res.json()
console.log(navigator.languages[1])
const quote = json[random(json.length)];
set(quote)
}
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ export function random(length: number) {
}

export function t(en: string, ru: string) {
console.log(navigator.languages[1])
return navigator.languages[1] === 'ru' ? ru : en
}

0 comments on commit 17f7f9f

Please sign in to comment.