rc-plugin/utils/constant.js
2023-04-10 21:38:15 +08:00

51 lines
3.7 KiB
JavaScript

/**
* 用于百度翻译的常量控制
*
* @type {{英: string, 日: string, 文: string, 中: string}}
*/
export const transMap = { : "zh", : "jp", : "wyw", : "en", : "ru", : "kr" };
/**
* 用于腾讯交互式翻译的常量控制
*
* @type {{英: string, 俄: string, 日: string, 韩: string, 中: string}}
*/
export const tencentTransMap = { : "zh", : "ja", : "ko", : "en", : "ru" };
/**
* 用于腾讯交互式翻译的常量控制
*
* @type {{英: string, 俄: string, 日: string, 韩: string, 中: string}}
*/
export const googleTransMap = { : "zh-CN", : "jp", : "ko", : "en", : "ru" };
/**
* 以下为抖音/TikTok类型代码
*
* @type {{"0": string, "55": string, "2": string, "68": string, "58": string, "4": string, "61": string, "51": string, "150": string}}
*/
export const douyinTypeMap = {
2: "image",
4: "video",
68: "image",
0: "video",
51: "video",
55: "video",
58: "video",
61: "video",
150: "image",
};
export const PROMPT_MAP = {
"解决": "You are now a programmer, the following is an error, please tell me how to solve this error in Chinese. ",
"解释": "You are now a programming language expert, please tell me what the following code is doing in Chinese. ",
"优化": "You are now a Clean Code expert. I have the following code. Please rewrite it in a cleaner and simpler way to make it easier for my colleagues to maintain the code. Also, explain in Chinese why you want to refactor like this, so I can add the refactor method description to the Pull Request. Attach code ",
"翻译": "I want you to act as an Chinese translator, spelling corrector and improver. I will speak to you in any language and you will detect the language, translate it and answer in the corrected and improved version of my text, in English. I want you to replace my simplified A0-level words and sentences with more beautiful and elegant, upper level English words and sentences. Keep the meaning same, but make them more literary. I want you to only reply the correction, the improvements, then result of Chinese translation and nothing else, do not write explanations. My first sentence is ",
"面试": "For the following interview questions, please provide in Chinese what you think is correct and common, and ask some common interview questions? ",
"": "Summarize the key points of this article in Chinese and in a list of points. Choose an appropriate emoji for each bullet point. Each bullet point format is [emoji] - [text]."
}
export const TEN_THOUSAND = 10000;
export const CAT_LIMIT = 10;
export const XHS_CK = 'eGhzVHJhY2tlcklkPTczODhhYmY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