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:
@@ -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