Right rail template

This commit is contained in:
adilallo
2026-02-28 23:16:10 -07:00
parent f5bfb25f5e
commit 0799636c78
60 changed files with 1255 additions and 305 deletions
+2 -2
View File
@@ -39,11 +39,11 @@ export function useMessages(): Messages {
*/
function getTranslationValue(messages: Messages, key: string): string {
const keys = key.split(".");
let value: any = messages;
let value: unknown = messages;
for (const k of keys) {
if (value && typeof value === "object" && k in value) {
value = value[k as keyof typeof value];
value = (value as Record<string, unknown>)[k];
} else {
return key; // Fallback to key if path not found
}