🍱 Localized app intents
This commit is contained in:
@@ -10,8 +10,8 @@ import UIKit
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct OpenChatIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Open Chat"
|
||||
static var description = IntentDescription("Open a specific chat room")
|
||||
static var title: LocalizedStringResource = "intent_open_chat_title"
|
||||
static var description = IntentDescription("intent_open_chat_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = true
|
||||
|
||||
@@ -31,8 +31,8 @@ struct OpenChatIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct OpenPostIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Open Post"
|
||||
static var description = IntentDescription("Open a specific post")
|
||||
static var title: LocalizedStringResource = "intent_open_post_title"
|
||||
static var description = IntentDescription("intent_open_post_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = true
|
||||
|
||||
@@ -52,8 +52,8 @@ struct OpenPostIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct OpenComposeIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Open Compose"
|
||||
static var description = IntentDescription("Open compose post screen")
|
||||
static var title: LocalizedStringResource = "intent_open_compose_title"
|
||||
static var description = IntentDescription("intent_open_compose_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = true
|
||||
|
||||
@@ -66,8 +66,8 @@ struct OpenComposeIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct ComposePostIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Compose Post"
|
||||
static var description = IntentDescription("Create a new post")
|
||||
static var title: LocalizedStringResource = "intent_compose_post_title"
|
||||
static var description = IntentDescription("intent_compose_post_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = true
|
||||
|
||||
@@ -80,8 +80,8 @@ struct ComposePostIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct SearchContentIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Search Content"
|
||||
static var description = IntentDescription("Search for content")
|
||||
static var title: LocalizedStringResource = "intent_search_title"
|
||||
static var description = IntentDescription("intent_search_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = true
|
||||
|
||||
@@ -102,8 +102,8 @@ struct SearchContentIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct ViewNotificationsIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "View Notifications"
|
||||
static var description = IntentDescription("View notifications")
|
||||
static var title: LocalizedStringResource = "intent_notifications_title"
|
||||
static var description = IntentDescription("intent_notifications_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = true
|
||||
|
||||
@@ -116,8 +116,8 @@ struct ViewNotificationsIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct CheckNotificationsIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Check Notifications"
|
||||
static var description = IntentDescription("Check notification count")
|
||||
static var title: LocalizedStringResource = "intent_check_notifications_title"
|
||||
static var description = IntentDescription("intent_check_notifications_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = false
|
||||
|
||||
@@ -146,8 +146,8 @@ struct CheckNotificationsIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct SendMessageIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Send Message"
|
||||
static var description = IntentDescription("Send a message to a chat channel")
|
||||
static var title: LocalizedStringResource = "intent_send_message_title"
|
||||
static var description = IntentDescription("intent_send_message_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = false
|
||||
|
||||
@@ -181,8 +181,8 @@ struct SendMessageIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct ReadMessagesIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Read Messages"
|
||||
static var description = IntentDescription("Read recent messages from a chat channel")
|
||||
static var title: LocalizedStringResource = "intent_read_messages_title"
|
||||
static var description = IntentDescription("intent_read_messages_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = false
|
||||
|
||||
@@ -232,8 +232,8 @@ struct ReadMessagesIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct CheckUnreadChatsIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Check Unread Chats"
|
||||
static var description = IntentDescription("Check number of unread chat messages")
|
||||
static var title: LocalizedStringResource = "intent_unread_chats_title"
|
||||
static var description = IntentDescription("intent_unread_chats_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = false
|
||||
|
||||
@@ -262,8 +262,8 @@ struct CheckUnreadChatsIntent: AppIntent {
|
||||
|
||||
@available(iOS 16.0, *)
|
||||
struct MarkNotificationsReadIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "Mark Notifications Read"
|
||||
static var description = IntentDescription("Mark all notifications as read")
|
||||
static var title: LocalizedStringResource = "intent_mark_read_title"
|
||||
static var description = IntentDescription("intent_mark_read_desc")
|
||||
static var isDiscoverable = true
|
||||
static var openAppWhenRun = false
|
||||
|
||||
|
||||
33
ios/Runner/en.lproj/Localizable.strings
Normal file
33
ios/Runner/en.lproj/Localizable.strings
Normal file
@@ -0,0 +1,33 @@
|
||||
/* App Intents - Chat */
|
||||
"intent_open_chat_title" = "Open Chat";
|
||||
"intent_open_chat_desc" = "Open a specific chat room";
|
||||
|
||||
/* App Intents - Post */
|
||||
"intent_open_post_title" = "Open Post";
|
||||
"intent_open_post_desc" = "Open a specific post";
|
||||
|
||||
/* App Intents - Compose */
|
||||
"intent_open_compose_title" = "Open Compose";
|
||||
"intent_open_compose_desc" = "Open compose post screen";
|
||||
"intent_compose_post_title" = "Compose Post";
|
||||
"intent_compose_post_desc" = "Create a new post";
|
||||
|
||||
/* App Intents - Search */
|
||||
"intent_search_title" = "Search Content";
|
||||
"intent_search_desc" = "Search for content";
|
||||
|
||||
/* App Intents - Notifications */
|
||||
"intent_notifications_title" = "View Notifications";
|
||||
"intent_notifications_desc" = "View notifications";
|
||||
"intent_check_notifications_title" = "Check Notifications";
|
||||
"intent_check_notifications_desc" = "Check notification count";
|
||||
|
||||
/* App Intents - Messages */
|
||||
"intent_send_message_title" = "Send Message";
|
||||
"intent_send_message_desc" = "Send a message to a chat channel";
|
||||
"intent_read_messages_title" = "Read Messages";
|
||||
"intent_read_messages_desc" = "Read recent messages from a chat channel";
|
||||
"intent_unread_chats_title" = "Check Unread Chats";
|
||||
"intent_unread_chats_desc" = "Check number of unread chat messages";
|
||||
"intent_mark_read_title" = "Mark Notifications Read";
|
||||
"intent_mark_read_desc" = "Mark all notifications as read";
|
||||
33
ios/Runner/es.lproj/Localizable.strings
Normal file
33
ios/Runner/es.lproj/Localizable.strings
Normal file
@@ -0,0 +1,33 @@
|
||||
/* App Intents - Chat */
|
||||
"intent_open_chat_title" = "Abrir chat";
|
||||
"intent_open_chat_desc" = "Abrir sala de chat específica";
|
||||
|
||||
/* App Intents - Post */
|
||||
"intent_open_post_title" = "Abrir publicación";
|
||||
"intent_open_post_desc" = "Abrir publicación específica";
|
||||
|
||||
/* App Intents - Compose */
|
||||
"intent_open_compose_title" = "Abrir compose";
|
||||
"intent_open_compose_desc" = "Abrir pantalla de publicación";
|
||||
"intent_compose_post_title" = "Redactar publicación";
|
||||
"intent_compose_post_desc" = "Crear nueva publicación";
|
||||
|
||||
/* App Intents - Search */
|
||||
"intent_search_title" = "Buscar contenido";
|
||||
"intent_search_desc" = "Buscar contenido";
|
||||
|
||||
/* App Intents - Notifications */
|
||||
"intent_notifications_title" = "Ver notificaciones";
|
||||
"intent_notifications_desc" = "Ver notificaciones";
|
||||
"intent_check_notifications_title" = "Ver notificaciones";
|
||||
"intent_check_notifications_desc" = "Ver número de notificaciones";
|
||||
|
||||
/* App Intents - Messages */
|
||||
"intent_send_message_title" = "Enviar mensaje";
|
||||
"intent_send_message_desc" = "Enviar mensaje a canal de chat";
|
||||
"intent_read_messages_title" = "Leer mensajes";
|
||||
"intent_read_messages_desc" = "Leer mensajes recientes de un canal de chat";
|
||||
"intent_unread_chats_title" = "Ver chats no leídos";
|
||||
"intent_unread_chats_desc" = "Ver mensajes no leídos";
|
||||
"intent_mark_read_title" = "Marcar notificaciones leídas";
|
||||
"intent_mark_read_desc" = "Marcar todas como leídas";
|
||||
33
ios/Runner/ja.lproj/Localizable.strings
Normal file
33
ios/Runner/ja.lproj/Localizable.strings
Normal file
@@ -0,0 +1,33 @@
|
||||
/* App Intents - Chat */
|
||||
"intent_open_chat_title" = "チャットを開く";
|
||||
"intent_open_chat_desc" = "特定のチャットルームを開く";
|
||||
|
||||
/* App Intents - Post */
|
||||
"intent_open_post_title" = "投稿を開く";
|
||||
"intent_open_post_desc" = "特定の投稿を開く";
|
||||
|
||||
/* App Intents - Compose */
|
||||
"intent_open_compose_title" = "作成を開く";
|
||||
"intent_open_compose_desc" = "投稿作成画面を開く";
|
||||
"intent_compose_post_title" = "投稿を作成する";
|
||||
"intent_compose_post_desc" = "新規投稿を作成する";
|
||||
|
||||
/* App Intents - Search */
|
||||
"intent_search_title" = "検索";
|
||||
"intent_search_desc" = "コンテンツを検索";
|
||||
|
||||
/* App Intents - Notifications */
|
||||
"intent_notifications_title" = "通知を見る";
|
||||
"intent_notifications_desc" = "通知を見る";
|
||||
"intent_check_notifications_title" = "通知を確認";
|
||||
"intent_check_notifications_desc" = "通知数を確認";
|
||||
|
||||
/* App Intents - Messages */
|
||||
"intent_send_message_title" = "メッセージを送信";
|
||||
"intent_send_message_desc" = "チャットチャンネルにメッセージを送信";
|
||||
"intent_read_messages_title" = "メッセージを読む";
|
||||
"intent_read_messages_desc" = "チャットチャンネルから最近のメッセージを読む";
|
||||
"intent_unread_chats_title" = "未読チャットを確認";
|
||||
"intent_unread_chats_desc" = "未読チャットメッセージ数を確認";
|
||||
"intent_mark_read_title" = "通知を既読にする";
|
||||
"intent_mark_read_desc" = "すべての通知を既読にする";
|
||||
33
ios/Runner/ko.lproj/Localizable.strings
Normal file
33
ios/Runner/ko.lproj/Localizable.strings
Normal file
@@ -0,0 +1,33 @@
|
||||
/* App Intents - Chat */
|
||||
"intent_open_chat_title" = "채팅 열기";
|
||||
"intent_open_chat_desc" = "특정 채팅방 열기";
|
||||
|
||||
/* App Intents - Post */
|
||||
"intent_open_post_title" = "게시물 열기";
|
||||
"intent_open_post_desc" = "특정 게시물 열기";
|
||||
|
||||
/* App Intents - Compose */
|
||||
"intent_open_compose_title" = "글쓰기 열기";
|
||||
"intent_open_compose_desc" = "글쓰기 화면 열기";
|
||||
"intent_compose_post_title" = "게시물 작성";
|
||||
"intent_compose_post_desc" = "새 게시물 작성";
|
||||
|
||||
/* App Intents - Search */
|
||||
"intent_search_title" = "검색";
|
||||
"intent_search_desc" = "콘텐츠 검색";
|
||||
|
||||
/* App Intents - Notifications */
|
||||
"intent_notifications_title" = "알림 보기";
|
||||
"intent_notifications_desc" = "알림 보기";
|
||||
"intent_check_notifications_title" = "알림 확인";
|
||||
"intent_check_notifications_desc" = "알림 수 확인";
|
||||
|
||||
/* App Intents - Messages */
|
||||
"intent_send_message_title" = "메시지 보내기";
|
||||
"intent_send_message_desc" = "채팅 채널에 메시지 보내기";
|
||||
"intent_read_messages_title" = "메시지 읽기";
|
||||
"intent_read_messages_desc" = "채팅 채널에서 최근 메시지 읽기";
|
||||
"intent_unread_chats_title" = "읽지 않은 채팅 확인";
|
||||
"intent_unread_chats_desc" = "읽지 않은 채팅 메시지 수 확인";
|
||||
"intent_mark_read_title" = "알림 읽음 처리";
|
||||
"intent_mark_read_desc" = "모든 알림을 읽음으로 처리";
|
||||
33
ios/Runner/zh-Hans.lproj/Localizable.strings
Normal file
33
ios/Runner/zh-Hans.lproj/Localizable.strings
Normal file
@@ -0,0 +1,33 @@
|
||||
/* App Intents - Chat */
|
||||
"intent_open_chat_title" = "打开聊天";
|
||||
"intent_open_chat_desc" = "打开特定聊天室";
|
||||
|
||||
/* App Intents - Post */
|
||||
"intent_open_post_title" = "打开帖子";
|
||||
"intent_open_post_desc" = "打开特定帖子";
|
||||
|
||||
/* App Intents - Compose */
|
||||
"intent_open_compose_title" = "打开撰写";
|
||||
"intent_open_compose_desc" = "打开撰写帖子页面";
|
||||
"intent_compose_post_title" = "撰写帖子";
|
||||
"intent_compose_post_desc" = "创建新帖子";
|
||||
|
||||
/* App Intents - Search */
|
||||
"intent_search_title" = "搜索内容";
|
||||
"intent_search_desc" = "搜索内容";
|
||||
|
||||
/* App Intents - Notifications */
|
||||
"intent_notifications_title" = "查看通知";
|
||||
"intent_notifications_desc" = "查看通知";
|
||||
"intent_check_notifications_title" = "检查通知";
|
||||
"intent_check_notifications_desc" = "检查通知数量";
|
||||
|
||||
/* App Intents - Messages */
|
||||
"intent_send_message_title" = "发送消息";
|
||||
"intent_send_message_desc" = "发送消息到聊天频道";
|
||||
"intent_read_messages_title" = "读取消息";
|
||||
"intent_read_messages_desc" = "从聊天频道读取最近消息";
|
||||
"intent_unread_chats_title" = "检查未读聊天";
|
||||
"intent_unread_chats_desc" = "检查未读聊天消息数量";
|
||||
"intent_mark_read_title" = "标记通知已读";
|
||||
"intent_mark_read_desc" = "将所有通知标记为已读";
|
||||
33
ios/Runner/zh-Hant.lproj/Localizable.strings
Normal file
33
ios/Runner/zh-Hant.lproj/Localizable.strings
Normal file
@@ -0,0 +1,33 @@
|
||||
/* App Intents - Chat */
|
||||
"intent_open_chat_title" = "開啟聊天";
|
||||
"intent_open_chat_desc" = "開啟特定聊天室";
|
||||
|
||||
/* App Intents - Post */
|
||||
"intent_open_post_title" = "開啟貼文";
|
||||
"intent_open_post_desc" = "開啟特定貼文";
|
||||
|
||||
/* App Intents - Compose */
|
||||
"intent_open_compose_title" = "開啟撰寫";
|
||||
"intent_open_compose_desc" = "開啟撰寫貼文頁面";
|
||||
"intent_compose_post_title" = "撰寫貼文";
|
||||
"intent_compose_post_desc" = "建立新貼文";
|
||||
|
||||
/* App Intents - Search */
|
||||
"intent_search_title" = "搜尋內容";
|
||||
"intent_search_desc" = "搜尋內容";
|
||||
|
||||
/* App Intents - Notifications */
|
||||
"intent_notifications_title" = "查看通知";
|
||||
"intent_notifications_desc" = "查看通知";
|
||||
"intent_check_notifications_title" = "檢查通知";
|
||||
"intent_check_notifications_desc" = "檢查通知數量";
|
||||
|
||||
/* App Intents - Messages */
|
||||
"intent_send_message_title" = "傳送訊息";
|
||||
"intent_send_message_desc" = "傳送訊息到聊天頻道";
|
||||
"intent_read_messages_title" = "讀取訊息";
|
||||
"intent_read_messages_desc" = "從聊天頻道讀取最近訊息";
|
||||
"intent_unread_chats_title" = "檢查未讀聊天";
|
||||
"intent_unread_chats_desc" = "檢查未讀聊天訊息數量";
|
||||
"intent_mark_read_title" = "標記通知已讀";
|
||||
"intent_mark_read_desc" = "將所有通知標記為已讀";
|
||||
Reference in New Issue
Block a user