diff --git a/_locales/en/messages.json b/_locales/en/messages.json index da20814..5855097 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1,123 +1,162 @@ -{ - "extension_name": { - "message": "ShopAI", - "description": "Extension name" - }, - "extension_description": { - "message": "Shop wisely with AI!", - "description": "Extension description" - }, - "GUI_welcome_headline": { - "message": "Welcome to ShopAI!", - "description": "Welcome message" - }, - "GUI_welcome_version": { - "message": "You’ve got version $manifest_version$.", - "description": "Version number in welcome message", - "placeholders": { - "manifest_version": { - "content": "$1", - "description": "The manifest version" - } - } - }, - "GUI_status_version": { - "message": "V$manifest_version$", - "description": "Version number in status bars", - "placeholders": { - "manifest_version": { - "content": "$1", - "description": "The manifest version" - } - } - }, - "GUI_credits_0": { - "message": "Made with love.", - "description": "credits #0" - }, - "GUI_alert_confirm_action_text": { - "message": "Are you sure you would want to do this?", - "description": "confirm user's dangerous action" - }, - "GUI_title_preferences": { - "message": "ShopAI Settings", - "description": "Welcome message" - }, - "term_preferences": { - "message": "Settings" - }, - "term_about": { - "message": "About" - }, - "term_filters": { - "message": "Filters" - }, - "term_apply": { - "message": "Apply" - }, - "term_cancel": { - "message": "Cancel" - }, - "term_general": { - "message": "General" - }, - "term_storage": { - "message": "Storage" - }, - "term_help": { - "message": "Help" - }, - "term_behavior": { - "message": "Behaviour" - }, - - "settings_general_showApplicable": { - "message": "Show product's ratings in this extension's icon" - }, - "settings_general_injectToPage": { - "message": "Inject a quick access button" - }, - "settings_behavior_autoRun": { - "message": "Automatically run this extension on a supported page" - }, - "settings_filters_description": { - "message": "Filters help determine the contents of the website before summarizing it." - }, - "settings_storage_description": { - "message": "To speed up browsing, ShopAI stores information of the products you have previously visited. This information will be updated whenever the product's information has been changed. " - }, - "settings_storage_clear": { - "message": "Empty" - }, - "settings_filters_update": { - "message": "Update" - }, - "settings_filters_open": { - "message": "Edit" - }, - - "error_msg": { - "message": "$ERROR_CODE$: $ERROR_MSG$", - "description": "The error message template", - "placeholders": { - "ERROR_CODE": { - "content": "$1", - "description": "The error code" - }, - "ERROR_MSG": { - "content": "$2", - "description": "The error message" - } - } - }, - "error_msg_GUI": { - "message": "Unfortunately, an exception of type $ERROR_CODE$ has occured. Click OK to terminate the script.", - "description": "The error message template for a full graphical UI", - "placeholders": { - "ERROR_CODE": { - "content": "$1", - "description": "The error code" - } - } - } -} +{ + "extension_name": { + "message": "ShopAI", + "description": "Extension name" + }, + "extension_description": { + "message": "Shop wisely with AI!", + "description": "Extension description" + }, + "GUI_welcome_headline": { + "message": "Welcome to ShopAI!", + "description": "Welcome message" + }, + "GUI_welcome_version": { + "message": "You’ve got version $manifest_version$.", + "description": "Version number in welcome message", + "placeholders": { + "manifest_version": { + "content": "$1", + "description": "The manifest version" + } + } + }, + "GUI_status_version": { + "message": "V$manifest_version$", + "description": "Version number in status bars", + "placeholders": { + "manifest_version": { + "content": "$1", + "description": "The manifest version" + } + } + }, + "GUI_credits_0": { + "message": "Made with love.", + "description": "credits #0" + }, + "GUI_alert_confirm_action_text": { + "message": "Are you sure you would want to do this?", + "description": "confirm user's dangerous action" + }, + "GUI_title_preferences": { + "message": "ShopAI Settings", + "description": "Welcome message" + }, + "term_preferences": { + "message": "Settings" + }, + "term_about": { + "message": "About" + }, + "term_filters": { + "message": "Filters" + }, + "term_apply": { + "message": "Apply" + }, + "term_cancel": { + "message": "Cancel" + }, + "term_general": { + "message": "General" + }, + "term_storage": { + "message": "Storage" + }, + "term_help": { + "message": "Help" + }, + "term_behavior": { + "message": "Behaviour" + }, + "term_analysis": { + "message": "Analysis" + }, + "term_API_Key": { + "message": "API Key" + }, + + "settings_general_showApplicable": { + "message": "Show product's ratings in this extension's icon" + }, + "settings_general_injectToPage": { + "message": "Inject a quick access button" + }, + "settings_behavior_autoRun": { + "message": "Automatically run this extension on a supported page" + }, + "settings_filters_description": { + "message": "Filters help determine the contents of the website before summarizing it." + }, + "settings_storage_description": { + "message": "To speed up browsing, ShopAI stores information of the products you have previously visited. This information will be updated whenever the product's information has been changed. " + }, + "settings_analysis_description": { + "message": "ShopAI is powered by Google Gemini Pro to summarize the contents of the website and to provide a rating for the products. An API key by Google is required to use this feature. Usage of this feature is subject to Google's Terms and Conditions." + }, + "settings_storage_clear": { + "message": "Empty" + }, + "settings_filters_update": { + "message": "Update" + }, + "settings_filters_update_status": { + "message": "Updating the filter at $filter_url$…", + "placeholders": { + "filter_url": { + "content": "$1" + } + } + }, + "settings_filters_update_status_complete": { + "message": "Updated the filter at $filter_url$.", + "placeholders": { + "filter_url": { + "content": "$1" + } + } + }, + "settings_filters_update_status_failure": { + "message": "Can not update the filter at $filter_url$ due to error $error_message$.", + "placeholders": { + "error_message": { + "content": "$1" + }, + "filter_url": { + "content": "$2" + } + } + }, + "settings_filters_update_stop": { + "message": "No filters were updated as none were available." + }, + "settings_filters_open": { + "message": "Edit" + }, + + "error_msg": { + "message": "$error_code$: $error_msg$", + "description": "The error message template", + "placeholders": { + "error_code": { + "content": "$1", + "description": "The error code" + }, + "error_msg": { + "content": "$2", + "description": "The error message" + } + } + }, + "error_msg_GUI": { + "message": "Unfortunately, an exception of type $error_code$ has occured. Click OK to terminate the script.", + "description": "The error message template for a full graphical UI", + "placeholders": { + "error_code": { + "content": "$1", + "description": "The error code" + } + } + } +} diff --git a/_locales/zh-Hans/messages.json b/_locales/zh-Hans/messages.json index fbda7ac..d7326f9 100644 --- a/_locales/zh-Hans/messages.json +++ b/_locales/zh-Hans/messages.json @@ -1,27 +1,27 @@ { - "extension_name": { - "message": "购物+人类智能", - "description": "扩展程序名字" - }, - "extension_description": { - "message": "用人类智能榜您谨慎地买东西!", - "description": "扩展程序的简介" - }, - "GUI_welcome_headline": { - "message": "欢迎使用购物人类智能!", - "description": "欢迎信息" - }, - "GUI_welcome_version": { - "message": "本浏览器有 $manifest_version$ 版本的。", - "description": "版本简介", - "placeholders": { - "manifest_version": { - "content": "$1", - "description": "版本号码" - } - } - }, - "GUI_status_version": { + "extension_name": { + "message": "购物+人类智能", + "description": "扩展程序名字" + }, + "extension_description": { + "message": "用人类智能榜您谨慎地买东西!", + "description": "扩展程序的简介" + }, + "GUI_welcome_headline": { + "message": "欢迎使用《购物+人类智能》!", + "description": "欢迎信息" + }, + "GUI_welcome_version": { + "message": "本浏览器有 $manifest_version$ 版本的。", + "description": "版本简介", + "placeholders": { + "manifest_version": { + "content": "$1", + "description": "版本号码" + } + } + }, + "GUI_status_version": { "message": "$manifest_version$ 版本", "description": "statusbar 上的版本", "placeholders": { @@ -31,7 +31,7 @@ } } }, - "GUI_credits_0": { + "GUI_credits_0": { "message": "亲爱的马老师…", "description": "credits #0" }, @@ -39,60 +39,120 @@ "message": "您认真地想运行它吗?", "description": "运行危险的软件以前的问题" }, - "GUI_title_preferences": { + "GUI_title_preferences": { "message": "购物人类智能设置", "description": "设置网页的题目" }, "term_preferences": { - "message": "设置" - }, - "term_about": { - "message": "关于" - }, - "term_filters": { - "message": "过滤器" - }, - "term_apply": { - "message": "应用" - }, - "term_cancel": { - "message": "取消" - }, - "term_general": { - "message": "常规" - }, - "term_storage": { - "message": "存储" - }, - "term_help": { - "message": "帮助" - }, - "term_behavior": { - "message": "性能" - }, + "message": "设置" + }, + "term_about": { + "message": "关于" + }, + "term_filters": { + "message": "过滤器" + }, + "term_apply": { + "message": "应用" + }, + "term_cancel": { + "message": "取消" + }, + "term_general": { + "message": "常规" + }, + "term_storage": { + "message": "存储" + }, + "term_help": { + "message": "帮助" + }, + "term_behavior": { + "message": "性能" + }, + "term_API_Key": { + "message": "API 密钥" + }, - "settings_general_showApplicable": { - "message": "在此扩展程序图标中显示产品评分" - }, - "settings_general_injectToPage": { - "message": "注入一个快速访问按钮" - }, - "settings_behavior_autoRun": { - "message": "自动在支持页面运行此扩展" - }, - "settings_filters_description": { - "message": "过滤器帮助确定网站内容之前的摘要。" - }, - "settings_storage_description": { - "message": "为了加快浏览速度,《购物+人类智能》存储您以往访问过的产品信息。当产品信息发生变化时,此信息将被更新。" - }, - "settings_storage_clear": { - "message": "清空" - }, - "settings_filters_update": { - "message": "更新" - }, - "settings_filters_open": { - "message": "编辑" - } + "settings_general_showApplicable": { + "message": "在此扩展程序图标中显示产品评分" + }, + "settings_general_injectToPage": { + "message": "注入一个快速访问按钮" + }, + "settings_behavior_autoRun": { + "message": "自动在支持页面运行此扩展" + }, + "settings_filters_description": { + "message": "过滤器帮助确定网站内容之前的摘要。" + }, + "settings_storage_description": { + "message": "为了加快浏览速度,《购物+人类智能》存储您以往访问过的产品信息。当产品信息发生变化时,此信息将被更新。" + }, + "settings_analysis_description": { + "message": "为了提高购物体验,我们会收集您的购物行为数据。" + }, + "settings_storage_clear": { + "message": "清空" + }, + "settings_filters_update": { + "message": "更新" + }, + "settings_filters_update_status": { + "message": "正在下载 $filter_url$ 的滤器…", + "placeholders": { + "filter_url": { + "content": "$1" + } + } + }, + "settings_filters_update_status_complete": { + "message": "更新过 $filter_url$ 的滤器…", + "placeholders": { + "filter_url": { + "content": "$1" + } + } + }, + "settings_filters_update_status_failure": { + "message": "更新 $filter_url$ 的滤器失败:$error_msg$", + "placeholders": { + "error_msg": { + "content": "$1" + }, + "filter_url": { + "content": "$2" + } + } + }, + "settings_filters_update_stop": { + "message": "无法更新因为没有滤器。" + }, + "settings_filters_open": { + "message": "编辑" + }, + "error_msg": { + "message": "错误 $error_code$: $error_msg$", + "description": "错误信息模板", + "placeholders": { + "error_code": { + "content": "$1", + "description": "错误代码" + }, + "error_msg": { + "content": "$2", + "description": "错误信息" + } + } + }, + "error_msg_GUI": { + "message": "太不巧了,出现了 $error_code$ 样子的错误。请选择“好”停止此扩展程序。", + "description": "错误信息模板", + "placeholders": { + "error_code": { + "content": "$1", + "description": "错误代码" + } + } + } }