Skip to content

Commit 99867a7

Browse files
authored
Merge pull request Expensify#78467 from rayane-d/enable-disable-distance-rate-policy-change-log
Remove distance rate index translations and fix enabled message copy
2 parents 96213f6 + ecbfaa4 commit 99867a7

13 files changed

Lines changed: 46 additions & 61 deletions

File tree

src/languages/de.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ import type {
190190
UpdatedPolicyCategoryParams,
191191
UpdatedPolicyCurrencyParams,
192192
UpdatedPolicyCustomUnitRateEnabledParams,
193-
UpdatedPolicyCustomUnitRateIndexParams,
194193
UpdatedPolicyCustomUnitRateParams,
195194
UpdatedPolicyCustomUnitTaxClaimablePercentageParams,
196195
UpdatedPolicyCustomUnitTaxRateExternalIDParams,
@@ -6435,11 +6434,8 @@ Fordere Spesendetails wie Belege und Beschreibungen an, lege Limits und Standard
64356434
}
64366435
return `hat einen steuererstattungsfähigen Anteil von „${newValue}“ zum Entfernungssatz „${customUnitRateName}“ hinzugefügt`;
64376436
},
6438-
updatedCustomUnitRateIndex: ({customUnitName, customUnitRateName, oldValue, newValue}: UpdatedPolicyCustomUnitRateIndexParams) => {
6439-
return `änderte den Index des ${customUnitName}-Tarifs "${customUnitRateName}" auf "${newValue}" ${oldValue ? `(zuvor "${oldValue}")` : ''}`;
6440-
},
64416437
updatedCustomUnitRateEnabled: ({customUnitName, customUnitRateName, newValue}: UpdatedPolicyCustomUnitRateEnabledParams) => {
6442-
return `${newValue ? 'aktiviert' : 'deaktiviert'} ${customUnitName}-Tarif "${customUnitRateName}"`;
6438+
return `${newValue ? 'aktiviert' : 'deaktiviert'} den ${customUnitName}-Satz „${customUnitRateName}`;
64436439
},
64446440
deleteCustomUnitRate: (customUnitName: string, rateName: string) => `hat den Preis „${rateName}“ für „${customUnitName}“ entfernt`,
64456441
addedReportField: (fieldType: string, fieldName?: string) => `${fieldType}-Berichtsfield „${fieldName}“ hinzugefügt`,

src/languages/en.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ import type {
178178
UpdatedPolicyCategoryParams,
179179
UpdatedPolicyCurrencyParams,
180180
UpdatedPolicyCustomUnitRateEnabledParams,
181-
UpdatedPolicyCustomUnitRateIndexParams,
182181
UpdatedPolicyCustomUnitRateParams,
183182
UpdatedPolicyCustomUnitTaxClaimablePercentageParams,
184183
UpdatedPolicyCustomUnitTaxRateExternalIDParams,
@@ -6306,11 +6305,8 @@ const translations = {
63066305
}
63076306
return `added a tax reclaimable portion of "${newValue}" to the distance rate "${customUnitRateName}`;
63086307
},
6309-
updatedCustomUnitRateIndex: ({customUnitName, customUnitRateName, oldValue, newValue}: UpdatedPolicyCustomUnitRateIndexParams) => {
6310-
return `changed the index of the ${customUnitName} rate "${customUnitRateName}" to "${newValue}" ${oldValue ? `(previously "${oldValue}")` : ''}`;
6311-
},
63126308
updatedCustomUnitRateEnabled: ({customUnitName, customUnitRateName, newValue}: UpdatedPolicyCustomUnitRateEnabledParams) => {
6313-
return `${newValue ? 'enabled' : 'disabled'} ${customUnitName} rate "${customUnitRateName}"`;
6309+
return `${newValue ? 'enabled' : 'disabled'} the ${customUnitName} rate "${customUnitRateName}"`;
63146310
},
63156311
deleteCustomUnitRate: (customUnitName: string, rateName: string) => `removed the "${customUnitName}" rate "${rateName}"`,
63166312
addedReportField: (fieldType: string, fieldName?: string) => `added ${fieldType} Report Field "${fieldName}"`,

src/languages/es.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6020,11 +6020,8 @@ ${amount} para ${merchant} - ${date}`,
60206020
}
60216021
return `añadió una parte recuperable de impuestos de "${newValue}" a la tasa por distancia "${customUnitRateName}`;
60226022
},
6023-
updatedCustomUnitRateIndex: ({customUnitName, customUnitRateName, oldValue, newValue}) => {
6024-
return `cambió el índice de la tarifa de ${customUnitName} "${customUnitRateName}" a "${newValue}" ${oldValue ? `(previamente "${oldValue}")` : ''}`;
6025-
},
60266023
updatedCustomUnitRateEnabled: ({customUnitName, customUnitRateName, newValue}) => {
6027-
return `${newValue ? 'habilitó' : 'deshabilitó'} la tarifa de ${customUnitName} "${customUnitRateName}"`;
6024+
return `${newValue ? 'habilitó' : 'deshabilitó'} la tasa de ${customUnitName} "${customUnitRateName}"`;
60286025
},
60296026
deleteCustomUnitRate: (customUnitName, rateName) => `eliminó la tasa "${rateName}" de "${customUnitName}"`,
60306027
addedReportField: (fieldType, fieldName) => `añadió el campo de informe ${fieldType} "${fieldName}"`,

src/languages/fr.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ import type {
190190
UpdatedPolicyCategoryParams,
191191
UpdatedPolicyCurrencyParams,
192192
UpdatedPolicyCustomUnitRateEnabledParams,
193-
UpdatedPolicyCustomUnitRateIndexParams,
194193
UpdatedPolicyCustomUnitRateParams,
195194
UpdatedPolicyCustomUnitTaxClaimablePercentageParams,
196195
UpdatedPolicyCustomUnitTaxRateExternalIDParams,
@@ -6444,11 +6443,8 @@ Exigez des informations de dépense comme les reçus et les descriptions, défin
64446443
}
64456444
return `a ajouté une partie de taxe récupérable de « ${newValue} » au tarif de distance « ${customUnitRateName}`;
64466445
},
6447-
updatedCustomUnitRateIndex: ({customUnitName, customUnitRateName, oldValue, newValue}: UpdatedPolicyCustomUnitRateIndexParams) => {
6448-
return `a modifié l’index du tarif ${customUnitName} "${customUnitRateName}" à "${newValue}" ${oldValue ? `(auparavant "${oldValue}")` : ''}`;
6449-
},
64506446
updatedCustomUnitRateEnabled: ({customUnitName, customUnitRateName, newValue}: UpdatedPolicyCustomUnitRateEnabledParams) => {
6451-
return `${newValue ? 'activé' : 'désactivé'} le tarif ${customUnitName} "${customUnitRateName}"`;
6447+
return `${newValue ? 'Activé' : 'Désactivé'} le taux de ${customUnitName} « ${customUnitRateName} »`;
64526448
},
64536449
deleteCustomUnitRate: (customUnitName: string, rateName: string) => `a supprimé le taux « ${customUnitName} » « ${rateName} »`,
64546450
addedReportField: (fieldType: string, fieldName?: string) => `a ajouté le champ de rapport ${fieldType} « ${fieldName} »`,

src/languages/it.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ import type {
190190
UpdatedPolicyCategoryParams,
191191
UpdatedPolicyCurrencyParams,
192192
UpdatedPolicyCustomUnitRateEnabledParams,
193-
UpdatedPolicyCustomUnitRateIndexParams,
194193
UpdatedPolicyCustomUnitRateParams,
195194
UpdatedPolicyCustomUnitTaxClaimablePercentageParams,
196195
UpdatedPolicyCustomUnitTaxRateExternalIDParams,
@@ -6418,11 +6417,8 @@ Richiedi dettagli di spesa come ricevute e descrizioni, imposta limiti e valori
64186417
}
64196418
return `ha aggiunto una parte rimborsabile di imposta di "${newValue}" alla tariffa per distanza "${customUnitRateName}"`;
64206419
},
6421-
updatedCustomUnitRateIndex: ({customUnitName, customUnitRateName, oldValue, newValue}: UpdatedPolicyCustomUnitRateIndexParams) => {
6422-
return `ha modificato l’indice della tariffa ${customUnitName} "${customUnitRateName}" a "${newValue}" ${oldValue ? `(precedentemente "${oldValue}")` : ''}`;
6423-
},
64246420
updatedCustomUnitRateEnabled: ({customUnitName, customUnitRateName, newValue}: UpdatedPolicyCustomUnitRateEnabledParams) => {
6425-
return `${newValue ? 'abilitato' : 'disabilitato'} la tariffa ${customUnitName} "${customUnitRateName}"`;
6421+
return `${newValue ? 'abilitato' : 'Disattivato'} il tasso ${customUnitName} "${customUnitRateName}"`;
64266422
},
64276423
deleteCustomUnitRate: (customUnitName: string, rateName: string) => `ha rimosso la tariffa "${rateName}" dell’unità personalizzata "${customUnitName}"`,
64286424
addedReportField: (fieldType: string, fieldName?: string) => `aggiunto campo report ${fieldType} "${fieldName}"`,

src/languages/ja.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ import type {
190190
UpdatedPolicyCategoryParams,
191191
UpdatedPolicyCurrencyParams,
192192
UpdatedPolicyCustomUnitRateEnabledParams,
193-
UpdatedPolicyCustomUnitRateIndexParams,
194193
UpdatedPolicyCustomUnitRateParams,
195194
UpdatedPolicyCustomUnitTaxClaimablePercentageParams,
196195
UpdatedPolicyCustomUnitTaxRateExternalIDParams,
@@ -6372,11 +6371,8 @@ ${reportName}
63726371
}
63736372
return `距離レート「${customUnitRateName}」に税還付可能分「${newValue}」を追加しました`;
63746373
},
6375-
updatedCustomUnitRateIndex: ({customUnitName, customUnitRateName, oldValue, newValue}: UpdatedPolicyCustomUnitRateIndexParams) => {
6376-
return `${customUnitName} のレート "${customUnitRateName}" のインデックスを "${newValue}" に変更しました ${oldValue ? `(以前は "${oldValue}")` : ''}`;
6377-
},
63786374
updatedCustomUnitRateEnabled: ({customUnitName, customUnitRateName, newValue}: UpdatedPolicyCustomUnitRateEnabledParams) => {
6379-
return `${newValue ? '有効化' : '無効化'} ${customUnitName} のレート "${customUnitRateName}"`;
6375+
return `${newValue ? '有効' : '無効'} ${customUnitName}レート「${customUnitRateName}`;
63806376
},
63816377
deleteCustomUnitRate: (customUnitName: string, rateName: string) => `「${customUnitName}」のレート「${rateName}」を削除しました`,
63826378
addedReportField: (fieldType: string, fieldName?: string) => `${fieldType} レポートフィールド「${fieldName}」を追加しました`,

src/languages/nl.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ import type {
190190
UpdatedPolicyCategoryParams,
191191
UpdatedPolicyCurrencyParams,
192192
UpdatedPolicyCustomUnitRateEnabledParams,
193-
UpdatedPolicyCustomUnitRateIndexParams,
194193
UpdatedPolicyCustomUnitRateParams,
195194
UpdatedPolicyCustomUnitTaxClaimablePercentageParams,
196195
UpdatedPolicyCustomUnitTaxRateExternalIDParams,
@@ -6405,11 +6404,8 @@ Vraag verplichte uitgavedetails zoals bonnetjes en beschrijvingen, stel limieten
64056404
}
64066405
return `heeft een terugvorderbaar belastingdeel van "${newValue}" toegevoegd aan het kilometertarief "${customUnitRateName}"`;
64076406
},
6408-
updatedCustomUnitRateIndex: ({customUnitName, customUnitRateName, oldValue, newValue}: UpdatedPolicyCustomUnitRateIndexParams) => {
6409-
return `heeft de index van het ${customUnitName}-tarief "${customUnitRateName}" gewijzigd naar "${newValue}" ${oldValue ? `(voorheen "${oldValue}")` : ''}`;
6410-
},
64116407
updatedCustomUnitRateEnabled: ({customUnitName, customUnitRateName, newValue}: UpdatedPolicyCustomUnitRateEnabledParams) => {
6412-
return `${newValue ? 'ingeschakeld' : 'uitgeschakeld'} ${customUnitName}-tarief "${customUnitRateName}"`;
6408+
return `${newValue ? 'Ingeschakeld' : 'Uitgeschakeld'} het ${customUnitName}-tarief "${customUnitRateName}"`;
64136409
},
64146410
deleteCustomUnitRate: (customUnitName: string, rateName: string) => `heeft het tarief "${rateName}" met de eenheid "${customUnitName}" verwijderd`,
64156411
addedReportField: (fieldType: string, fieldName?: string) => `rapportveld ${fieldType} "${fieldName}" toegevoegd`,

src/languages/params.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ type UpdatedPolicyCustomUnitTaxRateExternalIDParams = {customUnitRateName: strin
300300

301301
type UpdatedPolicyCustomUnitTaxClaimablePercentageParams = {customUnitRateName: string; newValue: number; oldValue?: number};
302302

303-
type UpdatedPolicyCustomUnitRateIndexParams = {customUnitName: string; customUnitRateName: string; oldValue?: number; newValue: number};
304-
305303
type UpdatedPolicyCustomUnitRateEnabledParams = {customUnitName: string; customUnitRateName: string; oldValue: boolean; newValue: boolean};
306304

307305
type UpdatedPolicyReportFieldDefaultValueParams = {fieldName?: string; defaultValue?: string};
@@ -995,6 +993,5 @@ export type {
995993
ReportFieldParams,
996994
FocusModeUpdateParams,
997995
RoutedDueToDEWParams,
998-
UpdatedPolicyCustomUnitRateIndexParams,
999996
UpdatedPolicyCustomUnitRateEnabledParams,
1000997
};

src/languages/pl.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ import type {
190190
UpdatedPolicyCategoryParams,
191191
UpdatedPolicyCurrencyParams,
192192
UpdatedPolicyCustomUnitRateEnabledParams,
193-
UpdatedPolicyCustomUnitRateIndexParams,
194193
UpdatedPolicyCustomUnitRateParams,
195194
UpdatedPolicyCustomUnitTaxClaimablePercentageParams,
196195
UpdatedPolicyCustomUnitTaxRateExternalIDParams,
@@ -6396,11 +6395,8 @@ Wymagaj szczegółów wydatków, takich jak paragony i opisy, ustawiaj limity i
63966395
}
63976396
return `dodał(a) odzyskiwalną część podatku „${newValue}” do stawki za dystans „${customUnitRateName}`;
63986397
},
6399-
updatedCustomUnitRateIndex: ({customUnitName, customUnitRateName, oldValue, newValue}: UpdatedPolicyCustomUnitRateIndexParams) => {
6400-
return `zmienił indeks stawki ${customUnitName} "${customUnitRateName}" na "${newValue}" ${oldValue ? `(wcześniej "${oldValue}")` : ''}`;
6401-
},
64026398
updatedCustomUnitRateEnabled: ({customUnitName, customUnitRateName, newValue}: UpdatedPolicyCustomUnitRateEnabledParams) => {
6403-
return `${newValue ? 'włączony' : 'wyłączony'} stawka ${customUnitName} "${customUnitRateName}"`;
6399+
return `${newValue ? 'włączone' : 'Wyłączone'} stawka jednostki ${customUnitName} ${customUnitRateName}`;
64046400
},
64056401
deleteCustomUnitRate: (customUnitName: string, rateName: string) => `usunął stawkę „${rateName}” dla „${customUnitName}”`,
64066402
addedReportField: (fieldType: string, fieldName?: string) => `dodano pole raportu ${fieldType} „${fieldName}”`,

src/languages/pt-BR.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ import type {
190190
UpdatedPolicyCategoryParams,
191191
UpdatedPolicyCurrencyParams,
192192
UpdatedPolicyCustomUnitRateEnabledParams,
193-
UpdatedPolicyCustomUnitRateIndexParams,
194193
UpdatedPolicyCustomUnitRateParams,
195194
UpdatedPolicyCustomUnitTaxClaimablePercentageParams,
196195
UpdatedPolicyCustomUnitTaxRateExternalIDParams,
@@ -6397,11 +6396,8 @@ Exija detalhes de despesas como recibos e descrições, defina limites e padrõe
63976396
}
63986397
return `adicionou uma parte de imposto recuperável de "${newValue}" à taxa de distância "${customUnitRateName}"`;
63996398
},
6400-
updatedCustomUnitRateIndex: ({customUnitName, customUnitRateName, oldValue, newValue}: UpdatedPolicyCustomUnitRateIndexParams) => {
6401-
return `alterou o índice da tarifa ${customUnitName} "${customUnitRateName}" para "${newValue}" ${oldValue ? `(anteriormente "${oldValue}")` : ''}`;
6402-
},
64036399
updatedCustomUnitRateEnabled: ({customUnitName, customUnitRateName, newValue}: UpdatedPolicyCustomUnitRateEnabledParams) => {
6404-
return `${newValue ? 'habilitado' : 'desabilitado'} tarifa ${customUnitName} "${customUnitRateName}"`;
6400+
return `${newValue ? 'ativado' : 'Desativado'} a taxa de ${customUnitName} "${customUnitRateName}"`;
64056401
},
64066402
deleteCustomUnitRate: (customUnitName: string, rateName: string) => `removeu a taxa "${customUnitName}" "${rateName}"`,
64076403
addedReportField: (fieldType: string, fieldName?: string) => `${fieldType} de relatório "${fieldName}" adicionado`,

0 commit comments

Comments
 (0)