feat: Logger

This commit is contained in:
RTAkland
2021-12-15 21:21:39 +08:00
parent 99bc9481da
commit 3c019ad98c
176 changed files with 92 additions and 0 deletions

50
res/lang/en_us.json Normal file
View File

@@ -0,0 +1,50 @@
{
"request_result_weather": "Weather API request result",
"request_result_indices": "Indices request result",
"request_result_warning": "Warning API request result",
"indices_tip": "No indices",
"mail_error": "Mail sending error Error reason",
"running": "Running Send mode",
"send_time": "Send time",
"mail_succeed": "Mail sending succeed.",
"config_not_filled": "Config file has no filled item(s).",
"statement_1": "Do not modify the configuration file at will.",
"statement_2": "All requests for this project are made using the local network.",
"statement_3": "If you used a VPN or PROXY, it will doesn't work.",
"statement_4": "If you have seen this message, the program runs normally.",
"debug_done": "Execution completed.",
"new_warning": "Get new disaster warning",
"warning_updated": "Disaster warning has been updated",
"area": "Area",
"weather": "Weather",
"sender": "Sender Account",
"date": "Date",
"lowestTemp": "LowestTemp",
"highestTemp": "HighestTemp",
"wind_info": "WindSpeed/Level/Dir",
"humidity": "Humidity",
"uv_info": "UV",
"vis": "Visibility",
"pressure": "Pressure",
"cloud": "Cloud",
"subject_7": "7 Day's weather report",
"subject_3": "3 Day's weather report",
"subject_war": "Natural disaster warning",
"release_time": "Release time",
"early_warning": "Early warning",
"warning_status": "Warning status",
"warning_type": "Warning type",
"warning_duration": "Duration",
"wait_seconds": "Wait 61 seconds...",
"write_successfully": "Successfully written to the config file",
"input_type_error": "Please check the input(q for quit).",
"reading_the_file": "Reading file...",
"select_a_index": "Select a index to write.",
"input_a_city_name": "Choose a weather forecast area -> Input the city name to search.",
"user_input": "You entered",
"fill_the_config": "Fill the configuration file.",
"today": "Today",
"current_profile": "Selected profile",
"null_value": "Please do not enter a null value.",
"no_result": "Nothing has searched."
}

50
res/lang/zh_cn.json Normal file
View File

@@ -0,0 +1,50 @@
{
"request_result_weather": "天气信息请求结果",
"request_result_indices": "生活建议请求结果",
"request_result_warning": "自然灾害API请求结果",
"indices_tip": "无具体描述",
"mail_error": "邮件发送错误 错误原因",
"running": "运行中 发送模式",
"send_time": "发送时间",
"mail_succeed": "邮件发送成功",
"config_not_filled": "有未填写项",
"statement_1": "配置文件请不要随意修改",
"statement_2": "本项目所有程序均使用本地网络进行请求",
"statement_3": "如果使用了VPN或代理将不会生效",
"statement_4": "如果你看到这段话就说明程序在正常运行",
"debug_done": "执行完成",
"new_warning": "获取到新的灾害预警",
"warning_updated": "灾害预警信息已更新",
"area": "地区",
"weather": "天气",
"sender": "发送者账号",
"date": "日期",
"lowestTemp": "最低气温",
"highestTemp": "最高气温",
"wind_info": "风速/级/向",
"humidity": "空气湿度",
"uv_info": "紫外线强度",
"vis": "能见度",
"pressure": "气压",
"cloud": "云量",
"subject_7": "7天天气预报",
"subject_3": "3天天气预报",
"subject_war": "自然灾害预报",
"release_time": "发布时间",
"early_warning": "预警",
"warning_status": "灾害状态",
"warning_type": "灾害类型",
"warning_duration": "持续时间",
"wait_seconds": "等待61秒...",
"write_successfully": "成功写入到配置文件",
"input_type_error": "输入错误, 请重新输入(q 退出)",
"reading_the_file": "读取文件中...",
"select_a_index": "选择一个索引写入文件",
"input_a_city_name": "输入城市名搜索 -> 输入城市名进行搜索",
"user_input": "你输入了",
"fill_the_config": "填写配置文件",
"today": "今天",
"current_profile": "已选择的配置文件",
"null_value": "请不要输入空值",
"no_result": "没有搜索到相关结果"
}