Skip to content

Commit 2dbe411

Browse files
Merge empty tag and category subtitle translations
1 parent 3c4fcce commit 2dbe411

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) => {
@@ -168,6 +173,7 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim
168173
styles.blockquote,
169174
styles.onlyEmojisTextLineHeight,
170175
styles.subTextFileUpload,
176+
styles.textAlignCenter,
171177
],
172178
);
173179
/* eslint-enable @typescript-eslint/naming-convention */

src/languages/de.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ import type {
9393
EditDestinationSubtitleParams,
9494
ElectronicFundsParams,
9595
EmployeeInviteMessageParams,
96+
EmptyCategoriesSubtitleWithAccountingParams,
97+
EmptyTagsSubtitleWithAccountingParams,
9698
EnterMagicCodeParams,
9799
ExportAgainModalDescriptionParams,
98100
ExportedToIntegrationParams,
@@ -4445,11 +4447,8 @@ const translations = {
44454447
emptyCategories: {
44464448
title: 'Sie haben noch keine Kategorien erstellt.',
44474449
subtitle: 'Fügen Sie eine Kategorie hinzu, um Ihre Ausgaben zu organisieren.',
4448-
},
4449-
emptyCategoriesWithAccounting: {
4450-
subtitle1: 'Ihre Kategorien werden derzeit aus einer Buchhaltungsverbindung importiert. Gehen Sie zu',
4451-
subtitle2: 'Buchhaltung',
4452-
subtitle3: 'um Änderungen vorzunehmen.',
4450+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4451+
`<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>`,
44534452
},
44544453
updateFailureMessage: 'Beim Aktualisieren der Kategorie ist ein Fehler aufgetreten, bitte versuchen Sie es erneut.',
44554454
createFailureMessage: 'Beim Erstellen der Kategorie ist ein Fehler aufgetreten, bitte versuchen Sie es erneut.',
@@ -4714,14 +4713,9 @@ const translations = {
47144713
title: 'Sie haben noch keine Tags erstellt.',
47154714
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
47164715
subtitle: 'Fügen Sie ein Tag hinzu, um Projekte, Standorte, Abteilungen und mehr zu verfolgen.',
4717-
subtitle1: 'Importieren Sie eine Tabelle, um Tags für die Verfolgung von Projekten, Standorten, Abteilungen und mehr hinzuzufügen.',
4718-
subtitle2: 'Erfahren Sie mehr',
4719-
subtitle3: 'über das Formatieren von Tag-Dateien.',
4720-
},
4721-
emptyTagsWithAccounting: {
4722-
subtitle1: 'Ihre Tags werden derzeit aus einer Buchhaltungsverbindung importiert. Gehen Sie zu',
4723-
subtitle2: 'Buchhaltung',
4724-
subtitle3: 'um Änderungen vorzunehmen.',
4716+
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>`,
4717+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4718+
`<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>`,
47254719
},
47264720
deleteTag: 'Tag löschen',
47274721
deleteTags: 'Tags löschen',

src/languages/en.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ import type {
8181
EditDestinationSubtitleParams,
8282
ElectronicFundsParams,
8383
EmployeeInviteMessageParams,
84+
EmptyCategoriesSubtitleWithAccountingParams,
85+
EmptyTagsSubtitleWithAccountingParams,
8486
EnterMagicCodeParams,
8587
ExportAgainModalDescriptionParams,
8688
ExportedToIntegrationParams,
@@ -4426,11 +4428,8 @@ const translations = {
44264428
emptyCategories: {
44274429
title: "You haven't created any categories",
44284430
subtitle: 'Add a category to organize your spend.',
4429-
},
4430-
emptyCategoriesWithAccounting: {
4431-
subtitle1: 'Your categories are currently importing from an accounting connection. Head over to ',
4432-
subtitle2: 'accounting',
4433-
subtitle3: ' to make any changes.',
4431+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4432+
`<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>`,
44344433
},
44354434
updateFailureMessage: 'An error occurred while updating the category, please try again',
44364435
createFailureMessage: 'An error occurred while creating the category, please try again',
@@ -4692,14 +4691,9 @@ const translations = {
46924691
title: "You haven't created any tags",
46934692
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
46944693
subtitle: 'Add a tag to track projects, locations, departments, and more.',
4695-
subtitle1: 'Import a spreadsheet to add tags for tracking projects, locations, departments, and more.',
4696-
subtitle2: ' Learn more',
4697-
subtitle3: ' about formatting tag files.',
4698-
},
4699-
emptyTagsWithAccounting: {
4700-
subtitle1: 'Your tags are currently importing from an accounting connection. Head over to ',
4701-
subtitle2: 'accounting',
4702-
subtitle3: ' to make any changes.',
4694+
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>`,
4695+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4696+
`<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>`,
47034697
},
47044698
deleteTag: 'Delete tag',
47054699
deleteTags: 'Delete tags',

src/languages/es.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ import type {
8080
EditDestinationSubtitleParams,
8181
ElectronicFundsParams,
8282
EmployeeInviteMessageParams,
83+
EmptyCategoriesSubtitleWithAccountingParams,
84+
EmptyTagsSubtitleWithAccountingParams,
8385
EnterMagicCodeParams,
8486
ExportAgainModalDescriptionParams,
8587
ExportedToIntegrationParams,
@@ -4437,11 +4439,8 @@ const translations = {
44374439
emptyCategories: {
44384440
title: 'No has creado ninguna categoría',
44394441
subtitle: 'Añade una categoría para organizar tu gasto.',
4440-
},
4441-
emptyCategoriesWithAccounting: {
4442-
subtitle1: 'Tus categorías se están importando actualmente desde una conexión de contabilidad. Dirígete a ',
4443-
subtitle2: 'contabilidad',
4444-
subtitle3: ' para hacer cualquier cambio.',
4442+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4443+
`<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>`,
44454444
},
44464445
updateFailureMessage: 'Se ha producido un error al intentar eliminar la categoría. Por favor, inténtalo más tarde.',
44474446
createFailureMessage: 'Se ha producido un error al intentar crear la categoría. Por favor, inténtalo más tarde.',
@@ -4705,14 +4704,9 @@ const translations = {
47054704
emptyTags: {
47064705
title: 'No has creado ninguna etiqueta',
47074706
subtitle: 'Añade una etiqueta para realizar el seguimiento de proyectos, ubicaciones, departamentos y otros.',
4708-
subtitle1: 'Importa una hoja de cálculo para añadir etiquetas y organizar proyectos, ubicaciones, departamentos y más.',
4709-
subtitle2: ' Obtén más información',
4710-
subtitle3: ' sobre cómo dar formato a los archivos de etiquetas.',
4711-
},
4712-
emptyTagsWithAccounting: {
4713-
subtitle1: 'Tus etiquetas se están importando actualmente desde una conexión de contabilidad. Dirígete a ',
4714-
subtitle2: 'contabilidad',
4715-
subtitle3: ' para hacer cualquier cambio.',
4707+
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>`,
4708+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4709+
`<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>`,
47164710
},
47174711
deleteTag: 'Eliminar etiqueta',
47184712
deleteTags: 'Eliminar etiquetas',

src/languages/fr.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ import type {
9393
EditDestinationSubtitleParams,
9494
ElectronicFundsParams,
9595
EmployeeInviteMessageParams,
96+
EmptyCategoriesSubtitleWithAccountingParams,
97+
EmptyTagsSubtitleWithAccountingParams,
9698
EnterMagicCodeParams,
9799
ExportAgainModalDescriptionParams,
98100
ExportedToIntegrationParams,
@@ -4456,11 +4458,8 @@ const translations = {
44564458
emptyCategories: {
44574459
title: "Vous n'avez créé aucune catégorie",
44584460
subtitle: 'Ajoutez une catégorie pour organiser vos dépenses.',
4459-
},
4460-
emptyCategoriesWithAccounting: {
4461-
subtitle1: 'Vos catégories sont actuellement importées depuis une connexion comptable. Rendez-vous sur',
4462-
subtitle2: 'comptabilité',
4463-
subtitle3: 'pour apporter des modifications.',
4461+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4462+
`<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>`,
44644463
},
44654464
updateFailureMessage: "Une erreur s'est produite lors de la mise à jour de la catégorie, veuillez réessayer.",
44664465
createFailureMessage: "Une erreur s'est produite lors de la création de la catégorie, veuillez réessayer.",
@@ -4728,14 +4727,9 @@ const translations = {
47284727
title: "Vous n'avez créé aucun tag",
47294728
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
47304729
subtitle: 'Ajoutez une étiquette pour suivre les projets, les emplacements, les départements, et plus encore.',
4731-
subtitle1: 'Importez une feuille de calcul pour ajouter des étiquettes afin de suivre les projets, les emplacements, les départements, et plus encore.',
4732-
subtitle2: 'En savoir plus',
4733-
subtitle3: 'à propos des fichiers de balises de formatage.',
4734-
},
4735-
emptyTagsWithAccounting: {
4736-
subtitle1: "Vos balises sont actuellement importées à partir d'une connexion comptable. Rendez-vous sur",
4737-
subtitle2: 'comptabilité',
4738-
subtitle3: 'pour apporter des modifications.',
4730+
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>`,
4731+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4732+
`<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>`,
47394733
},
47404734
deleteTag: 'Supprimer le tag',
47414735
deleteTags: 'Supprimer les balises',

src/languages/it.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ import type {
9393
EditDestinationSubtitleParams,
9494
ElectronicFundsParams,
9595
EmployeeInviteMessageParams,
96+
EmptyCategoriesSubtitleWithAccountingParams,
97+
EmptyTagsSubtitleWithAccountingParams,
9698
EnterMagicCodeParams,
9799
ExportAgainModalDescriptionParams,
98100
ExportedToIntegrationParams,
@@ -4459,11 +4461,8 @@ const translations = {
44594461
emptyCategories: {
44604462
title: 'Non hai creato nessuna categoria',
44614463
subtitle: 'Aggiungi una categoria per organizzare le tue spese.',
4462-
},
4463-
emptyCategoriesWithAccounting: {
4464-
subtitle1: 'Le tue categorie sono attualmente in fase di importazione da una connessione contabile. Vai su',
4465-
subtitle2: 'contabilità',
4466-
subtitle3: 'per apportare qualsiasi modifica.',
4464+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4465+
`<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>`,
44674466
},
44684467
updateFailureMessage: "Si è verificato un errore durante l'aggiornamento della categoria, riprova.",
44694468
createFailureMessage: 'Si è verificato un errore durante la creazione della categoria, per favore riprova.',
@@ -4728,14 +4727,9 @@ const translations = {
47284727
title: 'Non hai creato alcun tag',
47294728
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
47304729
subtitle: 'Aggiungi un tag per tracciare progetti, sedi, reparti e altro.',
4731-
subtitle1: 'Importa un foglio di calcolo per aggiungere tag per il monitoraggio di progetti, sedi, dipartimenti e altro.',
4732-
subtitle2: 'Scopri di più',
4733-
subtitle3: 'about formatting tag files.',
4734-
},
4735-
emptyTagsWithAccounting: {
4736-
subtitle1: 'I tuoi tag sono attualmente in fase di importazione da una connessione contabile. Vai su',
4737-
subtitle2: 'contabilità',
4738-
subtitle3: 'per apportare qualsiasi modifica.',
4730+
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>`,
4731+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4732+
`<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>`,
47394733
},
47404734
deleteTag: 'Elimina tag',
47414735
deleteTags: 'Elimina tag',

src/languages/ja.ts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ import type {
9393
EditDestinationSubtitleParams,
9494
ElectronicFundsParams,
9595
EmployeeInviteMessageParams,
96+
EmptyCategoriesSubtitleWithAccountingParams,
97+
EmptyTagsSubtitleWithAccountingParams,
9698
EnterMagicCodeParams,
9799
ExportAgainModalDescriptionParams,
98100
ExportedToIntegrationParams,
@@ -4441,11 +4443,8 @@ const translations = {
44414443
emptyCategories: {
44424444
title: 'カテゴリが作成されていません',
44434445
subtitle: '支出を整理するためにカテゴリーを追加してください。',
4444-
},
4445-
emptyCategoriesWithAccounting: {
4446-
subtitle1: 'あなたのカテゴリは現在、会計接続からインポートされています。こちらに移動してください',
4447-
subtitle2: '会計',
4448-
subtitle3: '変更を加えるために。',
4446+
subtitleWithAccounting: ({accountingPageURL}: EmptyCategoriesSubtitleWithAccountingParams) =>
4447+
`<muted-text><centered-text>あなたのカテゴリーは現在、会計接続からインポートされています。<a href="${accountingPageURL}">会計</a>に移動して変更してください。</centered-text></muted-text>`,
44494448
},
44504449
updateFailureMessage: 'カテゴリの更新中にエラーが発生しました。もう一度お試しください。',
44514450
createFailureMessage: 'カテゴリの作成中にエラーが発生しました。もう一度お試しください。',
@@ -4708,14 +4707,9 @@ const translations = {
47084707
title: 'タグが作成されていません',
47094708
// We need to remove the subtitle and use the below one when we remove the canUseMultiLevelTags beta
47104709
subtitle: 'プロジェクト、場所、部門などを追跡するためのタグを追加します。',
4711-
subtitle1: 'スプレッドシートをインポートして、プロジェクト、場所、部門などの追跡用タグを追加します。',
4712-
subtitle2: '詳細を確認',
4713-
subtitle3: 'フォーマットタグファイルについて。',
4714-
},
4715-
emptyTagsWithAccounting: {
4716-
subtitle1: 'あなたのタグは現在、会計接続からインポートされています。こちらに移動して',
4717-
subtitle2: '会計',
4718-
subtitle3: '変更を加えるために。',
4710+
subtitleHTML: `<muted-text><centered-text>スプレッドシートをインポートして、プロジェクト、場所、部署などを追跡するためのタグを追加できます。タグファイルのフォーマットについては<a href="${CONST.IMPORT_TAGS_EXPENSIFY_URL}">こちらをご覧</a>ください。</centered-text></muted-text>`,
4711+
subtitleWithAccounting: ({accountingPageURL}: EmptyTagsSubtitleWithAccountingParams) =>
4712+
`<muted-text><centered-text>タグは現在、会計接続からインポートされています。<a href="${accountingPageURL}">アカウンティング</a>に移動して変更してください。</centered-text></muted-text>`,
47194713
},
47204714
deleteTag: 'タグを削除',
47214715
deleteTags: 'タグを削除',

0 commit comments

Comments
 (0)