Don't force English
This commit is contained in:
parent
097baf1814
commit
d027a9b6dc
14 changed files with 14 additions and 17 deletions
|
@ -2,7 +2,7 @@
|
|||
import { changeLanguage } from "i18next";
|
||||
import Base from "@layouts/Default.astro";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
---
|
||||
|
||||
<Base Title="MinPluto" Description="">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { t, changeLanguage } from "i18next";
|
||||
import Category from "@layouts/Category.astro";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
---
|
||||
|
||||
<Category GradientHero="#269753" FetchData="?type=gaming" CategoryName={t("SIDEBAR.CATEGORY_LIST.GAMES")} CategoryDescription={t("SIDEBAR.CATEGORY_LIST.GAMES_DESCRIPTION")}></Category>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { t, changeLanguage } from "i18next";
|
||||
import Category from "@layouts/Category.astro";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
---
|
||||
|
||||
<Category GradientHero="#ff4f4f" FetchData="?type=movies" CategoryName={t("SIDEBAR.CATEGORY_LIST.MOVIES")} CategoryDescription={t("SIDEBAR.CATEGORY_LIST.MOVIES_DESCRIPTION")}>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { t, changeLanguage } from "i18next";
|
||||
import Default from "@layouts/Default.astro";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
|
||||
// Configuration
|
||||
import {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { t, changeLanguage } from "i18next";
|
||||
import Category from "@layouts/Category.astro";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
---
|
||||
|
||||
<Category GradientHero="#ff650b" FetchData="" CategoryName={t("SIDEBAR.CATEGORY_LIST.TRENDING")} CategoryDescription={t("SIDEBAR.CATEGORY_LIST.TRENDING_DESCRIPTION")}></Category>
|
||||
|
|
|
@ -3,7 +3,7 @@ import Base from "@layouts/Default.astro";
|
|||
|
||||
// i18n
|
||||
import i18next, { t, changeLanguage } from "i18next";
|
||||
changeLanguage("en");
|
||||
|
||||
|
||||
// Configuration
|
||||
import { DEFAULT_MEDIA_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from '@utils/GetConfig'
|
||||
|
|
|
@ -11,7 +11,7 @@ import { DEFAULT_MEDIA_DATA_PROXY, DEFAULT_IMAGE_PROXY } from '@utils/GetConfig'
|
|||
// Discover Data
|
||||
import Discover from "../../data/discover.json";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
---
|
||||
|
||||
<Base>
|
||||
|
|
|
@ -9,7 +9,7 @@ import { DEFAULT_MEDIA_DATA_PROXY, DEFAULT_MEDIA_DATA_PROXY, DEFAULT_IMAGE_PROXY
|
|||
const SWV = Astro.url.href.split("embed/").pop();
|
||||
const video = await fetch(DEFAULT_MEDIA_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json());
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
---
|
||||
|
||||
<Embed
|
||||
|
|
|
@ -4,7 +4,7 @@ import Base from "@layouts/Default.astro";
|
|||
|
||||
import Dialog from '@components/Dialog.astro'
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
|
||||
// Configuration
|
||||
import {
|
||||
|
@ -35,9 +35,6 @@ const GamingFetch = DEFAULT_MEDIA_DATA_PROXY + '/api/v1/trending?type=gaming'
|
|||
const GamingResponse = await fetch(GamingFetch)
|
||||
const GamingData = await GamingResponse.json()
|
||||
const GamingSplit = GamingData.slice(0, 1)
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
<Base Title="MinPluto" Description="">
|
||||
|
|
|
@ -4,7 +4,7 @@ import Base from "@layouts/Default.astro";
|
|||
|
||||
import Dialog from '@components/Dialog.astro'
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
|
||||
// Configuration
|
||||
import {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { t, changeLanguage } from "i18next";
|
|||
import Base from "@layouts/Default.astro";
|
||||
import { version } from "@root/package.json";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
---
|
||||
|
||||
<Base Title="MinPluto" Description="">
|
||||
|
|
|
@ -3,7 +3,7 @@ import { t, changeLanguage } from "i18next";
|
|||
import Base from "@layouts/Default.astro";
|
||||
import { HomeSimple, GraphUp, Movie, MusicDoubleNote, Gamepad, AppleImac2021Side, EmojiTalkingHappy, PizzaSlice, Treadmill, PeaceHand } from "@iconoir/vue";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
---
|
||||
|
||||
<Base Title="MinPluto" Description="">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
import { changeLanguage } from "i18next";
|
||||
import Base from "@layouts/Default.astro";
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
---
|
||||
|
||||
<Base Title="MinPluto" Description="">
|
||||
|
|
|
@ -15,7 +15,7 @@ const SWV = Astro.url.href.split("watch?v=").pop();
|
|||
const video = await fetch(DEFAULT_MEDIA_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json());
|
||||
const comments = await fetch(DEFAULT_MEDIA_DATA_PROXY + "/api/v1/comments/" + SWV).then((response) => response.json());
|
||||
|
||||
changeLanguage("en");
|
||||
|
||||
|
||||
const Description = video.description;
|
||||
const UploadDate = video.published;
|
||||
|
|
Reference in a new issue