
/**
 * 翻译字典接口
 * 定义所有可用的翻译键值对结构，保证类型安全
 */
export interface TranslationDictionary {
  common: {
    title: string;
    description: string;
    openTestDialog: string;
    openInfoDialog: string;
  };
    toolbar: {
        home: string;
        measure: string;
        info: string;
        location: string;
        setting: string;
        walk: string;
        walkMenu: string;
        walkPerson: string;
        walkBird: string;
        tree: string;
    };
    panel: {
        property: {
            title: string;
            base: string;
            material: string;
            advanced: string;
            tab: {
                props: string;
                material: string;
            }
        }
    };
    dialog: {
        testTitle: string;
        testContent: string;
    };
    menu: {
        info: string;
        home: string;
    };
    tree: {
        searchPlaceholder: string;
    };
    constructTree: {
        title: string;
    };
    tab: {
        component: string;
        system: string;
        space: string;
    };
    measure: {
        btnName: string;
        dialogTitle: string;

        /**
         * 8 种测量方式名称（用于 UI 按钮 tooltip、当前方式显示等）
         */
        modes: {
            distance: string;
            minDistance: string;
            angle: string;
            elevation: string;
            volume: string;
            laserDistance: string;
            slope: string;
            spaceVolume: string;
        };

        /**
         * 操作按钮文案
         */
        actions: {
            expand: string;
            collapse: string;
            clearAll: string;
            settings: string;
        };

        /**
         * 结果区标签
         */
        labels: {
            currentMode: string;
            x: string;
            y: string;
            z: string;
            value: {
                distance: string;
                minDistance: string;
                angle: string;
                elevation: string;
                volume: string;
                laserDistance: string;
                slope: string;
                spaceVolume: string;
            };
        };

        /**
         * 单位（也走国际化，避免硬编码）
         */
        units: {
            mm: string;
            cm: string;
            m: string;
            km: string;
            deg: string;
            m3: string;
            percent: string;
        };

        /**
         * 设置面板（单位/精度）
         */
        settings: {
            title: string;
            unit: string;
            precision: string;
            hint: string;
            save: string;
            cancel: string;
        };
    }
}

/**
 * 语言��码类型
 */
export type LocaleType = 'zh-CN' | 'en-US';
