ar-design
Version:
AR Design is a (react | nextjs) ui library.
10 lines (9 loc) • 578 B
TypeScript
import { INotificationLocale } from "../locales";
import IKanbanBoardLocale from "../locales/kanban-board/IKanbanBoardLocale";
import ITableLocale from "../locales/table/ITableLocale";
type LocaleMap = Record<string, Record<string, any>>;
declare const useTranslation: <TBaseLocale>(currentLanguage: string | undefined, translations?: LocaleMap) => {
t: (key: Extract<keyof TBaseLocale | keyof ITableLocale | keyof IKanbanBoardLocale | keyof INotificationLocale, string>, ...args: any[]) => string;
currentLanguage: string | undefined;
};
export default useTranslation;