From afde3727af279646e805d79d42121b7dbd6be6b9 Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Mon, 11 Aug 2025 19:33:14 +0500 Subject: [PATCH 01/12] add global create to all locals --- src/languages/de.ts | 8 ++++---- src/languages/en.ts | 8 ++++---- src/languages/es.ts | 8 ++++---- src/languages/fr.ts | 8 ++++---- src/languages/it.ts | 8 ++++---- src/languages/ja.ts | 8 ++++---- src/languages/nl.ts | 8 ++++---- src/languages/pl.ts | 8 ++++---- src/languages/pt-BR.ts | 8 ++++---- src/languages/zh-hans.ts | 8 ++++---- 10 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/languages/de.ts b/src/languages/de.ts index f8d00fc5aedf..025c027f1fec 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -852,17 +852,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `Dieser Chatraum ist für alles, was mit ${reportName} zu tun hat.`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `Dieser Chat ist für Rechnungen zwischen ${invoicePayer} und ${invoiceReceiver}. Verwenden Sie die Schaltfläche +, um eine Rechnung zu senden.`, + `Dieser Chat ist für Rechnungen zwischen ${invoicePayer} und ${invoiceReceiver}. Verwenden Sie die Schaltfläche ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}, um eine Rechnung zu senden.`, beginningOfChatHistory: 'Dieser Chat ist mit', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `Hier wird ${submitterDisplayName} die Ausgaben an ${workspaceName} übermitteln. Verwenden Sie einfach die Schaltfläche +.`, + `Hier wird ${submitterDisplayName} die Ausgaben an ${workspaceName} übermitteln. Verwenden Sie einfach die Schaltfläche ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, beginningOfChatHistorySelfDM: 'Dies ist Ihr persönlicher Bereich. Nutzen Sie ihn für Notizen, Aufgaben, Entwürfe und Erinnerungen.', beginningOfChatHistorySystemDM: 'Willkommen! Lassen Sie uns mit der Einrichtung beginnen.', chatWithAccountManager: 'Hier mit Ihrem Kundenbetreuer chatten', sayHello: 'Hallo!', yourSpace: 'Ihr Bereich', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Willkommen in ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Verwenden Sie die + Taste, um ${additionalText} einen Ausgabenposten hinzuzufügen.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => `Verwenden Sie die ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} Taste, um ${additionalText} einen Ausgabenposten hinzuzufügen.`, askConcierge: 'Stellen Sie Fragen und erhalten Sie rund um die Uhr Unterstützung in Echtzeit.', conciergeSupport: '24/7 Support', create: 'erstellen', @@ -5924,7 +5924,7 @@ const translations = { searchResults: { emptyResults: { title: 'Nichts zu zeigen', - subtitle: 'Versuchen Sie, Ihre Suchkriterien anzupassen oder etwas mit dem grünen + Button zu erstellen.', + subtitle: `Versuchen Sie, Ihre Suchkriterien anzupassen oder etwas mit dem grünen ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} Button zu erstellen.`, }, emptyExpenseResults: { title: 'Sie haben noch keine Ausgaben erstellt.', diff --git a/src/languages/en.ts b/src/languages/en.ts index 00b591fd3d98..f4d02481100e 100755 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -842,17 +842,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `This chat room is for anything ${reportName} related.`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `This chat is for invoices between ${invoicePayer} and ${invoiceReceiver}. Use the + button to send an invoice.`, + `This chat is for invoices between ${invoicePayer} and ${invoiceReceiver}. Use the ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} button to send an invoice.`, beginningOfChatHistory: 'This chat is with ', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `This is where ${submitterDisplayName} will submit expenses to ${workspaceName}. Just use the + button.`, + `This is where ${submitterDisplayName} will submit expenses to ${workspaceName}. Just use the ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} button.`, beginningOfChatHistorySelfDM: 'This is your personal space. Use it for notes, tasks, drafts, and reminders.', beginningOfChatHistorySystemDM: "Welcome! Let's get you set up.", chatWithAccountManager: 'Chat with your account manager here', sayHello: 'Say hello!', yourSpace: 'Your space', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Welcome to ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Use the + button to ${additionalText} an expense.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Use the ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} button to ${additionalText} an expense.`, askConcierge: ' Ask questions and get 24/7 realtime support.', conciergeSupport: '24/7 support', create: 'create', @@ -5900,7 +5900,7 @@ const translations = { searchResults: { emptyResults: { title: 'Nothing to show', - subtitle: 'Try adjusting your search criteria or creating something with the green + button.', + subtitle: `Try adjusting your search criteria or creating something with the green ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} button.`, }, emptyExpenseResults: { title: "You haven't created any expenses yet", diff --git a/src/languages/es.ts b/src/languages/es.ts index 32f0b38703d9..01792a8cda34 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -834,17 +834,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `Esta sala de chat es para cualquier cosa relacionada con ${reportName}.`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `Este chat es para facturas entre ${invoicePayer} y ${invoiceReceiver}. Usa el botón + para enviar una factura.`, + `Este chat es para facturas entre ${invoicePayer} y ${invoiceReceiver}. Usa el botón ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} para enviar una factura.`, beginningOfChatHistory: 'Este chat es con ', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `Aquí es donde ${submitterDisplayName} enviará los gastos al espacio de trabajo ${workspaceName}. Solo usa el botón +.`, + `Aquí es donde ${submitterDisplayName} enviará los gastos al espacio de trabajo ${workspaceName}. Solo usa el botón ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, beginningOfChatHistorySelfDM: 'Este es tu espacio personal. Úsalo para notas, tareas, borradores y recordatorios.', beginningOfChatHistorySystemDM: '¡Bienvenido! Vamos a configurar tu cuenta.', chatWithAccountManager: 'Chatea con tu gestor de cuenta aquí', sayHello: '¡Saluda!', yourSpace: 'Tu espacio', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `¡Bienvenido a ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Usa el botón + para ${additionalText} un gasto`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Usa el botón ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} para ${additionalText} un gasto`, askConcierge: ' Haz preguntas y obtén soporte en tiempo real las 24/7.', conciergeSupport: 'Soporte 24/7', create: 'crear', @@ -5918,7 +5918,7 @@ const translations = { searchResults: { emptyResults: { title: 'No hay nada que ver aquí', - subtitle: 'Intenta ajustar tus criterios de búsqueda o crear algo con el botón verde +.', + subtitle: `Intenta ajustar tus criterios de búsqueda o crear algo con el botón verde ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, }, emptyExpenseResults: { title: 'Aún no has creado ningún gasto', diff --git a/src/languages/fr.ts b/src/languages/fr.ts index 02b6b1c87bb4..b3e08b2b465b 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -855,17 +855,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `Ce salon de discussion est destiné à tout ce qui concerne ${reportName}.`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `Ce chat concerne les factures entre ${invoicePayer} et ${invoiceReceiver}. Utilisez le bouton + pour envoyer une facture.`, + `Ce chat concerne les factures entre ${invoicePayer} et ${invoiceReceiver}. Utilisez le bouton ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} pour envoyer une facture.`, beginningOfChatHistory: 'Ce chat est avec', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `C'est ici que ${submitterDisplayName} soumettra ses dépenses à ${workspaceName}. Il suffit d'utiliser le bouton +.`, + `C'est ici que ${submitterDisplayName} soumettra ses dépenses à ${workspaceName}. Il suffit d'utiliser le bouton ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, beginningOfChatHistorySelfDM: "C'est votre espace personnel. Utilisez-le pour des notes, des tâches, des brouillons et des rappels.", beginningOfChatHistorySystemDM: 'Bienvenue ! Commençons votre configuration.', chatWithAccountManager: 'Discutez avec votre gestionnaire de compte ici', sayHello: 'Dites bonjour !', yourSpace: 'Votre espace', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Bienvenue dans ${roomName} !`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Utilisez le bouton + pour ${additionalText} une dépense.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => `Utilisez le bouton ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} pour ${additionalText} une dépense.`, askConcierge: 'Posez des questions et obtenez une assistance en temps réel 24h/24 et 7j/7.', conciergeSupport: 'Support 24h/24 et 7j/7', create: 'créer', @@ -5937,7 +5937,7 @@ const translations = { searchResults: { emptyResults: { title: 'Rien à afficher', - subtitle: "Essayez d'ajuster vos critères de recherche ou de créer quelque chose avec le bouton vert +.", + subtitle: `Essayez d'ajuster vos critères de recherche ou de créer quelque chose avec le bouton vert ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, }, emptyExpenseResults: { title: "Vous n'avez pas encore créé de dépenses.", diff --git a/src/languages/it.ts b/src/languages/it.ts index 276a8f30faf0..468b2e1244c8 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -851,17 +851,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `Questa chat è per tutto ciò che riguarda ${reportName}.`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `Questa chat è per le fatture tra ${invoicePayer} e ${invoiceReceiver}. Utilizzare il pulsante + per inviare una fattura.`, + `Questa chat è per le fatture tra ${invoicePayer} e ${invoiceReceiver}. Utilizzare il pulsante ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} per inviare una fattura.`, beginningOfChatHistory: 'Questa chat è con', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `È qui che ${submitterDisplayName} presenterà le spese a ${workspaceName}. Basta usare il pulsante +.`, + `È qui che ${submitterDisplayName} presenterà le spese a ${workspaceName}. Basta usare il pulsante ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, beginningOfChatHistorySelfDM: 'Questo è il tuo spazio personale. Usalo per appunti, compiti, bozze e promemoria.', beginningOfChatHistorySystemDM: 'Benvenuto! Iniziamo con la configurazione.', chatWithAccountManager: 'Chatta con il tuo account manager qui', sayHello: 'Ciao!', yourSpace: 'Il tuo spazio', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Benvenuto in ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Usa il pulsante + per ${additionalText} una spesa.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => `Usa il pulsante ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} per ${additionalText} una spesa.`, askConcierge: 'Fai domande e ricevi supporto in tempo reale 24/7.', conciergeSupport: 'Supporto 24/7', create: 'creare', @@ -5939,7 +5939,7 @@ const translations = { searchResults: { emptyResults: { title: 'Niente da mostrare', - subtitle: 'Prova a modificare i criteri di ricerca o a creare qualcosa con il pulsante verde +.', + subtitle: `Prova a modificare i criteri di ricerca o a creare qualcosa con il pulsante verde ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, }, emptyExpenseResults: { title: 'Non hai ancora creato nessuna spesa.', diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 1854054658ef..5706798c1f60 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -852,17 +852,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `このチャットルームは、${reportName}に関することなら何でもどうぞ。`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `このチャットは、${invoicePayer}${invoiceReceiver}間の請求書用です。請求書を送信するには、+ボタンを使用してください。`, + `このチャットは、${invoicePayer}${invoiceReceiver}間の請求書用です。請求書を送信するには、${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} ボタンを使用してください。`, beginningOfChatHistory: 'このチャットは', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `ここで${submitterDisplayName}${workspaceName}に経費を提出します。ボタンをクリックしてください。`, + `ここで${submitterDisplayName}${workspaceName}に経費を提出します。${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}ボタンをクリックしてください。`, beginningOfChatHistorySelfDM: 'これはあなたの個人スペースです。メモ、タスク、下書き、リマインダーに使用してください。', beginningOfChatHistorySystemDM: 'ようこそ!セットアップを始めましょう。', chatWithAccountManager: 'こちらでアカウントマネージャーとチャットしてください', sayHello: 'こんにちは!', yourSpace: 'あなたのスペース', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `${roomName}へようこそ!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `+ ボタンを使用して経費を${additionalText}します。`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => `${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} ボタンを使用して経費を${additionalText}します。`, askConcierge: '質問をして、24時間365日リアルタイムサポートを受けましょう。', conciergeSupport: '24時間年中無休サポート', create: '作成する', @@ -5897,7 +5897,7 @@ const translations = { searchResults: { emptyResults: { title: '表示するものがありません', - subtitle: '検索条件を調整するか、緑色の+ボタンで何かを作成してみてください。', + subtitle: `検索条件を調整するか、緑色の${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}ボタンで何かを作成してみてください。`, }, emptyExpenseResults: { title: 'まだ経費が作成されていません。', diff --git a/src/languages/nl.ts b/src/languages/nl.ts index 2004d5cb0624..b213d5665bca 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -851,17 +851,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `Deze chatroom is voor alles wat met ${reportName} te maken heeft.`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `Deze chat is voor facturen tussen ${invoicePayer} en ${invoiceReceiver}. Gebruik de + knop om een factuur te sturen.`, + `Deze chat is voor facturen tussen ${invoicePayer} en ${invoiceReceiver}. Gebruik de ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} knop om een factuur te sturen.`, beginningOfChatHistory: 'Deze chat is met', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `Dit is waar ${submitterDisplayName} kosten zal indienen bij ${workspaceName}. Gebruik gewoon de + knop.`, + `Dit is waar ${submitterDisplayName} kosten zal indienen bij ${workspaceName}. Gebruik gewoon de ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} knop.`, beginningOfChatHistorySelfDM: 'Dit is je persoonlijke ruimte. Gebruik het voor notities, taken, concepten en herinneringen.', beginningOfChatHistorySystemDM: 'Welkom! Laten we je instellen.', chatWithAccountManager: 'Chat hier met uw accountmanager', sayHello: 'Zeg hallo!', yourSpace: 'Uw ruimte', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Welkom bij ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Gebruik de + knop om een uitgave te ${additionalText}.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => `Gebruik de ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} knop om een uitgave te ${additionalText}.`, askConcierge: 'Stel vragen en krijg 24/7 realtime ondersteuning.', conciergeSupport: '24/7 ondersteuning', create: 'maken', @@ -5931,7 +5931,7 @@ const translations = { searchResults: { emptyResults: { title: 'Niets om te laten zien', - subtitle: 'Probeer je zoekcriteria aan te passen of iets te maken met de groene + knop.', + subtitle: `Probeer je zoekcriteria aan te passen of iets te maken met de groene ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} knop.`, }, emptyExpenseResults: { title: 'Je hebt nog geen uitgaven gemaakt.', diff --git a/src/languages/pl.ts b/src/languages/pl.ts index e42a15b8c224..bde9255355af 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -851,17 +851,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `Ten czat jest przeznaczony do wszystkiego, co związane z ${reportName}.`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `Ten czat służy do wystawiania faktur między ${invoicePayer} i ${invoiceReceiver}. Użyj przycisku +, aby wysłać fakturę.`, + `Ten czat służy do wystawiania faktur między ${invoicePayer} i ${invoiceReceiver}. Użyj przycisku ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}, aby wysłać fakturę.`, beginningOfChatHistory: 'Ta rozmowa jest z', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `W tym miejscu ${submitterDisplayName} będzie przesyłać wydatki do ${workspaceName}. Wystarczy użyć przycisku +.`, + `W tym miejscu ${submitterDisplayName} będzie przesyłać wydatki do ${workspaceName}. Wystarczy użyć przycisku ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, beginningOfChatHistorySelfDM: 'To jest Twoja przestrzeń osobista. Używaj jej do notatek, zadań, szkiców i przypomnień.', beginningOfChatHistorySystemDM: 'Witamy! Zacznijmy konfigurację.', chatWithAccountManager: 'Czat z Twoim opiekunem konta tutaj', sayHello: 'Powiedz cześć!', yourSpace: 'Twoja przestrzeń', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Witamy w ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Użyj przycisku +, aby ${additionalText} wydatek.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => `Użyj przycisku ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}, aby ${additionalText} wydatek.`, askConcierge: 'Zadawaj pytania i otrzymuj wsparcie w czasie rzeczywistym 24/7.', conciergeSupport: 'Całodobowe wsparcie', create: 'utwórz', @@ -5916,7 +5916,7 @@ const translations = { searchResults: { emptyResults: { title: 'Brak danych do wyświetlenia', - subtitle: 'Spróbuj dostosować kryteria wyszukiwania lub utwórz coś za pomocą zielonego przycisku +.', + subtitle: `Spróbuj dostosować kryteria wyszukiwania lub utwórz coś za pomocą zielonego przycisku ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, }, emptyExpenseResults: { title: 'Nie utworzyłeś jeszcze żadnych wydatków.', diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index 58327a7e89ee..604c744d5be6 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -852,17 +852,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `Esta sala de bate-papo é para qualquer coisa relacionada ao ${reportName}.`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `Este bate-papo é para faturas entre ${invoicePayer} e a ${invoiceReceiver}. Use o botão + para enviar uma fatura.`, + `Este bate-papo é para faturas entre ${invoicePayer} e a ${invoiceReceiver}. Use o botão ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} para enviar uma fatura.`, beginningOfChatHistory: 'Este chat é com', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `É aqui que ${submitterDisplayName} enviará as despesas para a ${workspaceName}. Basta usar o botão +.`, + `É aqui que ${submitterDisplayName} enviará as despesas para a ${workspaceName}. Basta usar o botão ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, beginningOfChatHistorySelfDM: 'Este é o seu espaço pessoal. Use-o para anotações, tarefas, rascunhos e lembretes.', beginningOfChatHistorySystemDM: 'Bem-vindo! Vamos configurá-lo.', chatWithAccountManager: 'Converse com o seu gerente de conta aqui', sayHello: 'Diga olá!', yourSpace: 'Seu espaço', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Bem-vindo(a) ao ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Use o botão + para ${additionalText} uma despesa.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => `Use o botão ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} para ${additionalText} uma despesa.`, askConcierge: 'Faça perguntas e receba suporte em tempo real 24/7.', conciergeSupport: 'Suporte 24/7', create: 'criar', @@ -5930,7 +5930,7 @@ const translations = { searchResults: { emptyResults: { title: 'Nada para mostrar', - subtitle: 'Tente ajustar seus critérios de busca ou criar algo com o botão verde +.', + subtitle: `Tente ajustar seus critérios de busca ou criar algo com o botão verde ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}.`, }, emptyExpenseResults: { title: 'Você ainda não criou nenhuma despesa ainda', diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index de17b924b39f..1caa1af2dc9b 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -850,17 +850,17 @@ const translations = { beginningOfChatHistoryUserRoom: ({reportName, reportDetailsLink}: BeginningOfChatHistoryUserRoomParams) => `本聊天室用于与 ${reportName} 有关的任何内容。`, beginningOfChatHistoryInvoiceRoom: ({invoicePayer, invoiceReceiver}: BeginningOfChatHistoryInvoiceRoomParams) => - `该聊天用于 ${invoicePayer}${invoiceReceiver} 之间的发票。使用 + 按钮发送发票。`, + `该聊天用于 ${invoicePayer}${invoiceReceiver} 之间的发票。使用 ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} 按钮发送发票。`, beginningOfChatHistory: '此聊天是与', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `这是${submitterDisplayName}${workspaceName} 提交费用的地方。使用 + 按钮即可。`, + `这是${submitterDisplayName}${workspaceName} 提交费用的地方。使用 ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} 按钮即可。`, beginningOfChatHistorySelfDM: '这是您的个人空间。用于记录笔记、任务、草稿和提醒。', beginningOfChatHistorySystemDM: '欢迎!让我们为您进行设置。', chatWithAccountManager: '在这里与您的客户经理聊天', sayHello: '说你好!', yourSpace: '您的空间', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `欢迎来到${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `使用 + 按钮${additionalText}一笔费用。`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => `使用 ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} 按钮${additionalText}一笔费用。`, askConcierge: '随时提问并获得全天候实时支持。', conciergeSupport: '24/7 支持', create: '创建', @@ -5820,7 +5820,7 @@ const translations = { searchResults: { emptyResults: { title: '无内容显示', - subtitle: '尝试调整您的搜索条件或使用绿色的 + 按钮创建内容。', + subtitle: `尝试调整您的搜索条件或使用绿色的 ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} 按钮创建内容。`, }, emptyExpenseResults: { title: '您还没有创建任何费用', From 6fdb9cd2b851058f6221966131a43f30df402b64 Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Tue, 12 Aug 2025 01:46:00 +0500 Subject: [PATCH 02/12] add usePlusButton in ReportWelcomeText --- src/components/ReportWelcomeText.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ReportWelcomeText.tsx b/src/components/ReportWelcomeText.tsx index 614069958ed5..0f238a4c0888 100644 --- a/src/components/ReportWelcomeText.tsx +++ b/src/components/ReportWelcomeText.tsx @@ -23,6 +23,7 @@ import { temporary_getMoneyRequestOptions, } from '@libs/ReportUtils'; import SidebarUtils from '@libs/SidebarUtils'; +import TextWithEmojiFragment from '@pages/home/report/comment/TextWithEmojiFragment'; import CONST from '@src/CONST'; import type {IOUType} from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; @@ -131,7 +132,7 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) { {isSelfDM && ( {welcomeMessage.messageText} - {shouldShowUsePlusButtonText && {translate('reportActionsView.usePlusButton', {additionalText})}} + {shouldShowUsePlusButtonText && } )} {isSystemChat && ( @@ -163,7 +164,7 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) { {index < displayNamesWithTooltips.length - 2 && , } ))} - {shouldShowUsePlusButtonText && {translate('reportActionsView.usePlusButton', {additionalText})}} + {shouldShowUsePlusButtonText && } {isConciergeChatReport(report) && {translate('reportActionsView.askConcierge')}} )} From f6e4dd4e08501ed7aa59ce6959d2f9a48bf37daf Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Tue, 12 Aug 2025 01:47:07 +0500 Subject: [PATCH 03/12] fix subtitle for EmptyStateComponent to handle global create --- src/components/EmptyStateComponent/index.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/EmptyStateComponent/index.tsx b/src/components/EmptyStateComponent/index.tsx index 5bd82115fbcd..7d5110b7b1b2 100644 --- a/src/components/EmptyStateComponent/index.tsx +++ b/src/components/EmptyStateComponent/index.tsx @@ -9,6 +9,8 @@ import Text from '@components/Text'; import VideoPlayer from '@components/VideoPlayer'; import useResponsiveLayout from '@hooks/useResponsiveLayout'; import useThemeStyles from '@hooks/useThemeStyles'; +import {containsCustomEmoji, containsOnlyCustomEmoji} from '@libs/EmojiUtils'; +import TextWithEmojiFragment from '@pages/home/report/comment/TextWithEmojiFragment'; import CONST from '@src/CONST'; import type {EmptyStateComponentProps, VideoLoadedEventType} from './types'; @@ -35,6 +37,7 @@ function EmptyStateComponent({ const styles = useThemeStyles(); const [videoAspectRatio, setVideoAspectRatio] = useState(VIDEO_ASPECT_RATIO); const {shouldUseNarrowLayout} = useResponsiveLayout(); + const doesSubtitleContainCustomEmoji = containsCustomEmoji(subtitle ?? '') && !containsOnlyCustomEmoji(subtitle ?? ''); const setAspectRatio = (event: VideoReadyForDisplayEvent | VideoLoadedEventType | undefined) => { if (!event) { @@ -100,7 +103,15 @@ function EmptyStateComponent({ {HeaderComponent} {title} - {subtitleText ?? {subtitle}} + {subtitleText ?? + (doesSubtitleContainCustomEmoji ? ( + + ) : ( + {subtitle} + ))} {children} {!isEmpty(buttons) && ( From a720c47c8e9cf8bdbb697e610448467df6db8b0c Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Tue, 12 Aug 2025 01:48:42 +0500 Subject: [PATCH 04/12] fix: handle edge cases in TextWithEmojiFragment on iOS --- .../TextWithEmojiFragment/index.ios.tsx | 45 +++++++++++++------ .../comment/TextWithEmojiFragment/types.ts | 2 +- 2 files changed, 32 insertions(+), 15 deletions(-) diff --git a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx index b4942ab2274b..aed98a9cb422 100644 --- a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx +++ b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx @@ -3,27 +3,44 @@ import {View} from 'react-native'; import Text from '@components/Text'; import useThemeStyles from '@hooks/useThemeStyles'; import convertToLTR from '@libs/convertToLTR'; -import {containsCustomEmoji, splitTextWithEmojis} from '@libs/EmojiUtils'; +import {containsCustomEmoji, containsOnlyCustomEmoji, splitTextWithEmojis} from '@libs/EmojiUtils'; import type TextWithEmojiFragmentProps from './types'; -function TextWithEmojiFragment({message = '', style}: TextWithEmojiFragmentProps) { +function TextWithEmojiFragment({message = '', style, alignCustomEmoji = false}: TextWithEmojiFragmentProps) { const styles = useThemeStyles(); const processedTextArray = useMemo(() => splitTextWithEmojis(message), [message]); return ( - {processedTextArray.map(({text, isEmoji}, index) => - isEmoji ? ( - - {text} - - ) : ( - convertToLTR(text) - ), - )} + {processedTextArray.map(({text, isEmoji}, index) => { + const charsBeforeEmoji = processedTextArray.slice(0, index).reduce((sum, part) => sum + part.text.length, 0); + + if (isEmoji) { + if (alignCustomEmoji && containsOnlyCustomEmoji(text)) { + return ( + + {text} + + ); + } + if (alignCustomEmoji && charsBeforeEmoji > 50) { + return null; + } + + return ( + + {text} + + ); + } + return convertToLTR(text); + })} ); } diff --git a/src/pages/home/report/comment/TextWithEmojiFragment/types.ts b/src/pages/home/report/comment/TextWithEmojiFragment/types.ts index 7e9452e44497..b4d0c01f3c65 100644 --- a/src/pages/home/report/comment/TextWithEmojiFragment/types.ts +++ b/src/pages/home/report/comment/TextWithEmojiFragment/types.ts @@ -5,7 +5,7 @@ type TextWithEmojiFragmentProps = { message?: string; /** Any additional styles to apply */ - style: StyleProp; + style?: StyleProp; /** Whether the text is alternate text */ alignCustomEmoji?: boolean; From ac64d2899a04656284e4a306bbf555b1559923b6 Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Tue, 12 Aug 2025 02:05:11 +0500 Subject: [PATCH 05/12] fix failing checks --- src/languages/ja.ts | 2 +- .../home/report/comment/TextWithEmojiFragment/index.ios.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 5706798c1f60..5db08d272db0 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -855,7 +855,7 @@ const translations = { `このチャットは、${invoicePayer}${invoiceReceiver}間の請求書用です。請求書を送信するには、${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} ボタンを使用してください。`, beginningOfChatHistory: 'このチャットは', beginningOfChatHistoryPolicyExpenseChat: ({workspaceName, submitterDisplayName}: BeginningOfChatHistoryPolicyExpenseChatParams) => - `ここで${submitterDisplayName}${workspaceName}に経費を提出します。${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}ボタンをクリックしてください。`, + `ここで${submitterDisplayName}${workspaceName}に経費を提出します。${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}ボタンをクリックしてください。`, beginningOfChatHistorySelfDM: 'これはあなたの個人スペースです。メモ、タスク、下書き、リマインダーに使用してください。', beginningOfChatHistorySystemDM: 'ようこそ!セットアップを始めましょう。', chatWithAccountManager: 'こちらでアカウントマネージャーとチャットしてください', diff --git a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx index aed98a9cb422..a73f5bab8749 100644 --- a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx +++ b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx @@ -19,6 +19,7 @@ function TextWithEmojiFragment({message = '', style, alignCustomEmoji = false}: if (alignCustomEmoji && containsOnlyCustomEmoji(text)) { return ( From 8c722fd8356f0b62222ff0e13d2dee595a2b1b4e Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Sat, 16 Aug 2025 00:16:51 +0500 Subject: [PATCH 06/12] revert TextWithEmojiFragment changes for ios --- .../TextWithEmojiFragment/index.ios.tsx | 46 ++++++------------- 1 file changed, 14 insertions(+), 32 deletions(-) diff --git a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx index a73f5bab8749..b4942ab2274b 100644 --- a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx +++ b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx @@ -3,45 +3,27 @@ import {View} from 'react-native'; import Text from '@components/Text'; import useThemeStyles from '@hooks/useThemeStyles'; import convertToLTR from '@libs/convertToLTR'; -import {containsCustomEmoji, containsOnlyCustomEmoji, splitTextWithEmojis} from '@libs/EmojiUtils'; +import {containsCustomEmoji, splitTextWithEmojis} from '@libs/EmojiUtils'; import type TextWithEmojiFragmentProps from './types'; -function TextWithEmojiFragment({message = '', style, alignCustomEmoji = false}: TextWithEmojiFragmentProps) { +function TextWithEmojiFragment({message = '', style}: TextWithEmojiFragmentProps) { const styles = useThemeStyles(); const processedTextArray = useMemo(() => splitTextWithEmojis(message), [message]); return ( - {processedTextArray.map(({text, isEmoji}, index) => { - const charsBeforeEmoji = processedTextArray.slice(0, index).reduce((sum, part) => sum + part.text.length, 0); - - if (isEmoji) { - if (alignCustomEmoji && containsOnlyCustomEmoji(text)) { - return ( - - {text} - - ); - } - if (alignCustomEmoji && charsBeforeEmoji > 50) { - return null; - } - - return ( - - {text} - - ); - } - return convertToLTR(text); - })} + {processedTextArray.map(({text, isEmoji}, index) => + isEmoji ? ( + + {text} + + ) : ( + convertToLTR(text) + ), + )} ); } From 27d326779c20eee9bb1e548b41deae0870ee2269 Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Tue, 19 Aug 2025 11:42:06 +0500 Subject: [PATCH 07/12] fix: TextWithEmojiFragment for IOS 368614 --- .../TextWithEmojiFragment/index.ios.tsx | 41 ++++++++++++------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx index b4942ab2274b..02775ecd78a4 100644 --- a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx +++ b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx @@ -3,27 +3,40 @@ import {View} from 'react-native'; import Text from '@components/Text'; import useThemeStyles from '@hooks/useThemeStyles'; import convertToLTR from '@libs/convertToLTR'; -import {containsCustomEmoji, splitTextWithEmojis} from '@libs/EmojiUtils'; +import {containsCustomEmoji, containsOnlyCustomEmoji, splitTextWithEmojis} from '@libs/EmojiUtils'; import type TextWithEmojiFragmentProps from './types'; -function TextWithEmojiFragment({message = '', style}: TextWithEmojiFragmentProps) { +function TextWithEmojiFragment({message = '', style, alignCustomEmoji = false}: TextWithEmojiFragmentProps) { const styles = useThemeStyles(); const processedTextArray = useMemo(() => splitTextWithEmojis(message), [message]); return ( - {processedTextArray.map(({text, isEmoji}, index) => - isEmoji ? ( - - {text} - - ) : ( - convertToLTR(text) - ), - )} + {processedTextArray.map(({text, isEmoji}, index) => { + if (isEmoji && containsOnlyCustomEmoji(text)) { + if (alignCustomEmoji) { + return ( + + {text} + + ); + } + + return ( + + {text} + + ); + } + return convertToLTR(text); + })} ); } From 9d5b371a8abd20e1fbdb12d5f8e7b2139a880a0c Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Sat, 23 Aug 2025 03:03:39 +0500 Subject: [PATCH 08/12] fix: regular emoji styles on report screen --- .../TextWithEmojiFragment/index.ios.tsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx index 02775ecd78a4..b7d00a2b5daf 100644 --- a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx +++ b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx @@ -13,8 +13,8 @@ function TextWithEmojiFragment({message = '', style, alignCustomEmoji = false}: return ( {processedTextArray.map(({text, isEmoji}, index) => { - if (isEmoji && containsOnlyCustomEmoji(text)) { - if (alignCustomEmoji) { + if (isEmoji) { + if (alignCustomEmoji && containsOnlyCustomEmoji(text)) { return ( ); + } else if (!alignCustomEmoji) { + return ( + + {text} + + ); } - - return ( - - {text} - - ); } return convertToLTR(text); })} From 64afe2de4516526b3e8cdfa0ff1e868d3470ce65 Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Sat, 23 Aug 2025 04:08:13 +0500 Subject: [PATCH 09/12] refactor TextWithEmojiFragment --- .../TextWithEmojiFragment/index.ios.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx index b7d00a2b5daf..bd201fc8d6fc 100644 --- a/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx +++ b/src/pages/home/report/comment/TextWithEmojiFragment/index.ios.tsx @@ -14,24 +14,25 @@ function TextWithEmojiFragment({message = '', style, alignCustomEmoji = false}: {processedTextArray.map(({text, isEmoji}, index) => { if (isEmoji) { - if (alignCustomEmoji && containsOnlyCustomEmoji(text)) { + if (!alignCustomEmoji) { return ( - - {text} - + {text} + ); - } else if (!alignCustomEmoji) { + } + if (containsOnlyCustomEmoji(text)) { return ( - - {text} - + {text} + ); } } From 94bffc8d151b8e5d66b9d400f52d33ee311ded74 Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Mon, 25 Aug 2025 10:59:44 +0500 Subject: [PATCH 10/12] fix: custom emoji font alignment --- src/pages/home/report/comment/TextCommentFragment.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/home/report/comment/TextCommentFragment.tsx b/src/pages/home/report/comment/TextCommentFragment.tsx index 8453e0d07afa..e86c13d8f037 100644 --- a/src/pages/home/report/comment/TextCommentFragment.tsx +++ b/src/pages/home/report/comment/TextCommentFragment.tsx @@ -10,7 +10,7 @@ import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import convertToLTR from '@libs/convertToLTR'; import {canUseTouchScreen} from '@libs/DeviceCapabilities'; -import {containsOnlyCustomEmoji as containsOnlyCustomEmojiUtil, containsOnlyEmojis as containsOnlyEmojisUtil, splitTextWithEmojis} from '@libs/EmojiUtils'; +import {containsCustomEmoji, containsOnlyCustomEmoji as containsOnlyCustomEmojiUtil, containsOnlyEmojis as containsOnlyEmojisUtil, splitTextWithEmojis} from '@libs/EmojiUtils'; import Parser from '@libs/Parser'; import Performance from '@libs/Performance'; import {getHtmlWithAttachmentID, getTextFromHtml} from '@libs/ReportActionsUtils'; @@ -72,7 +72,7 @@ function TextCommentFragment({fragment, styleAsDeleted, reportActionID, styleAsM const containsOnlyEmojis = containsOnlyEmojisUtil(text ?? ''); const containsOnlyCustomEmoji = useMemo(() => containsOnlyCustomEmojiUtil(text), [text]); const containsEmojis = CONST.REGEX.ALL_EMOJIS.test(text ?? ''); - if (!shouldRenderAsText(html, text ?? '') && !(containsOnlyEmojis && styleAsDeleted)) { + if (!shouldRenderAsText(html, text ?? '') && !(containsOnlyEmojis && styleAsDeleted) && (containsOnlyEmojis || !containsCustomEmoji(text))) { const editedTag = fragment?.isEdited ? `` : ''; const htmlWithDeletedTag = styleAsDeleted ? `${html}` : html; From 0b2e087f441475924b31a24b2bb00766f876082e Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Mon, 1 Sep 2025 18:48:42 +0500 Subject: [PATCH 11/12] add leading space to usePlusButton copy --- src/languages/de.ts | 2 +- src/languages/fr.ts | 2 +- src/languages/it.ts | 2 +- src/languages/ja.ts | 2 +- src/languages/nl.ts | 2 +- src/languages/pl.ts | 2 +- src/languages/pt-BR.ts | 2 +- src/languages/zh-hans.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/languages/de.ts b/src/languages/de.ts index 8618ead9db05..90a0c13788e9 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -879,7 +879,7 @@ const translations = { sayHello: 'Hallo!', yourSpace: 'Ihr Bereich', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Willkommen in ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Verwenden Sie die ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} Taste, um ${additionalText} einen Ausgabenposten hinzuzufügen.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Verwenden Sie die ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} Taste, um ${additionalText} einen Ausgabenposten hinzuzufügen.`, askConcierge: 'Stellen Sie Fragen und erhalten Sie rund um die Uhr Unterstützung in Echtzeit.', conciergeSupport: '24/7 Support', create: 'erstellen', diff --git a/src/languages/fr.ts b/src/languages/fr.ts index 347a331ec52e..c34906d1428c 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -882,7 +882,7 @@ const translations = { sayHello: 'Dites bonjour !', yourSpace: 'Votre espace', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Bienvenue dans ${roomName} !`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Utilisez le bouton ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} pour ${additionalText} une dépense.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Utilisez le bouton ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} pour ${additionalText} une dépense.`, askConcierge: 'Posez des questions et obtenez une assistance en temps réel 24h/24 et 7j/7.', conciergeSupport: 'Support 24h/24 et 7j/7', create: 'créer', diff --git a/src/languages/it.ts b/src/languages/it.ts index 51540fc967fa..9c5702065aa1 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -878,7 +878,7 @@ const translations = { sayHello: 'Ciao!', yourSpace: 'Il tuo spazio', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Benvenuto in ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Usa il pulsante ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} per ${additionalText} una spesa.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Usa il pulsante ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} per ${additionalText} una spesa.`, askConcierge: 'Fai domande e ricevi supporto in tempo reale 24/7.', conciergeSupport: 'Supporto 24/7', create: 'creare', diff --git a/src/languages/ja.ts b/src/languages/ja.ts index e97001f6df0f..30aa516d1d4e 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -879,7 +879,7 @@ const translations = { sayHello: 'こんにちは!', yourSpace: 'あなたのスペース', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `${roomName}へようこそ!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} ボタンを使用して経費を${additionalText}します。`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} ボタンを使用して経費を${additionalText}します。`, askConcierge: '質問をして、24時間365日リアルタイムサポートを受けましょう。', conciergeSupport: '24時間年中無休サポート', create: '作成する', diff --git a/src/languages/nl.ts b/src/languages/nl.ts index 0a8f006095f8..f3f5fcb756ca 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -878,7 +878,7 @@ const translations = { sayHello: 'Zeg hallo!', yourSpace: 'Uw ruimte', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Welkom bij ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Gebruik de ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} knop om een uitgave te ${additionalText}.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Gebruik de ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} knop om een uitgave te ${additionalText}.`, askConcierge: 'Stel vragen en krijg 24/7 realtime ondersteuning.', conciergeSupport: '24/7 ondersteuning', create: 'maken', diff --git a/src/languages/pl.ts b/src/languages/pl.ts index eba9b2b542c9..a3c16956d4ab 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -878,7 +878,7 @@ const translations = { sayHello: 'Powiedz cześć!', yourSpace: 'Twoja przestrzeń', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Witamy w ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Użyj przycisku ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}, aby ${additionalText} wydatek.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Użyj przycisku ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE}, aby ${additionalText} wydatek.`, askConcierge: 'Zadawaj pytania i otrzymuj wsparcie w czasie rzeczywistym 24/7.', conciergeSupport: 'Całodobowe wsparcie', create: 'utwórz', diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index 9f513064f106..e78d02cd1683 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -879,7 +879,7 @@ const translations = { sayHello: 'Diga olá!', yourSpace: 'Seu espaço', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `Bem-vindo(a) ao ${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `Use o botão ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} para ${additionalText} uma despesa.`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` Use o botão ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} para ${additionalText} uma despesa.`, askConcierge: 'Faça perguntas e receba suporte em tempo real 24/7.', conciergeSupport: 'Suporte 24/7', create: 'criar', diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index 59ab6dfbeb88..77637869cf7f 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -877,7 +877,7 @@ const translations = { sayHello: '说你好!', yourSpace: '您的空间', welcomeToRoom: ({roomName}: WelcomeToRoomParams) => `欢迎来到${roomName}!`, - usePlusButton: ({additionalText}: UsePlusButtonParams) => `使用 ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} 按钮${additionalText}一笔费用。`, + usePlusButton: ({additionalText}: UsePlusButtonParams) => ` 使用 ${CONST.CUSTOM_EMOJIS.GLOBAL_CREATE} 按钮${additionalText}一笔费用。`, askConcierge: '随时提问并获得全天候实时支持。', conciergeSupport: '24/7 支持', create: '创建', From 9e83f2f627c6d530191b4280cfc55fe34c0159a2 Mon Sep 17 00:00:00 2001 From: Samran Ahmed Date: Tue, 2 Sep 2025 19:32:18 +0500 Subject: [PATCH 12/12] change var name --- src/components/EmptyStateComponent/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/EmptyStateComponent/index.tsx b/src/components/EmptyStateComponent/index.tsx index 7d5110b7b1b2..807ce31b157c 100644 --- a/src/components/EmptyStateComponent/index.tsx +++ b/src/components/EmptyStateComponent/index.tsx @@ -37,7 +37,7 @@ function EmptyStateComponent({ const styles = useThemeStyles(); const [videoAspectRatio, setVideoAspectRatio] = useState(VIDEO_ASPECT_RATIO); const {shouldUseNarrowLayout} = useResponsiveLayout(); - const doesSubtitleContainCustomEmoji = containsCustomEmoji(subtitle ?? '') && !containsOnlyCustomEmoji(subtitle ?? ''); + const doesSubtitleContainCustomEmojiAndMore = containsCustomEmoji(subtitle ?? '') && !containsOnlyCustomEmoji(subtitle ?? ''); const setAspectRatio = (event: VideoReadyForDisplayEvent | VideoLoadedEventType | undefined) => { if (!event) { @@ -104,7 +104,7 @@ function EmptyStateComponent({ {title} {subtitleText ?? - (doesSubtitleContainCustomEmoji ? ( + (doesSubtitleContainCustomEmojiAndMore ? (