Skip to content

Commit 52e28fa

Browse files
authored
Merge pull request Expensify#66795 from shubham1206agra/merge-translation-5
Merge empty tag and category subtitle translations
2 parents ebd42d1 + a365115 commit 52e28fa

14 files changed

Lines changed: 114 additions & 174 deletions

File tree

src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim
7373
mixedUAStyles: {...styles.mutedNormalTextLabel, ...styles.mb0},
7474
contentModel: HTMLContentModel.block,
7575
}),
76+
'centered-text': HTMLElementModel.fromCustomModel({
77+
tagName: 'centered-text',
78+
mixedUAStyles: {...styles.textAlignCenter},
79+
contentModel: HTMLContentModel.block,
80+
}),
7681
comment: HTMLElementModel.fromCustomModel({
7782
tagName: 'comment',
7883
getMixedUAStyles: (tnode) => {
@@ -173,6 +178,7 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim
173178
styles.blockquote,
174179
styles.onlyEmojisTextLineHeight,
175180
styles.subTextFileUpload,
181+
styles.textAlignCenter,
176182
styles.textSuccess,
177183
],
178184
);

src/languages/de.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ import type {
9797
EditDestinationSubtitleParams,
9898
ElectronicFundsParams,
9999
EmployeeInviteMessageParams,
100+
EmptyCategoriesSubtitleWithAccountingParams,
101+
EmptyTagsSubtitleWithAccountingParams,
100102
EnterMagicCodeParams,
101103
ExportAgainModalDescriptionParams,
102104
ExportedToIntegrationParams,
@@ -4452,11 +4454,8 @@ const translations = {
44524454
emptyCategories: {
44534455
title: 'Sie haben noch keine Kategorien erstellt.',
44544456
subtitle: 'Fügen Sie eine Kategorie hinzu, um Ihre Ausgaben zu organisieren.',
4455-
},
4456-
emptyCategoriesWithAccounting: {
4457-
subtitle1: 'Ihre Kategorien werden derzeit aus einer Buchhaltungsverbindung importiert. Gehen Sie zu',
4458-
subtitle2: 'Buchhaltung',
4459-
subtitle3: 'um Änderungen vorzunehmen.',
4457+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4458+
`<muted-text><centered-text>Ihre Kategorien werden derzeit aus einer Buchhaltungsverbindung importiert. Gehen Sie zur <a href="${accountingPageURL}">Buchhaltung</a>, um Änderungen vorzunehmen.</centered-text></muted-text>`,
44604459
},
44614460
updateFailureMessage: 'Beim Aktualisieren der Kategorie ist ein Fehler aufgetreten, bitte versuchen Sie es erneut.',
44624461
createFailureMessage: 'Beim Erstellen der Kategorie ist ein Fehler aufgetreten, bitte versuchen Sie es erneut.',
@@ -4721,14 +4720,9 @@ const translations = {
47214720
title: 'Sie haben noch keine Tags erstellt.',
47224721
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
47234722
subtitle: 'Fügen Sie ein Tag hinzu, um Projekte, Standorte, Abteilungen und mehr zu verfolgen.',
4724-
subtitle1: 'Importieren Sie eine Tabelle, um Tags für die Verfolgung von Projekten, Standorten, Abteilungen und mehr hinzuzufügen.',
4725-
subtitle2: 'Erfahren Sie mehr',
4726-
subtitle3: 'über das Formatieren von Tag-Dateien.',
4727-
},
4728-
emptyTagsWithAccounting: {
4729-
subtitle1: 'Ihre Tags werden derzeit aus einer Buchhaltungsverbindung importiert. Gehen Sie zu',
4730-
subtitle2: 'Buchhaltung',
4731-
subtitle3: 'um Änderungen vorzunehmen.',
4723+
subtitleHTML: `<muted-text><centered-text>Importieren Sie eine Kalkulationstabelle, um Tags für die Verfolgung von Projekten, Standorten, Abteilungen und mehr hinzuzufügen. <a href="${CONST.IMPORT_TAGS_EXPENSIFY_URL}">Erfahren Sie mehr</a> über die Formatierung von Tag-Dateien.</centered-text></muted-text>`,
4724+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4725+
`<muted-text><centered-text>Your tags are currently importing from an accounting connection. Gehen Sie zur <a href="${accountingPageURL}">Buchhaltung</a>, um Änderungen vorzunehmen.</centered-text></muted-text>`,
47324726
},
47334727
deleteTag: 'Tag löschen',
47344728
deleteTags: 'Tags löschen',

src/languages/en.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ import type {
8585
EditDestinationSubtitleParams,
8686
ElectronicFundsParams,
8787
EmployeeInviteMessageParams,
88+
EmptyCategoriesSubtitleWithAccountingParams,
89+
EmptyTagsSubtitleWithAccountingParams,
8890
EnterMagicCodeParams,
8991
ExportAgainModalDescriptionParams,
9092
ExportedToIntegrationParams,
@@ -4434,11 +4436,8 @@ const translations = {
44344436
emptyCategories: {
44354437
title: "You haven't created any categories",
44364438
subtitle: 'Add a category to organize your spend.',
4437-
},
4438-
emptyCategoriesWithAccounting: {
4439-
subtitle1: 'Your categories are currently importing from an accounting connection. Head over to ',
4440-
subtitle2: 'accounting',
4441-
subtitle3: ' to make any changes.',
4439+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4440+
`<muted-text><centered-text>Your categories are currently importing from an accounting connection. Head over to <a href="${accountingPageURL}">accounting</a> to make any changes.</centered-text></muted-text>`,
44424441
},
44434442
updateFailureMessage: 'An error occurred while updating the category, please try again',
44444443
createFailureMessage: 'An error occurred while creating the category, please try again',
@@ -4700,14 +4699,9 @@ const translations = {
47004699
title: "You haven't created any tags",
47014700
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
47024701
subtitle: 'Add a tag to track projects, locations, departments, and more.',
4703-
subtitle1: 'Import a spreadsheet to add tags for tracking projects, locations, departments, and more.',
4704-
subtitle2: ' Learn more',
4705-
subtitle3: ' about formatting tag files.',
4706-
},
4707-
emptyTagsWithAccounting: {
4708-
subtitle1: 'Your tags are currently importing from an accounting connection. Head over to ',
4709-
subtitle2: 'accounting',
4710-
subtitle3: ' to make any changes.',
4702+
subtitleHTML: `<muted-text><centered-text>Import a spreadsheet to add tags for tracking projects, locations, departments, and more. <a href="${CONST.IMPORT_TAGS_EXPENSIFY_URL}">Learn more</a> about formatting tag files.</centered-text></muted-text>`,
4703+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4704+
`<muted-text><centered-text>Your tags are currently importing from an accounting connection. Head over to <a href="${accountingPageURL}">accounting</a> to make any changes.</centered-text></muted-text>`,
47114705
},
47124706
deleteTag: 'Delete tag',
47134707
deleteTags: 'Delete tags',

src/languages/es.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ import type {
8484
EditDestinationSubtitleParams,
8585
ElectronicFundsParams,
8686
EmployeeInviteMessageParams,
87+
EmptyCategoriesSubtitleWithAccountingParams,
88+
EmptyTagsSubtitleWithAccountingParams,
8789
EnterMagicCodeParams,
8890
ExportAgainModalDescriptionParams,
8991
ExportedToIntegrationParams,
@@ -4444,11 +4446,8 @@ const translations = {
44444446
emptyCategories: {
44454447
title: 'No has creado ninguna categoría',
44464448
subtitle: 'Añade una categoría para organizar tu gasto.',
4447-
},
4448-
emptyCategoriesWithAccounting: {
4449-
subtitle1: 'Tus categorías se están importando actualmente desde una conexión de contabilidad. Dirígete a ',
4450-
subtitle2: 'contabilidad',
4451-
subtitle3: ' para hacer cualquier cambio.',
4449+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4450+
`<muted-text><centered-text>Tus categorías se están importando actualmente desde una conexión de contabilidad. Dirígete a <a href="${accountingPageURL}">contabilidad</a> para hacer cualquier cambio.</centered-text></muted-text>`,
44524451
},
44534452
updateFailureMessage: 'Se ha producido un error al intentar eliminar la categoría. Por favor, inténtalo más tarde.',
44544453
createFailureMessage: 'Se ha producido un error al intentar crear la categoría. Por favor, inténtalo más tarde.',
@@ -4712,14 +4711,9 @@ const translations = {
47124711
emptyTags: {
47134712
title: 'No has creado ninguna etiqueta',
47144713
subtitle: 'Añade una etiqueta para realizar el seguimiento de proyectos, ubicaciones, departamentos y otros.',
4715-
subtitle1: 'Importa una hoja de cálculo para añadir etiquetas y organizar proyectos, ubicaciones, departamentos y más.',
4716-
subtitle2: ' Obtén más información',
4717-
subtitle3: ' sobre cómo dar formato a los archivos de etiquetas.',
4718-
},
4719-
emptyTagsWithAccounting: {
4720-
subtitle1: 'Tus etiquetas se están importando actualmente desde una conexión de contabilidad. Dirígete a ',
4721-
subtitle2: 'contabilidad',
4722-
subtitle3: ' para hacer cualquier cambio.',
4714+
subtitleHTML: `<muted-text><centered-text>Importa una hoja de cálculo para añadir etiquetas y organizar proyectos, ubicaciones, departamentos y más. <a href="${CONST.IMPORT_TAGS_EXPENSIFY_URL}">Obtén más información</a> sobre cómo dar formato a los archivos de etiquetas.</centered-text></muted-text>`,
4715+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4716+
`<muted-text><centered-text>Tus etiquetas se están importando actualmente desde una conexión de contabilidad. Dirígete a <a href="${accountingPageURL}">contabilidad</a> para hacer cualquier cambio.</centered-text></muted-text>`,
47234717
},
47244718
deleteTag: 'Eliminar etiqueta',
47254719
deleteTags: 'Eliminar etiquetas',

src/languages/fr.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ import type {
9797
EditDestinationSubtitleParams,
9898
ElectronicFundsParams,
9999
EmployeeInviteMessageParams,
100+
EmptyCategoriesSubtitleWithAccountingParams,
101+
EmptyTagsSubtitleWithAccountingParams,
100102
EnterMagicCodeParams,
101103
ExportAgainModalDescriptionParams,
102104
ExportedToIntegrationParams,
@@ -4464,11 +4466,8 @@ const translations = {
44644466
emptyCategories: {
44654467
title: "Vous n'avez créé aucune catégorie",
44664468
subtitle: 'Ajoutez une catégorie pour organiser vos dépenses.',
4467-
},
4468-
emptyCategoriesWithAccounting: {
4469-
subtitle1: 'Vos catégories sont actuellement importées depuis une connexion comptable. Rendez-vous sur',
4470-
subtitle2: 'comptabilité',
4471-
subtitle3: 'pour apporter des modifications.',
4469+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4470+
`<muted-text><centered-text>Vos catégories sont actuellement importées à partir d'une connexion comptable. Allez dans la <a href="${accountingPageURL}">comptabilité</a> pour faire des changements.</centered-text></muted-text>`,
44724471
},
44734472
updateFailureMessage: "Une erreur s'est produite lors de la mise à jour de la catégorie, veuillez réessayer.",
44744473
createFailureMessage: "Une erreur s'est produite lors de la création de la catégorie, veuillez réessayer.",
@@ -4736,14 +4735,9 @@ const translations = {
47364735
title: "Vous n'avez créé aucun tag",
47374736
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
47384737
subtitle: 'Ajoutez une étiquette pour suivre les projets, les emplacements, les départements, et plus encore.',
4739-
subtitle1: 'Importez une feuille de calcul pour ajouter des étiquettes afin de suivre les projets, les emplacements, les départements, et plus encore.',
4740-
subtitle2: 'En savoir plus',
4741-
subtitle3: 'à propos des fichiers de balises de formatage.',
4742-
},
4743-
emptyTagsWithAccounting: {
4744-
subtitle1: "Vos balises sont actuellement importées à partir d'une connexion comptable. Rendez-vous sur",
4745-
subtitle2: 'comptabilité',
4746-
subtitle3: 'pour apporter des modifications.',
4738+
subtitleHTML: `<muted-text><centered-text>Importez une feuille de calcul pour ajouter des balises permettant de suivre les projets, les lieux, les services, etc. <a href="${CONST.IMPORT_TAGS_EXPENSIFY_URL}">En savoir plus</a> sur le formatage des fichiers de balises.</centered-text></muted-text>`,
4739+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4740+
`<muted-text><centered-text>Vos étiquettes sont actuellement importées à partir d'une connexion comptable. Allez dans la <a href="${accountingPageURL}">comptabilité</a> pour faire des changements.</centered-text></muted-text>`,
47474741
},
47484742
deleteTag: 'Supprimer le tag',
47494743
deleteTags: 'Supprimer les balises',

src/languages/it.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ import type {
9797
EditDestinationSubtitleParams,
9898
ElectronicFundsParams,
9999
EmployeeInviteMessageParams,
100+
EmptyCategoriesSubtitleWithAccountingParams,
101+
EmptyTagsSubtitleWithAccountingParams,
100102
EnterMagicCodeParams,
101103
ExportAgainModalDescriptionParams,
102104
ExportedToIntegrationParams,
@@ -4467,11 +4469,8 @@ const translations = {
44674469
emptyCategories: {
44684470
title: 'Non hai creato nessuna categoria',
44694471
subtitle: 'Aggiungi una categoria per organizzare le tue spese.',
4470-
},
4471-
emptyCategoriesWithAccounting: {
4472-
subtitle1: 'Le tue categorie sono attualmente in fase di importazione da una connessione contabile. Vai su',
4473-
subtitle2: 'contabilità',
4474-
subtitle3: 'per apportare qualsiasi modifica.',
4472+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4473+
`<muted-text><centered-text>Le categorie vengono attualmente importate da una connessione contabile. Passare alla <a href="${accountingPageURL}">contabilità</a> per apportare eventuali modifiche.</centered-text></muted-text>`,
44754474
},
44764475
updateFailureMessage: "Si è verificato un errore durante l'aggiornamento della categoria, riprova.",
44774476
createFailureMessage: 'Si è verificato un errore durante la creazione della categoria, per favore riprova.',
@@ -4736,14 +4735,9 @@ const translations = {
47364735
title: 'Non hai creato alcun tag',
47374736
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
47384737
subtitle: 'Aggiungi un tag per tracciare progetti, sedi, reparti e altro.',
4739-
subtitle1: 'Importa un foglio di calcolo per aggiungere tag per il monitoraggio di progetti, sedi, dipartimenti e altro.',
4740-
subtitle2: 'Scopri di più',
4741-
subtitle3: 'about formatting tag files.',
4742-
},
4743-
emptyTagsWithAccounting: {
4744-
subtitle1: 'I tuoi tag sono attualmente in fase di importazione da una connessione contabile. Vai su',
4745-
subtitle2: 'contabilità',
4746-
subtitle3: 'per apportare qualsiasi modifica.',
4738+
subtitleHTML: `<muted-text><centered-text>Importare un foglio di calcolo per aggiungere tag per tracciare progetti, sedi, reparti e altro ancora. <a href="${CONST.IMPORT_TAGS_EXPENSIFY_URL}">Ulteriori informazioni</a> sulla formattazione dei file di tag.</centered-text></muted-text>`,
4739+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4740+
`<muted-text><centered-text>I tag vengono attualmente importati da una connessione contabile. Passare alla <a href="${accountingPageURL}">contabilità</a> per apportare eventuali modifiche.</centered-text></muted-text>`,
47474741
},
47484742
deleteTag: 'Elimina tag',
47494743
deleteTags: 'Elimina tag',

src/languages/ja.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ import type {
9797
EditDestinationSubtitleParams,
9898
ElectronicFundsParams,
9999
EmployeeInviteMessageParams,
100+
EmptyCategoriesSubtitleWithAccountingParams,
101+
EmptyTagsSubtitleWithAccountingParams,
100102
EnterMagicCodeParams,
101103
ExportAgainModalDescriptionParams,
102104
ExportedToIntegrationParams,
@@ -4448,11 +4450,8 @@ const translations = {
44484450
emptyCategories: {
44494451
title: 'カテゴリが作成されていません',
44504452
subtitle: '支出を整理するためにカテゴリーを追加してください。',
4451-
},
4452-
emptyCategoriesWithAccounting: {
4453-
subtitle1: 'あなたのカテゴリは現在、会計接続からインポートされています。こちらに移動してください',
4454-
subtitle2: '会計',
4455-
subtitle3: '変更を加えるために。',
4453+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4454+
`<muted-text><centered-text>あなたのカテゴリーは現在、会計接続からインポートされています。<a href="${accountingPageURL}">会計</a>に移動して変更してください。</centered-text></muted-text>`,
44564455
},
44574456
updateFailureMessage: 'カテゴリの更新中にエラーが発生しました。もう一度お試しください。',
44584457
createFailureMessage: 'カテゴリの作成中にエラーが発生しました。もう一度お試しください。',
@@ -4715,14 +4714,9 @@ const translations = {
47154714
title: 'タグが作成されていません',
47164715
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
47174716
subtitle: 'プロジェクト、場所、部門などを追跡するためのタグを追加します。',
4718-
subtitle1: 'スプレッドシートをインポートして、プロジェクト、場所、部門などの追跡用タグを追加します。',
4719-
subtitle2: '詳細を確認',
4720-
subtitle3: 'フォーマットタグファイルについて。',
4721-
},
4722-
emptyTagsWithAccounting: {
4723-
subtitle1: 'あなたのタグは現在、会計接続からインポートされています。こちらに移動して',
4724-
subtitle2: '会計',
4725-
subtitle3: '変更を加えるために。',
4717+
subtitleHTML: `<muted-text><centered-text>スプレッドシートをインポートして、プロジェクト、場所、部署などを追跡するためのタグを追加できます。タグファイルのフォーマットについては<a href="${CONST.IMPORT_TAGS_EXPENSIFY_URL}">こちらをご覧</a>ください。</centered-text></muted-text>`,
4718+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4719+
`<muted-text><centered-text>タグは現在、会計接続からインポートされています。<a href="${accountingPageURL}">アカウンティング</a>に移動して変更してください。</centered-text></muted-text>`,
47264720
},
47274721
deleteTag: 'タグを削除',
47284722
deleteTags: 'タグを削除',

0 commit comments

Comments
 (0)