import type { ConvertLocaleConfig } from "@mr-hope/vuepress-shared";

/**
 * Muti language config for `@mr-hope/vuepress-plugin-reading-time` plugin
 *
 * `@mr-hope/vuepress-plugin-reading-time` 插件的多语言配置
 */
export interface ReadingTimeLocaleData {
  /**
   * Word template, `$word` will be automatically replaced by actual words
   *
   * 字数模板，模板中 `$word` 会被自动替换为字数
   */
  word: string;

  /**
   * Text for less than one minute
   *
   * 小于一分钟文字
   */
  less1Minute: string;

  /**
   * Time template
   *
   * 时间模板
   */
  time: string;
}

export type ReadingTimeLocaleConfig =
  ConvertLocaleConfig<ReadingTimeLocaleData>;
