nepali-date-selector
Version:
Nepali Date Selector
9 lines (8 loc) • 395 B
TypeScript
import { localeType } from "../Types";
import translations from "./translations";
declare type TranslationKey = keyof typeof translations;
declare const useTrans: (currentLocale: localeType) => {
trans: (key: TranslationKey, locale?: "en" | "ne" | undefined) => string;
numberTrans: (num: number | string, locale?: "en" | "ne" | undefined) => string;
};
export default useTrans;