refactor: change v1 to import own copy of i18n

This commit is contained in:
2026-09-12 19:31:59 +05:00
parent de2a229545
commit 939038ffc0
24 changed files with 39 additions and 39 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
<script lang="ts">
import { resolve } from "$app/paths";
import favicon from "$lib/assets/favicon.svg";
import { LOCALES, type Locale } from "$lib/i18n/dict";
import { getLocale, initLocale, setLocale } from "$lib/i18n/locale.svelte";
import { t } from "$lib/i18n/t";
import { LOCALES, type Locale } from "$lib/v1/i18n/dict";
import { getLocale, initLocale, setLocale } from "$lib/v1/i18n/locale.svelte";
import { t } from "$lib/v1/i18n/t";
import { getTheme, initTheme, setTheme } from "$lib/theme.svelte";
import { onMount } from "svelte";
import "../../app_v1.css";
+2 -2
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { t } from "$lib/i18n/t";
import { toolTitle } from "$lib/i18n/tool-strings";
import { t } from "$lib/v1/i18n/t";
import { toolTitle } from "$lib/v1/i18n/tool-strings";
import ToolPage from "$lib/v1/components/ToolPage.svelte";
import ToolSearch from "$lib/v1/components/search/ToolSearch.svelte";
import Button from "$lib/v1/components/ui/Button.svelte";
+2 -2
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import { resolve } from "$app/paths";
import { t } from "$lib/i18n/t";
import { toolDescription, toolTitle } from "$lib/i18n/tool-strings";
import { t } from "$lib/v1/i18n/t";
import { toolDescription, toolTitle } from "$lib/v1/i18n/tool-strings";
import { CATEGORIES } from "$lib/v1/categories";
import ToolCard from "$lib/v1/components/search/ToolCard.svelte";
import { TOOLS } from "$lib/v1/registry";
+2 -2
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { t } from "$lib/i18n/t";
import { toolDescription, toolTitle } from "$lib/i18n/tool-strings";
import { t } from "$lib/v1/i18n/t";
import { toolDescription, toolTitle } from "$lib/v1/i18n/tool-strings";
import ToolPage from "$lib/v1/components/ToolPage.svelte";
import { getTool } from "$lib/v1/registry";
+1 -1
View File
@@ -1,4 +1,4 @@
import { t } from "$lib/i18n/t";
import { t } from "$lib/v1/i18n/t";
import { getTool, TOOLS } from "$lib/v1/registry";
import { error } from "@sveltejs/kit";
import type { EntryGenerator, PageLoad } from "./$types";