mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-18 16:21:14 +00:00
Update comments UI
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { createContext, useContext, useMemo } from "react";
|
||||
|
||||
function t(data: any, language: string) {
|
||||
return (key: string) => {
|
||||
return (key: string): string => {
|
||||
return data[language]?.["translation"]?.[key] || key;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user