Update package versions and improve code handling
Multiple package versions have been updated to their latest versions for better compatibility and stability. In addition, modifications were made to the `getGitHash` function in `route.ts` to handle potential failures more gracefully.
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
"@kit/shared": "workspace:^",
|
||||
"@kit/tailwind-config": "workspace:*",
|
||||
"@kit/tsconfig": "workspace:*",
|
||||
"@tanstack/react-query": "5.51.1",
|
||||
"react-i18next": "^14.1.2"
|
||||
"@tanstack/react-query": "5.51.3",
|
||||
"react-i18next": "^14.1.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"i18next": "^23.12.1",
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import type { InitOptions } from 'i18next';
|
||||
|
||||
/**
|
||||
* Get i18n settings for i18next.
|
||||
* @param languages
|
||||
@@ -12,7 +14,7 @@ export function createI18nSettings({
|
||||
languages: string[];
|
||||
language: string;
|
||||
namespaces?: string | string[];
|
||||
}) {
|
||||
}): InitOptions {
|
||||
const lng = language;
|
||||
const ns = namespaces;
|
||||
|
||||
@@ -25,6 +27,9 @@ export function createI18nSettings({
|
||||
preload: false as const,
|
||||
lowerCaseLng: true as const,
|
||||
fallbackNS: ns,
|
||||
missingInterpolationHandler: (text, value, options) => {
|
||||
console.debug(`Missing interpolation value for key: ${text}`, value, options);
|
||||
},
|
||||
ns,
|
||||
react: {
|
||||
useSuspense: true,
|
||||
|
||||
Reference in New Issue
Block a user