@wilcosp/rex
Version:
Rex is an automated command manager for discord js
13 lines (12 loc) • 932 B
TypeScript
/*!
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { Locale, LocalizationMap } from "discord-api-types/v10";
export type RexLocale = keyof typeof Locale | `${Locale}`;
export declare function parseLocalizations(localizations: Partial<Record<RexLocale, string | null>>, asMap: true): Map<Locale, string | undefined>;
export declare function parseLocalizations(localizations: Partial<Record<RexLocale, string | null>>, asMap: false): Partial<Record<Locale, string | null>>;
export declare function parseLocalizations(localizations: Partial<Record<RexLocale, string | null>>): Partial<Record<Locale, string | null>>;
export declare function getLocale(value: RexLocale): Locale;
export declare function LocalsEqual(one: LocalizationMap, two: LocalizationMap): boolean;