obsidian-dev-utils
Version:
This is the collection of useful functions that you can use for your Obsidian plugin development
26 lines (25 loc) • 733 B
text/typescript
/**
* @packageDocumentation
*
* This file defines a default translations base for `i18next`.
*/
import type { PluginTypesBase } from '../Plugin/PluginTypesBase.mjs';
import type { Translations } from './i18n.mjs';
import { en } from './locales/en.mjs';
/**
* A default plugin types for `i18next`.
*/
export interface DefaultPluginTypes extends PluginTypesBase {
/**
* The default translations.
*/
defaultTranslations: typeof en;
}
/**
* A default translations base for `i18next`.
*/
export type DefaultTranslationsBase = TranslationKeyMap & Translations<DefaultPluginTypes>;
type TranslationKey = string | TranslationKeyMap;
interface TranslationKeyMap extends Record<string, TranslationKey> {
}
export {};