Merged in feat/syncDefaultMessage (pull request #3022)

Sync defaultMessage from lokalise

* Enhance translation sync functionality and tests

- Added logging for found component files during sync.
- Introduced tests for handling complex components with replacements.
- Updated regex in syncIntlFormatMessage to support optional second arguments.
- Removed unused test files.

* feat(syncDefaultMessage): add script for syncing default message with lokalise

* feat(syncDefaultMessage): add script for syncing default message with lokalise


Approved-by: Matilda Landström
This commit is contained in:
Joakim Jäderberg
2025-10-30 08:38:50 +00:00
parent 3962ecd858
commit bf6ed7778e
48 changed files with 316 additions and 197 deletions

View File

@@ -235,7 +235,7 @@ export default function GuestDetails({
<span>
{intl.formatMessage({
id: "myStay.guestDetails.modifyGuestDetails",
defaultMessage: "Modify guest details",
defaultMessage: "Edit guest details",
})}
</span>
</Typography>
@@ -265,7 +265,7 @@ export default function GuestDetails({
<span>
{intl.formatMessage({
id: "myStay.guestDetails.modifyGuestDetails",
defaultMessage: "Modify guest details",
defaultMessage: "Edit guest details",
})}
</span>
</Typography>
@@ -280,7 +280,7 @@ export default function GuestDetails({
<Dialog
aria-label={intl.formatMessage({
id: "myStay.guestDetails.modifyGuestDetails",
defaultMessage: "Modify guest details",
defaultMessage: "Edit guest details",
})}
>
{({ close }) => (
@@ -288,7 +288,7 @@ export default function GuestDetails({
<ModalContentWithActions
title={intl.formatMessage({
id: "myStay.guestDetails.modifyGuestDetails",
defaultMessage: "Modify guest details",
defaultMessage: "Edit guest details",
})}
onClose={() => setIsModifyGuestDetailsOpen(false)}
content={

View File

@@ -120,7 +120,7 @@ export default function Form() {
{
id: "myStay.gla.termsAndConditionsMessage",
defaultMessage:
"I accept the terms for this stay and the general <termsAndConditionsLink>Booking & Cancellation Terms</termsAndConditionsLink>, and understand Scandic will process my personal data for this stay in accordance with <privacyPolicyLink>Scandic's Privacy Policy</privacyPolicyLink>. ",
"I accept the terms for this stay and the general <termsAndConditionsLink>Booking & Cancellation Terms</termsAndConditionsLink>, and understand Scandic will process my personal data for this stay in accordance with <privacyPolicyLink>Scandic's Privacy Policy</privacyPolicyLink>.",
},
{
termsAndConditionsLink: (str) => (

View File

@@ -301,7 +301,7 @@ export default function Room({ booking, roomNr, user }: RoomProps) {
<p>
{intl.formatMessage({
id: "myStay.modifyBy",
defaultMessage: "Modify By",
defaultMessage: "Modify by",
})}
</p>
</Typography>