// 语言转换类型
// export interface ITranslatedText {
//   [key: string]: string | ((value: number) => string);
// }

import { language } from '@/views/Survey/views/Preview/js/language';

type originLanguage = typeof language;
export type languageArea = 'zh' | 'en';
/**
 * 转换之后的 translatedText
 * originLanguage[K] 属性 value
 * 对应的属性格式为
 * ```typescript
 * ITranslatedText{
 *   some: string,
 *   other: (value: number) => string
 * }
 * ```
 */
export type ITranslatedText = {
  [K in keyof originLanguage]: originLanguage[K][languageArea];
};
