release(desktop): Release v0.4.5
release(desktop): Release v0.4.5
@@ -9,15 +9,6 @@ updates:
|
||||
timezone: Asia/Singapore
|
||||
target-branch: dev
|
||||
ignore:
|
||||
# Stuck by react 19
|
||||
- dependency-name: react
|
||||
versions: [">=19.0.0"]
|
||||
- dependency-name: react-dom
|
||||
versions: [">=19.0.0"]
|
||||
- dependency-name: "@types/react"
|
||||
versions: [">=19.0.0"]
|
||||
- dependency-name: "@types/react-dom"
|
||||
versions: [">=19.0.0"]
|
||||
- dependency-name: "@shopify/flash-list"
|
||||
versions: [">1.7.3"]
|
||||
|
||||
|
||||
@@ -222,7 +222,7 @@ jobs:
|
||||
apps/desktop/out/make/**/latest.yml
|
||||
retention-days: 90
|
||||
|
||||
- uses: signpath/github-action-submit-signing-request@v1.1
|
||||
- uses: signpath/github-action-submit-signing-request@v1.2
|
||||
continue-on-error: true
|
||||
if: runner.os == 'windows' && env.RELEASE == 'true'
|
||||
with:
|
||||
|
||||
@@ -29,7 +29,7 @@ jobs:
|
||||
if [ -n "$available" ]; then
|
||||
echo "runner-label=self-hosted" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "runner-label=macos-latest" >> $GITHUB_OUTPUT
|
||||
echo "runner-label=macos-15" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
build-ipa-device-self-hosted:
|
||||
@@ -71,11 +71,14 @@ jobs:
|
||||
|
||||
build-ipa-device-github:
|
||||
name: Build iOS IPA for device (GitHub-hosted)
|
||||
if: github.secret_source != 'None' && needs.check-runner.outputs.runner-label == 'macos-latest'
|
||||
if: github.secret_source != 'None' && needs.check-runner.outputs.runner-label == 'macos-15'
|
||||
needs: check-runner
|
||||
runs-on: macos-latest
|
||||
runs-on: macos-15
|
||||
|
||||
steps:
|
||||
- name: Use Xcode 16.3
|
||||
run: sudo xcode-select -s /Applications/Xcode_16.3.app
|
||||
|
||||
- name: 📦 Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
@@ -114,9 +117,12 @@ jobs:
|
||||
build-simulator:
|
||||
name: Build iOS IPA for simulator
|
||||
if: github.secret_source != 'None'
|
||||
runs-on: macos-latest
|
||||
runs-on: macos-15
|
||||
|
||||
steps:
|
||||
- name: Use Xcode 16.3
|
||||
run: sudo xcode-select -s /Applications/Xcode_16.3.app
|
||||
|
||||
- name: 📦 Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
||||
@@ -21,6 +21,4 @@ vite.config.*.mjs
|
||||
|
||||
apps/desktop/src/renderer/dev-dist
|
||||
tsconfig.tsbuildinfo
|
||||
|
||||
apps/mobile/ios
|
||||
apps/mobile/android
|
||||
buildServer.json
|
||||
@@ -1,4 +1,4 @@
|
||||
packages/shared/src/hono.ts
|
||||
packages/internal/shared/src/hono.ts
|
||||
pnpm-lock.yaml
|
||||
|
||||
CHANGELOG.md
|
||||
|
||||
@@ -12,6 +12,6 @@ export default defineConfig({
|
||||
],
|
||||
commit_message: "release(desktop): hotfix to release v${NEW_VERSION}",
|
||||
tag: false,
|
||||
changelog: true,
|
||||
changelog: false,
|
||||
allowedBranches: ["hotfix/*"],
|
||||
})
|
||||
@@ -0,0 +1,31 @@
|
||||
# What's new in v0.4.5
|
||||
|
||||
## Shiny new things
|
||||
|
||||
- Translation view toggle – choose between “translation-only” or bilingual display (#3568)
|
||||
- Mark Above/Below as Read option in the context menu (#3570)
|
||||
- Automation actions: auto start entries that match your rules (#3625)
|
||||
- Trending Feeds now spotlighted on the Discover page (eb6a409)
|
||||
- Timeline previews for feeds you haven’t subscribed to yet (eb26cde)
|
||||
- Invite-code gates removed – no invite code needed anymore (cee647c)
|
||||
|
||||
## Improvements
|
||||
|
||||
- Seamless fallback to client-side readability if the server parser fails (e6aa58e)
|
||||
- Onboarding completely redesigned and streamlined (0357b7d)
|
||||
- Removed long-unmaintained language packs (f48697c)
|
||||
- Faster search performance
|
||||
- AI summaries now render Markdown (#3641)
|
||||
- Upgraded to React 19 and React Native 0.79 (#3661)
|
||||
- Cleaner category layout in the Discover page
|
||||
- Smoother sign-up / sign-in flow (e7f88b7)
|
||||
- Dozens of visual polish tweaks across the app
|
||||
|
||||
## No longer broken
|
||||
|
||||
- Fixed occasional misplacement of the scroll indicator (87c9a48)
|
||||
- Font settings now apply correctly (5aed9a7)
|
||||
- Different views no longer clash with one another’s scroll positions (#3627)
|
||||
- Picture and video view sizes no longer interfere with each other (#3645)
|
||||
- Correct sorting icon in the feed list (#3675)
|
||||
- Custom fonts containing spaces now render properly (#3674)
|
||||
@@ -13,14 +13,14 @@ export default {
|
||||
|
||||
plugins: [...viteRenderBaseConfig.plugins, createPlatformSpecificImportPlugin("electron")],
|
||||
|
||||
root: resolve(root, "src/renderer"),
|
||||
root: resolve(root, "layer/renderer"),
|
||||
build: {
|
||||
outDir: resolve(root, "dist/renderer"),
|
||||
sourcemap: !!process.env.CI,
|
||||
target: "esnext",
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve(root, "src/renderer/index.html"),
|
||||
main: resolve(root, "layer/renderer/index.html"),
|
||||
},
|
||||
},
|
||||
minify: true,
|
||||
|
||||
@@ -4,6 +4,7 @@ import { fileURLToPath } from "node:url"
|
||||
|
||||
import { sentryVitePlugin } from "@sentry/vite-plugin"
|
||||
import react from "@vitejs/plugin-react"
|
||||
import { codeInspectorPlugin } from "code-inspector-plugin"
|
||||
import { prerelease } from "semver"
|
||||
import type { UserConfig } from "vite"
|
||||
|
||||
@@ -29,14 +30,15 @@ const getChangelogFileContent = () => {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
const changelogFile = getChangelogFileContent()
|
||||
export const viteRenderBaseConfig = {
|
||||
resolve: {
|
||||
alias: {
|
||||
"~": resolve("src/renderer/src"),
|
||||
"~": resolve("layer/renderer/src"),
|
||||
"@pkg": resolve("package.json"),
|
||||
"@locales": resolve("../../locales"),
|
||||
"@follow/electron-main": resolve("src/main/src"),
|
||||
"@follow/electron-main": resolve("layer/main/src"),
|
||||
},
|
||||
},
|
||||
base: "/",
|
||||
@@ -47,6 +49,11 @@ export const viteRenderBaseConfig = {
|
||||
}),
|
||||
circularImportRefreshPlugin(),
|
||||
|
||||
codeInspectorPlugin({
|
||||
bundler: "vite",
|
||||
editor: "cursor",
|
||||
hotKeys: ["metaKey"],
|
||||
}),
|
||||
sentryVitePlugin({
|
||||
org: "follow-rg",
|
||||
project: "follow",
|
||||
|
||||
@@ -12,7 +12,7 @@ export default defineConfig({
|
||||
build: {
|
||||
outDir: "dist/main",
|
||||
lib: {
|
||||
entry: "./src/main/src/index.ts",
|
||||
entry: "./layer/main/src/index.ts",
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
@@ -20,7 +20,7 @@ export default defineConfig({
|
||||
"@shared": resolve("packages/shared/src"),
|
||||
"@pkg": resolve("./package.json"),
|
||||
"@locales": resolve("../../locales"),
|
||||
"~": resolve("./src/main/src"),
|
||||
"~": resolve("./layer/main/src"),
|
||||
},
|
||||
},
|
||||
define: {
|
||||
@@ -32,7 +32,7 @@ export default defineConfig({
|
||||
build: {
|
||||
outDir: "dist/preload",
|
||||
lib: {
|
||||
entry: "./src/main/preload/index.ts",
|
||||
entry: "./layer/main/preload/index.ts",
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
@@ -45,14 +45,14 @@ export default defineConfig({
|
||||
renderer: {
|
||||
...viteRenderBaseConfig,
|
||||
|
||||
root: "src/renderer",
|
||||
root: "layer/renderer",
|
||||
build: {
|
||||
outDir: "dist/renderer",
|
||||
sourcemap: !!process.env.CI,
|
||||
target: "esnext",
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: resolve("./src/renderer/index.html"),
|
||||
main: resolve("./layer/renderer/index.html"),
|
||||
},
|
||||
},
|
||||
minify: true,
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
"import": "./export.js"
|
||||
}
|
||||
},
|
||||
"main": "./src/index.ts",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"test": "vitest",
|
||||
@@ -26,6 +25,7 @@
|
||||
"@electron-toolkit/preload": "3.0.2",
|
||||
"@electron-toolkit/utils": "4.0.0",
|
||||
"@eneris/push-receiver": "4.3.0",
|
||||
"@follow-app/readability": "workspace:*",
|
||||
"@follow/shared": "workspace:*",
|
||||
"@follow/utils": "workspace:*",
|
||||
"@openpanel/web": "1.0.1",
|
||||
@@ -37,12 +37,12 @@
|
||||
"electron-squirrel-startup": "1.0.1",
|
||||
"electron-store": "10.0.1",
|
||||
"electron-updater": "6.6.2",
|
||||
"es-toolkit": "1.35.0",
|
||||
"es-toolkit": "1.36.0",
|
||||
"fast-folder-size": "2.4.0",
|
||||
"font-list": "1.5.1",
|
||||
"i18next": "25.0.0",
|
||||
"i18next": "25.0.1",
|
||||
"js-yaml": "4.1.0",
|
||||
"linkedom": "0.18.9",
|
||||
"linkedom": "0.18.10",
|
||||
"lowdb": "7.0.1",
|
||||
"msedge-tts": "2.0.0",
|
||||
"node-machine-id": "1.1.12",
|
||||
@@ -55,9 +55,10 @@
|
||||
"@follow/models": "workspace:*",
|
||||
"@follow/types": "workspace:*",
|
||||
"@types/js-yaml": "4.0.9",
|
||||
"@types/node": "22.14.1",
|
||||
"@types/node": "22.15.3",
|
||||
"electron": "35.1.5",
|
||||
"electron-devtools-installer": "4.0.0",
|
||||
"hono": "4.7.7"
|
||||
"hono": "4.7.7",
|
||||
"typescript": "catalog:"
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
const langs = ["en", "zh-CN", "zh-HK", "zh-TW", "ja"] as const
|
||||
const langs = ["en", "zh-CN", "zh-TW", "ja"] as const
|
||||
export const currentSupportedLanguages = [...langs].sort() as string[]
|
||||
export type MainSupportedLanguages = (typeof langs)[number]
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import en from "@locales/native/en.json"
|
||||
import ja from "@locales/native/ja.json"
|
||||
import zhCn from "@locales/native/zh-CN.json"
|
||||
import zhHk from "@locales/native/zh-HK.json"
|
||||
import zhTw from "@locales/native/zh-TW.json"
|
||||
|
||||
import type { MainSupportedLanguages, ns } from "./constants"
|
||||
@@ -13,9 +12,7 @@ export const resources = {
|
||||
"zh-CN": {
|
||||
native: zhCn,
|
||||
},
|
||||
"zh-HK": {
|
||||
native: zhHk,
|
||||
},
|
||||
|
||||
"zh-TW": {
|
||||
native: zhTw,
|
||||
},
|
||||
@@ -7,7 +7,10 @@ export const defaultNS = "native"
|
||||
export const i18n = i18next.createInstance() as typeof i18next
|
||||
|
||||
i18n.init({
|
||||
fallbackLng: "en",
|
||||
fallbackLng: {
|
||||
default: ["en"],
|
||||
"zh-TW": ["zh-CN", "en"],
|
||||
},
|
||||
defaultNS,
|
||||
resources,
|
||||
})
|
||||
@@ -46,6 +46,34 @@ export const handleUrlRouting = (url: string) => {
|
||||
})
|
||||
return
|
||||
}
|
||||
case "/feed": {
|
||||
callMainWindow(url, (mainWindow) => {
|
||||
const caller = callWindowExpose(mainWindow)
|
||||
|
||||
const id = searchParams.get("id") ?? undefined
|
||||
const view = searchParams.get("view") ?? "0"
|
||||
if (!id) return
|
||||
caller.goToFeed({
|
||||
id,
|
||||
view: Number.parseInt(view, 10),
|
||||
})
|
||||
})
|
||||
return
|
||||
}
|
||||
case "/list": {
|
||||
callMainWindow(url, (mainWindow) => {
|
||||
const caller = callWindowExpose(mainWindow)
|
||||
|
||||
const id = searchParams.get("id") ?? undefined
|
||||
const view = searchParams.get("view") ?? "0"
|
||||
if (!id) return
|
||||
caller.goToList({
|
||||
id,
|
||||
view: Number.parseInt(view, 10),
|
||||
})
|
||||
})
|
||||
return
|
||||
}
|
||||
case "/": {
|
||||
callMainWindow(url, (mainWindow) => {
|
||||
mainWindow.restore()
|
||||
@@ -2,7 +2,7 @@ import fs from "node:fs"
|
||||
import path from "node:path"
|
||||
|
||||
import { callWindowExpose } from "@follow/shared/bridge"
|
||||
import { readability } from "@follow/utils/readability"
|
||||
import { readability } from "@follow-app/readability"
|
||||
import { app, BrowserWindow } from "electron"
|
||||
import { MsEdgeTTS, OUTPUT_FORMAT } from "msedge-tts"
|
||||
import type { ModelResult } from "vscode-languagedetection"
|
||||
@@ -18,7 +18,7 @@
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png" />
|
||||
|
||||
<title>Folo</title>
|
||||
|
||||
<meta name="apple-itunes-app" content="app-id=6739802604" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Folo" />
|
||||
<meta property="og:url" content="https://app.follow.is" />
|
||||
@@ -22,29 +22,28 @@
|
||||
"@fontsource/sn-pro": "5.2.5",
|
||||
"@headlessui/react": "2.2.2",
|
||||
"@hookform/resolvers": "4.1.3",
|
||||
"@lottiefiles/dotlottie-react": "0.13.3",
|
||||
"@lottiefiles/dotlottie-react": "0.13.4",
|
||||
"@openpanel/web": "1.0.1",
|
||||
"@radix-ui/react-avatar": "1.1.6",
|
||||
"@radix-ui/react-context-menu": "2.2.11",
|
||||
"@radix-ui/react-dialog": "1.1.10",
|
||||
"@radix-ui/react-dropdown-menu": "2.1.11",
|
||||
"@radix-ui/react-hover-card": "1.1.10",
|
||||
"@radix-ui/react-avatar": "1.1.7",
|
||||
"@radix-ui/react-context-menu": "2.2.12",
|
||||
"@radix-ui/react-dialog": "1.1.11",
|
||||
"@radix-ui/react-dropdown-menu": "2.1.12",
|
||||
"@radix-ui/react-hover-card": "1.1.11",
|
||||
"@radix-ui/react-label": "2.1.4",
|
||||
"@radix-ui/react-popover": "1.1.10",
|
||||
"@radix-ui/react-popover": "1.1.11",
|
||||
"@radix-ui/react-slider": "1.3.2",
|
||||
"@radix-ui/react-slot": "1.2.0",
|
||||
"@sentry/react": "9.13.0",
|
||||
"@shikijs/transformers": "3.2.2",
|
||||
"@tanstack/query-sync-storage-persister": "5.74.4",
|
||||
"@tanstack/react-query": "5.74.4",
|
||||
"@tanstack/react-query-devtools": "5.74.4",
|
||||
"@tanstack/react-query-persist-client": "5.74.4",
|
||||
"@sentry/react": "9.14.0",
|
||||
"@shikijs/transformers": "3.3.0",
|
||||
"@tanstack/query-sync-storage-persister": "5.74.7",
|
||||
"@tanstack/react-query": "5.74.7",
|
||||
"@tanstack/react-query-devtools": "5.74.7",
|
||||
"@tanstack/react-query-persist-client": "5.74.7",
|
||||
"@tanstack/react-virtual": "3.13.6",
|
||||
"@use-gesture/react": "10.3.1",
|
||||
"@welldone-software/why-did-you-render": "10.0.1",
|
||||
"@yornaath/batshit": "0.10.1",
|
||||
"camelcase-keys": "9.1.3",
|
||||
"click-to-react-component": "1.1.2",
|
||||
"clsx": "2.1.1",
|
||||
"cmdk": "1.1.1",
|
||||
"dayjs": "1.11.13",
|
||||
@@ -53,43 +52,43 @@
|
||||
"dnum": "2.14.0",
|
||||
"embla-carousel-react": "8.6.0",
|
||||
"embla-carousel-wheel-gestures": "8.0.2",
|
||||
"es-toolkit": "1.35.0",
|
||||
"firebase": "11.6.0",
|
||||
"es-toolkit": "1.36.0",
|
||||
"firebase": "11.6.1",
|
||||
"foxact": "0.2.45",
|
||||
"franc-min": "6.2.0",
|
||||
"fuse.js": "7.1.0",
|
||||
"hast-util-to-jsx-runtime": "2.3.6",
|
||||
"hast-util-to-mdast": "10.1.2",
|
||||
"i18next": "25.0.0",
|
||||
"i18next": "25.0.1",
|
||||
"i18next-browser-languagedetector": "8.0.5",
|
||||
"idb-keyval": "6.2.1",
|
||||
"immer": "10.1.1",
|
||||
"jotai": "2.12.3",
|
||||
"lethargy": "1.0.9",
|
||||
"masonic": "4.0.1",
|
||||
"masonic": "4.1.0",
|
||||
"mdast-util-gfm-table": "2.0.0",
|
||||
"mdast-util-to-markdown": "2.1.2",
|
||||
"motion": "12.7.4",
|
||||
"motion": "12.9.2",
|
||||
"nanoid": "5.1.5",
|
||||
"ofetch": "1.4.1",
|
||||
"plain-shiki": "0.2.0",
|
||||
"re-resizable": "6.11.2",
|
||||
"react-blurhash": "0.3.0",
|
||||
"react-fast-marquee": "1.6.5",
|
||||
"react-hook-form": "7.55.0",
|
||||
"react-hook-form": "7.56.1",
|
||||
"react-hotkeys-hook": "5.0.1",
|
||||
"react-i18next": "15.4.1",
|
||||
"react-i18next": "15.5.1",
|
||||
"react-intersection-observer": "9.16.0",
|
||||
"react-ios-pwa-prompt": "2.0.6",
|
||||
"react-qr-code": "2.0.15",
|
||||
"react-resizable-layout": "npm:@innei/react-resizable-layout@0.7.3-fork.1",
|
||||
"react-router": "7.5.1",
|
||||
"react-router": "7.5.2",
|
||||
"react-selecto": "1.26.3",
|
||||
"react-shadow": "20.6.0",
|
||||
"react-zoom-pan-pinch": "3.7.0",
|
||||
"shiki": "3.2.2",
|
||||
"shiki": "3.3.0",
|
||||
"sonner": "2.0.3",
|
||||
"tldts": "7.0.1",
|
||||
"tldts": "7.0.4",
|
||||
"use-context-selector": "2.0.0",
|
||||
"use-sync-external-store": "1.5.0",
|
||||
"usehooks-ts": "3.1.1",
|
||||
@@ -105,10 +104,11 @@
|
||||
"@follow/models": "workspace:*",
|
||||
"@follow/types": "workspace:*",
|
||||
"@follow/utils": "workspace:*",
|
||||
"@types/node": "22.14.1",
|
||||
"@types/node": "22.15.3",
|
||||
"@vite-pwa/assets-generator": "1.0.0",
|
||||
"fake-indexeddb": "6.0.0",
|
||||
"happy-dom": "17.4.4",
|
||||
"react-scan": "0.3.3"
|
||||
"react-scan": "0.3.3",
|
||||
"typescript": "catalog:"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 539 B After Width: | Height: | Size: 539 B |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 564 B After Width: | Height: | Size: 564 B |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 819 KiB After Width: | Height: | Size: 819 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 460 B After Width: | Height: | Size: 460 B |
@@ -0,0 +1,14 @@
|
||||
// This file is auto-generated by scripts/generate-i18n-locale.ts
|
||||
// DONT EDIT THIS FILE MANUALLY
|
||||
const langs = ["en", "zh-CN", "zh-TW", "ja"] as const
|
||||
export const currentSupportedLanguages = langs as readonly string[]
|
||||
export type RendererSupportedLanguages = (typeof langs)[number]
|
||||
|
||||
export const dayjsLocaleImportMap = {
|
||||
en: ["en", () => import("dayjs/locale/en")],
|
||||
["zh-CN"]: ["zh-cn", () => import("dayjs/locale/zh-cn")],
|
||||
["ja"]: ["ja", () => import("dayjs/locale/ja")],
|
||||
["zh-TW"]: ["zh-tw", () => import("dayjs/locale/zh-tw")],
|
||||
}
|
||||
export const ns = ["common", "lang", "errors", "app", "settings", "shortcuts"] as const
|
||||
export const defaultNS = "app" as const
|
||||
@@ -0,0 +1,47 @@
|
||||
// This file is auto-generated by scripts/generate-i18n-locale.ts
|
||||
// DONT EDIT THIS FILE MANUALLY
|
||||
import en from "@locales/app/en.json"
|
||||
import common_en from "@locales/common/en.json"
|
||||
import common_ja from "@locales/common/ja.json"
|
||||
import common_zhCN from "@locales/common/zh-CN.json"
|
||||
import common_zhTW from "@locales/common/zh-TW.json"
|
||||
import errors_en from "@locales/errors/en.json"
|
||||
import lang_en from "@locales/lang/en.json"
|
||||
import lang_ja from "@locales/lang/ja.json"
|
||||
import lang_zhCN from "@locales/lang/zh-CN.json"
|
||||
import lang_zhTW from "@locales/lang/zh-TW.json"
|
||||
import settings_en from "@locales/settings/en.json"
|
||||
import shortcuts_en from "@locales/shortcuts/en.json"
|
||||
|
||||
import type { ns, RendererSupportedLanguages } from "./constants"
|
||||
|
||||
/**
|
||||
* This file is the language resource that is loaded in full when the app is initialized.
|
||||
* When switching languages, the app will automatically download the required language resources,
|
||||
* we will not load all the language resources to minimize the first screen loading time of the app.
|
||||
* Generally, we only load english resources synchronously by default.
|
||||
* In addition, we attach common resources for other languages, and the size of the common resources must be controlled.
|
||||
*/
|
||||
export const defaultResources = {
|
||||
en: {
|
||||
app: en,
|
||||
lang: lang_en,
|
||||
common: common_en,
|
||||
settings: settings_en,
|
||||
shortcuts: shortcuts_en,
|
||||
errors: errors_en,
|
||||
},
|
||||
"zh-CN": {
|
||||
lang: lang_zhCN,
|
||||
common: common_zhCN,
|
||||
},
|
||||
|
||||
ja: {
|
||||
lang: lang_ja,
|
||||
common: common_ja,
|
||||
},
|
||||
"zh-TW": { lang: lang_zhTW, common: common_zhTW },
|
||||
} satisfies Record<
|
||||
RendererSupportedLanguages,
|
||||
Partial<Record<(typeof ns)[number], Record<string, string>>>
|
||||
>
|
||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 9.8 KiB |
@@ -0,0 +1,5 @@
|
||||
import { atom } from "jotai"
|
||||
|
||||
import { createAtomHooks } from "~/lib/jotai"
|
||||
|
||||
export const [, , , , previewBackPath, setPreviewBackPath] = createAtomHooks(atom<string>())
|
||||