Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/AddressForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function AddressForm({

const zipSampleFormat = (country && (CONST.COUNTRY_ZIP_REGEX_DATA[country] as CountryZipRegex)?.samples) ?? '';

const zipFormat = translate('common.zipCodeExampleFormat', {zipSampleFormat});
const zipFormat = translate('common.zipCodeExampleFormat', zipSampleFormat);

const isUSAForm = country === CONST.COUNTRY.US;

Expand Down
2 changes: 1 addition & 1 deletion src/components/OnboardingMergingAccountBlockedView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function OnboardingMergingAccountBlockedView({workEmail, isVsb}: OnboardingMergi
return translate(onboardingErrorMessage);
}
// Fallback to generic error message
return translate('onboarding.mergeBlockScreen.subtitle', {workEmail});
return translate('onboarding.mergeBlockScreen.subtitle', workEmail);
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ function TransactionPreviewContent({
<View style={[styles.flexRow, styles.justifyContentEnd]}>
{!!splitShare && (
<Text style={[isDeleted && styles.lineThrough, styles.textLabel, styles.colorMuted, styles.amountSplitPadding]}>
{translate('iou.yourSplit', {amount: convertToDisplayString(splitShare, requestCurrency)})}
{translate('iou.yourSplit', convertToDisplayString(splitShare, requestCurrency))}
</Text>
)}
</View>
Expand Down
6 changes: 3 additions & 3 deletions src/components/ReportWelcomeText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) {
} else if (isInvoiceRoom) {
welcomeHeroText = translate('reportActionsView.sayHello');
} else if (isChatRoom) {
welcomeHeroText = translate('reportActionsView.welcomeToRoom', {roomName: reportName});
welcomeHeroText = translate('reportActionsView.welcomeToRoom', reportName);
} else if (isSelfDM) {
welcomeHeroText = translate('reportActionsView.yourSpace');
} else if (isSystemChat) {
welcomeHeroText = reportName;
} else if (isPolicyExpenseChat) {
welcomeHeroText = translate('reportActionsView.welcomeToRoom', {roomName: policyName});
welcomeHeroText = translate('reportActionsView.welcomeToRoom', policyName);
}

// If we are the only participant (e.g. solo group chat) then keep the current user personal details so the welcome message does not show up empty.
Expand Down Expand Up @@ -139,7 +139,7 @@ function ReportWelcomeText({report, policy}: ReportWelcomeTextProps) {
{isSelfDM && (
<Text>
<Text>{welcomeMessage.messageText}</Text>
{shouldShowUsePlusButtonText && <Text>{translate('reportActionsView.usePlusButton', {additionalText})}</Text>}
{shouldShowUsePlusButtonText && <Text>{translate('reportActionsView.usePlusButton', additionalText)}</Text>}
</Text>
)}
{isSystemChat && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function SupportalPermissionDeniedModalProvider({children}: React.PropsWithChild
const isVisible = !!payload;

const title = useMemo(() => translate('supportalNoAccess.title'), [translate]);
const prompt = useMemo(() => translate('supportalNoAccess.descriptionWithCommand', {command: payload?.command}), [translate, payload?.command]);
const prompt = useMemo(() => translate('supportalNoAccess.descriptionWithCommand', payload?.command), [translate, payload?.command]);

const close = useCallback(() => {
// Clear the flag so it doesn't re-open
Expand Down
2 changes: 1 addition & 1 deletion src/components/UploadFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function UploadFile({

if (totalFilesSizeLimit) {
if (totalSize > totalFilesSizeLimit) {
setError(translate('attachmentPicker.sizeExceededWithValue', {maxUploadSizeInMB: totalFilesSizeLimit / (1024 * 1024)}));
setError(translate('attachmentPicker.sizeExceededWithValue', totalFilesSizeLimit / (1024 * 1024)));
return;
}
}
Expand Down
153 changes: 56 additions & 97 deletions src/languages/de.ts

Large diffs are not rendered by default.

150 changes: 56 additions & 94 deletions src/languages/en.ts

Large diffs are not rendered by default.

115 changes: 57 additions & 58 deletions src/languages/es.ts

Large diffs are not rendered by default.

152 changes: 56 additions & 96 deletions src/languages/fr.ts

Large diffs are not rendered by default.

152 changes: 56 additions & 96 deletions src/languages/it.ts

Large diffs are not rendered by default.

150 changes: 56 additions & 94 deletions src/languages/ja.ts

Large diffs are not rendered by default.

153 changes: 56 additions & 97 deletions src/languages/nl.ts

Large diffs are not rendered by default.

152 changes: 6 additions & 146 deletions src/languages/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ type MultifactorAuthenticationTranslationParams = {
status?: string;
};

type ZipCodeExampleFormatParams = {
zipSampleFormat: string;
};

type WelcomeEnterMagicCodeParams = {
login: string;
};

type EditActionParams = {
action: OnyxInputOrEntry<ReportAction>;
};
Expand All @@ -32,18 +24,6 @@ type DeleteConfirmationParams = {
action: OnyxInputOrEntry<ReportAction>;
};

type BeginningOfChatHistoryAnnounceRoomPartTwo = {
workspaceName: string;
};

type WelcomeToRoomParams = {
roomName: string;
};

type UsePlusButtonParams = {
additionalText: string;
};

type ReportArchiveReasonsClosedParams = {
displayName: string;
};
Expand All @@ -53,14 +33,14 @@ type ReportArchiveReasonsMergedParams = {
oldDisplayName: string;
};

type ReportArchiveReasonsRemovedFromPolicyParams = {
displayName: string;
type ReportArchiveReasonsInvoiceReceiverPolicyDeletedParams = {
policyName: string;
shouldUseYou?: boolean;
};

type ReportArchiveReasonsInvoiceReceiverPolicyDeletedParams = {
type ReportArchiveReasonsRemovedFromPolicyParams = {
displayName: string;
policyName: string;
shouldUseYou?: boolean;
};

type CreatedReportForUnapprovedTransactionsParams = {
Expand All @@ -70,26 +50,14 @@ type CreatedReportForUnapprovedTransactionsParams = {
isReportDeleted: boolean;
};

type WorkspacesListRouteParams = {
workspacesListRoute: string;
};

type WorkspaceRouteParams = {
workspaceRoute: string;
};

type UserSplitParams = {amount: string};

type PaidElsewhereParams = {payer?: string; comment?: string};

type WaitingOnBankAccountParams = {submitterDisplayName: string};

type MovedFromPersonalSpaceParams = {workspaceName?: string; reportName?: string};

type SizeExceededParams = {maxUploadSizeInMB: number};

type ResolutionConstraintsParams = {minHeightInPx: number; minWidthInPx: number; maxHeightInPx: number; maxWidthInPx: number};

type SizeExceededParams = {maxUploadSizeInMB: number};

type NotAllowedExtensionParams = {allowedExtensions: string[]};

type WeSentYouMagicSignInLinkParams = {login: string; loginType: string};
Expand All @@ -104,32 +72,12 @@ type UpdatedTheRequestParams = {valueName: string; newValueToDisplay: string; ol

type UpdatedTheDistanceMerchantParams = {translatedChangedField: string; newMerchant: string; oldMerchant: string; newAmountToDisplay: string; oldAmountToDisplay: string};

type WalletProgramParams = {walletProgram: string};

type ViolationsCashExpenseWithNoReceiptParams = {formattedLimit?: string} | undefined;

type ViolationsConversionSurchargeParams = {surcharge: number};

type ViolationsInvoiceMarkupParams = {invoiceMarkup: number};

type ViolationsMaxAgeParams = {maxAge: number};

type ViolationsMissingTagParams = {tagName?: string} | undefined;

type ViolationsModifiedAmountParams = {type?: ViolationDataType; displayPercentVariance?: number};

type ViolationsOverAutoApprovalLimitParams = {formattedLimit: string};

type ViolationsOverCategoryLimitParams = {formattedLimit: string};

type ViolationsOverLimitParams = {formattedLimit: string};

type ViolationsPerDayLimitParams = {formattedLimit: string};

type ViolationsReceiptRequiredParams = {formattedLimit?: string; category?: string};

type ViolationsCustomRulesParams = {message: string};

type ViolationsRterParams = {
brokenBankConnection: boolean;
isAdmin: boolean;
Expand Down Expand Up @@ -164,14 +112,8 @@ type UpdatedPolicyTagNameParams = {oldName: string; newName: string; tagListName

type UpdatedPolicyTagFieldParams = {oldValue?: string; newValue: string; tagName: string; tagListName: string; updatedField: string};

type UpdatedPolicyTagListParams = {tagListName: string};

type UpdatedPolicyTagListRequiredParams = {tagListsName: string; isRequired: boolean};

type UpdatePolicyCustomUnitTaxEnabledParams = {newValue: boolean};

type ImportPolicyCustomUnitRatesParams = {customUnitName: string};

type UpdatePolicyCustomUnitDefaultCategoryParams = {customUnitName: string; newValue?: string; oldValue?: string};

type UpdatePolicyCustomUnitParams = {oldValue: string; newValue: string; customUnitName: string; updatedField: string};
Expand All @@ -190,12 +132,8 @@ type UpdatedPolicyPreventSelfApprovalParams = {oldValue: string; newValue: strin

type UpdatedPolicyOwnershipParams = {oldOwnerEmail: string; oldOwnerName: string; policyName: string};

type UpdatedPolicyTimeEnabledParams = {enabled?: boolean};

type UpdatedPolicyTimeRateParams = {newRate?: string; oldRate?: string};

type UpdatedPolicyAutoHarvestingParams = {enabled: boolean};

type UpdatedPolicyBudgetNotificationParams = {
budgetAmount: string;
budgetFrequency: string;
Expand All @@ -216,8 +154,6 @@ type UpdatedPolicyDefaultTitleParams = {newDefaultTitle: string; oldDefaultTitle

type UpdatedPolicyManualApprovalThresholdParams = {oldLimit: string; newLimit: string};

type UpdatedPolicyReimbursementEnabledParams = {enabled: boolean};

type UpdatedPolicyCustomTaxNameParams = {oldName: string; newName: string};

type UpdatedPolicyCurrencyDefaultTaxParams = {oldName: string; newName: string};
Expand Down Expand Up @@ -292,20 +228,10 @@ type DisconnectPromptParams = {currentIntegration?: ConnectionName} | undefined;

type DisconnectTitleParams = {integration?: ConnectionName} | undefined;

type AmountWithCurrencyParams = {amountWithCurrency: string};

type LowerUpperParams = {lower: string; upper: string};

type UpdatedPolicyCategoriesParams = {count: number};

type WorkspaceMembersCountParams = {count: number};

type WorkspaceOwnerWillNeedToAddOrUpdatePaymentCardParams = {workspaceOwnerName: string};

type YourPlanPriceParams = {lower: string; upper: string};

type YourPlanPriceValueParams = {price: string};

type ExportIntegrationSelectedParams = {connectionName: ConnectionName};

type IntacctMappingTitleParams = {mappingName: SageIntacctMappingName};
Expand All @@ -314,8 +240,6 @@ type SyncStageNameConnectionsParams = {stage: PolicyConnectionSyncStage};

type DelegateRoleParams = {role: DelegateRole};

type VacationDelegateParams = {nameOrEmail: string};

type RemovedFromApprovalWorkflowParams = {
submittersNames: string[];
};
Expand All @@ -338,14 +262,6 @@ type WorkspaceYouMayJoin = {
email: string;
};

type WorkEmailResendCodeParams = {
workEmail: string | undefined;
};

type WorkEmailMergingBlockedParams = {
workEmail: string | undefined;
};

type WorkspaceMemberList = {
employeeCount: number;
policyOwner: string;
Expand All @@ -356,29 +272,11 @@ type WorkspaceLockedPlanTypeParams = {
annualSubscriptionEndDate: string;
};

type CustomUnitRateParams = {
rate: number;
};

type WorkspaceUpgradeNoteParams = {
subscriptionLink: string;
};

type WorkflowSettingsParam = {workflowSettingLink: string};

type WorkspaceShareNoteParams = {
adminsRoomLink: string;
};

type UpgradeSuccessMessageParams = {
policyName: string;
subscriptionLink: string;
};

type WalletAgreementParams = {
walletAgreementUrl: string;
};

type NextStepParams = {
actor: string;
actorType: ValueOf<typeof CONST.NEXT_STEP.ACTOR_TYPE>;
Expand All @@ -397,17 +295,12 @@ export type {
InvalidValueParams,
RemovedFromApprovalWorkflowParams,
DelegateRoleParams,
VacationDelegateParams,
SyncStageNameConnectionsParams,
IntacctMappingTitleParams,
ExportIntegrationSelectedParams,
YourPlanPriceParams,
WorkspaceOwnerWillNeedToAddOrUpdatePaymentCardParams,
UpdatedPolicyCategoriesParams,
AmountWithCurrencyParams,
LowerUpperParams,
LogSizeAndDateParams,
BeginningOfChatHistoryAnnounceRoomPartTwo,
DeleteActionParams,
DeleteConfirmationParams,
EditActionParams,
Expand All @@ -426,31 +319,15 @@ export type {
StepCounterParams,
UpdatedTheDistanceMerchantParams,
UpdatedTheRequestParams,
UsePlusButtonParams,
UserIsAlreadyMemberParams,
UserSplitParams,
ViolationsCashExpenseWithNoReceiptParams,
ViolationsConversionSurchargeParams,
ViolationsInvoiceMarkupParams,
ViolationsMaxAgeParams,
ViolationsMissingTagParams,
ViolationsModifiedAmountParams,
ViolationsOverAutoApprovalLimitParams,
ViolationsOverCategoryLimitParams,
ViolationsOverLimitParams,
ViolationsPerDayLimitParams,
ViolationsReceiptRequiredParams,
ViolationsCustomRulesParams,
ViolationsRterParams,
ViolationsTagOutOfPolicyParams,
ViolationsProhibitedExpenseParams,
ViolationsTaxOutOfPolicyParams,
WaitingOnBankAccountParams,
WalletProgramParams,
WeSentYouMagicSignInLinkParams,
WelcomeEnterMagicCodeParams,
WelcomeToRoomParams,
ZipCodeExampleFormatParams,
ChangeFieldParams,
ExportedToIntegrationParams,
IntegrationsMessageParams,
Expand All @@ -468,50 +345,33 @@ export type {
WorkspaceYouMayJoin,
WorkspaceMemberList,
WorkspaceLockedPlanTypeParams,
CustomUnitRateParams,
UpdatedPolicyTagListParams,
UpdatedPolicyTagListRequiredParams,
UpdatedPolicyPreventSelfApprovalParams,
UpdatedPolicyTimeEnabledParams,
UpdatedPolicyTimeRateParams,
WorkEmailResendCodeParams,
WorkEmailMergingBlockedParams,
UpdatedPolicyTagParams,
UpdatedPolicyTaxParams,
UpdatedPolicyTagNameParams,
UpdatedPolicyTagFieldParams,
UpdatedPolicyReportFieldDefaultValueParams,
RemovedPolicyCustomUnitSubRateParams,
UpdatedPolicyCustomUnitSubRateParams,
YourPlanPriceValueParams,
AddedOrDeletedPolicyReportFieldParams,
UpdatedPolicyManualApprovalThresholdParams,
UpdatedPolicyReimbursementEnabledParams,
UpdatedPolicyCustomTaxNameParams,
UpdatedPolicyCurrencyDefaultTaxParams,
UpdatedPolicyForeignCurrencyDefaultTaxParams,
UpdatedPolicyReimburserParams,
UpdatePolicyCustomUnitTaxEnabledParams,
ImportPolicyCustomUnitRatesParams,
UpdatePolicyCustomUnitDefaultCategoryParams,
UpdatePolicyCustomUnitParams,
UpdatedPolicyApprovalRuleParams,
UpdatedPolicyCategoryMaxAmountNoReceiptParams,
WorkspaceMembersCountParams,
WorkspacesListRouteParams,
WorkspaceRouteParams,
AddBudgetParams,
UpdatedBudgetParams,
DeleteBudgetParams,
AddOrDeletePolicyCustomUnitRateParams,
WorkspaceUpgradeNoteParams,
WorkflowSettingsParam,
WorkspaceShareNoteParams,
UpgradeSuccessMessageParams,
WalletAgreementParams,
NextStepParams,
UpdatedPolicyOwnershipParams,
UpdatedPolicyAutoHarvestingParams,
UpdatedPolicyBudgetNotificationParams,
UpdatedPolicyReimbursementChoiceParams,
UpdatedPolicyDefaultTitleParams,
Expand Down
Loading
Loading