done i think

This commit is contained in:
2022-03-29 23:25:06 -05:00
parent 97c05f168d
commit 5a62482891
24 changed files with 643 additions and 18 deletions

17
lib/index.d.ts vendored Normal file
View File

@@ -0,0 +1,17 @@
import { basicObjectStringable, LangObj } from './types';
export declare function setLang(lang: LangObj): void;
export declare function getLang(): LangObj;
/**
* reads language json (just strings)
* @param id ex: discord.error.noActiveQueue
* @param argsraw list of key/value pairs to represent template values
* @returns language value, defaults to `id` parameter
*/
declare function get(id: string, argsraw?: basicObjectStringable): string;
declare const _default: {
setLang: typeof setLang;
get: typeof get;
};
export default _default;
export * from './types';
export * from './util';