fix: check i18n are sorted (#18324)

This commit is contained in:
Jason Rasmussen
2025-05-15 17:55:16 -04:00
committed by GitHub
parent c046651f23
commit ecb66fdb2c
5 changed files with 83 additions and 39 deletions

View File

@@ -18,7 +18,8 @@
"lint:p": "eslint-p . --max-warnings 0 --concurrency=4",
"lint:fix": "npm run lint -- --fix",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"format:fix": "prettier --write . && npm run format:i18n",
"format:i18n": "npx --yes sort-json ../i18n/*.json",
"test": "vitest --run",
"test:cov": "vitest --coverage",
"test:watch": "vitest dev",

View File

@@ -7,7 +7,7 @@ import { redirect } from '@sveltejs/kit';
import type { PageLoad } from './$types';
export const load = (async ({ params, url }) => {
await authenticate();
await authenticate(url);
const { isElevated, pinCode } = await getAuthStatus();
if (!isElevated || !pinCode) {

View File

@@ -4,7 +4,7 @@ import { getAuthStatus } from '@immich/sdk';
import type { PageLoad } from './$types';
export const load = (async ({ url }) => {
await authenticate();
await authenticate(url);
const { pinCode } = await getAuthStatus();