google translate missing chinese strings

This commit is contained in:
or-else
2020-02-04 18:05:58 +03:00
parent 50a775fc72
commit 858e62f732
2 changed files with 16 additions and 12 deletions
+6 -2
View File
@@ -7,8 +7,12 @@ firebase.initializeApp(FIREBASE_INIT);
// This method shows the notifications. // This method shows the notifications.
firebase.messaging().setBackgroundMessageHandler(function(payload) { firebase.messaging().setBackgroundMessageHandler(function(payload) {
let title = payload.data.title || "New message"; if (payload.data.silent === 'true') {
let options = { return;
}
const pushType = payload.data.what || 'msg';
const title = payload.data.title || (pushType == 'msg' ? "New message" : "New chat");
const options = {
body: payload.data.content || "", body: payload.data.content || "",
icon: '/img/logo96.png', icon: '/img/logo96.png',
badge: '/img/badge96.png', badge: '/img/badge96.png',
+10 -10
View File
@@ -140,17 +140,17 @@
"link_privacy_policy": "隐私政策", "link_privacy_policy": "隐私政策",
"action_delete_messages": "删除所有帖子", "action_delete_messages": "删除所有帖子",
"action_block_contact": "屏蔽联系人", "action_block_contact": "屏蔽联系人",
"delete_messages_warning": ":!![MISSING]!!:Are you sure you want to delete all messages? It cannot be undone.", "delete_messages_warning": "您确定要删除所有消息吗?无法撤消。",
"leave_chat_warning": ":!![MISSING]!!:Are you sure you want to leave this conversation.", "leave_chat_warning": "您确定要退出此对话吗?",
"block_contact_warning": ":!![MISSING]!!:Are you sure you want to block this contact?", "block_contact_warning": "您确定要阻止此联系人吗?",
"action_report_chat": "检举垃圾邮件", "action_report_chat": "检举垃圾邮件",
"report_chat_warning": ":!![MISSING]!!:Are you sure you want to block and report this conversation?", "report_chat_warning": "您确定要停止并报告此对话吗?",
"action_clear_messages": ":!![MISSING]!!:Clear Messages", "action_clear_messages": "删除讯息",
"clear_messages_warning": ":!![MISSING]!!:Are you sure you want to clear all messages? It cannot be undone.", "clear_messages_warning": "您确定要清除所有消息吗?无法撤消。",
"topic_delete_warning": ":!![MISSING]!!:Are you sure you want to delete this conversation?", "topic_delete_warning": "您确定要删除此对话吗?",
"topic_block_warning": ":!![MISSING]!!:Are you sure you want to block this conversation?", "topic_block_warning": "您确定要阻止此对话吗?",
"search_no_results": ":!![MISSING]!!:Search returned no results", "search_no_results": "搜索返回任何结果",
"deleted_content": "内容已删除", "deleted_content": "内容已删除",
"image_caption_prompt": "图片标题", "image_caption_prompt": "图片标题",
"menu_item_send_retry": ":!![MISSING]!!:Retry" "menu_item_send_retry": "重试"
} }