From 62246755364f5320e7d6a45e9d7200114323c447 Mon Sep 17 00:00:00 2001 From: jeffrey Date: Tue, 10 Mar 2026 16:01:51 +0000 Subject: [PATCH] fix: replace remaining Swedish strings --- src/blocks/LMContactFormBlock/Component.tsx | 12 ++++++------ src/blocks/LMContactFormBlock/config.ts | 10 +++++----- src/blocks/LMCtaSideImageBlock/config.ts | 2 +- src/blocks/LMNewsletterBlock/Component.tsx | 12 ++++++------ src/blocks/LMNewsletterBlock/config.ts | 2 +- src/blocks/LMQuizBlock/config.ts | 2 +- src/blocks/LMServiceCardsBlock/config.ts | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/blocks/LMContactFormBlock/Component.tsx b/src/blocks/LMContactFormBlock/Component.tsx index d416300..6ae81d3 100644 --- a/src/blocks/LMContactFormBlock/Component.tsx +++ b/src/blocks/LMContactFormBlock/Component.tsx @@ -29,7 +29,7 @@ export const LMContactFormBlockComponent: React.FC = ({ heading, description, form: formRelation, - submitText = 'Skicka förfrågan', + submitText = 'Send message', privacyText, privacyLinkText, privacyLinkUrl, @@ -287,9 +287,9 @@ export const LMContactFormBlockComponent: React.FC = ({ {/* Priority #6: Use fluid token instead of hardcoded sizes */} -

Tack!

+

Thank you!

- Vi har tagit emot din förfrågan och återkommer så snart vi kan. + We've received your inquiry and will get back to you soon.

@@ -333,13 +333,13 @@ export const LMContactFormBlockComponent: React.FC = ({ onDark={dark} disabled={status === 'sending'} > - {status === 'sending' ? 'Skickar...' : submitText} + {status === 'sending' ? 'Sending...' : submitText} {status === 'error' && (

- Något gick fel. Försök igen eller kontakta oss direkt. + Something went wrong. Please try again or contact us directly.

)} @@ -348,7 +348,7 @@ export const LMContactFormBlockComponent: React.FC = ({ {privacyText}{' '} {privacyLinkText && privacyLinkUrl && ( <> - Läs mer i vår{' '} + Read more in our{' '} {privacyLinkText} diff --git a/src/blocks/LMContactFormBlock/config.ts b/src/blocks/LMContactFormBlock/config.ts index b318139..ea00845 100644 --- a/src/blocks/LMContactFormBlock/config.ts +++ b/src/blocks/LMContactFormBlock/config.ts @@ -42,8 +42,8 @@ export const LMContactFormBlock: Block = { name: 'submitText', type: 'text', localized: true, - label: 'Skicka-knapp text', - defaultValue: 'Skicka förfrågan', + label: 'Submit button text', + defaultValue: 'Send message', }, // --- Layout --- @@ -95,7 +95,7 @@ export const LMContactFormBlock: Block = { localized: true, label: 'Integritetstext', defaultValue: - 'Vi använder din kontaktinformation för att svara på din förfrågan och dela detaljer om våra produkter och tjänster. Du kan när som helst avregistrera dig.', + 'We use your contact information to respond to your inquiry and share details about our products and services. You can unsubscribe at any time.', }, { type: 'row', @@ -125,7 +125,7 @@ export const LMContactFormBlock: Block = { type: 'group', label: 'Extern API-integration (valfri)', admin: { - description: 'Skicka formulärdata till ett externt system (t.ex. Lime CRM) utöver Payload', + description: 'Send form data to an external system (e.g. CRM) in addition to Payload', }, fields: [ { @@ -148,7 +148,7 @@ export const LMContactFormBlock: Block = { type: 'text', label: 'Auth-token (Bearer)', admin: { - description: 'Skickas som Authorization: Bearer {token}', + description: 'Sent as Authorization: Bearer {token}', condition: (_, siblingData) => Boolean(siblingData?.enabled), }, }, diff --git a/src/blocks/LMCtaSideImageBlock/config.ts b/src/blocks/LMCtaSideImageBlock/config.ts index d0320fd..a7f6081 100644 --- a/src/blocks/LMCtaSideImageBlock/config.ts +++ b/src/blocks/LMCtaSideImageBlock/config.ts @@ -30,7 +30,7 @@ export const LMCtaSideImageBlock: Block = { type: 'text', localized: true, label: 'CTA-knapp text', - defaultValue: 'Läs mer', + defaultValue: 'Read more', }, { name: 'ctaLink', diff --git a/src/blocks/LMNewsletterBlock/Component.tsx b/src/blocks/LMNewsletterBlock/Component.tsx index 94705c9..9c44a9b 100644 --- a/src/blocks/LMNewsletterBlock/Component.tsx +++ b/src/blocks/LMNewsletterBlock/Component.tsx @@ -19,7 +19,7 @@ export const LMNewsletterBlockComponent: React.FC = ({ description, submitEndpoint, buttonText = 'Prenumerera', - successMessage = 'Tack! Du är nu prenumerant.', + successMessage = 'Thank you! You are now subscribed.', consentText, privacyPolicyLink = '/integritetspolicy', collectName = false, @@ -79,7 +79,7 @@ export const LMNewsletterBlockComponent: React.FC = ({ setConsented(false) } catch (err) { setStatus('error') - setErrorMsg('Något gick fel. Försök igen senare.') + setErrorMsg('Something went wrong. Please try again later.') } }, [email, name, company, consented, submitEndpoint, collectName, collectCompany], @@ -145,7 +145,7 @@ export const LMNewsletterBlockComponent: React.FC = ({ aria-describedby={isDisabled ? 'newsletter-disabled-reason' : undefined} className="fd-btn-primary w-full mt-4 disabled:opacity-50 disabled:cursor-not-allowed" > - {status === 'loading' ? 'Skickar...' : buttonText} + {status === 'loading' ? 'Sending...' : buttonText} {isDisabled && disabledReason && (

{disabledReason}

@@ -188,7 +188,7 @@ export const LMNewsletterBlockComponent: React.FC = ({ aria-describedby={isDisabled ? 'newsletter-inline-disabled-reason' : undefined} className="fd-btn-primary whitespace-nowrap disabled:opacity-50 disabled:cursor-not-allowed" > - {status === 'loading' ? 'Skickar...' : buttonText} + {status === 'loading' ? 'Sending...' : buttonText} ) : ( @@ -201,7 +201,7 @@ export const LMNewsletterBlockComponent: React.FC = ({ aria-describedby={isDisabled ? 'newsletter-stacked-disabled-reason' : undefined} className="fd-btn-primary w-full disabled:opacity-50 disabled:cursor-not-allowed" > - {status === 'loading' ? 'Skickar...' : buttonText} + {status === 'loading' ? 'Sending...' : buttonText} )} @@ -258,7 +258,7 @@ const ConsentCheckbox: React.FC = ({ rel="noopener noreferrer" className={`underline ${isDark ? 'text-fd-yellow hover:text-fd-yellow/80' : 'text-fd-navy hover:text-fd-navy/70 dark:text-fd-yellow dark:hover:text-fd-yellow/80'}`} > - Läs mer + Read more )} diff --git a/src/blocks/LMNewsletterBlock/config.ts b/src/blocks/LMNewsletterBlock/config.ts index 83bfb90..ae3d6bd 100644 --- a/src/blocks/LMNewsletterBlock/config.ts +++ b/src/blocks/LMNewsletterBlock/config.ts @@ -48,7 +48,7 @@ export const LMNewsletterBlock: Block = { type: 'text', localized: true, label: 'Bekräftelsemeddelande', - defaultValue: 'Tack! Du är nu prenumerant.', + defaultValue: 'Thank you! You are now subscribed.', }, { name: 'consentText', diff --git a/src/blocks/LMQuizBlock/config.ts b/src/blocks/LMQuizBlock/config.ts index 5333f13..812427e 100644 --- a/src/blocks/LMQuizBlock/config.ts +++ b/src/blocks/LMQuizBlock/config.ts @@ -74,7 +74,7 @@ export const LMQuizBlock: Block = { type: 'text', localized: true, label: 'CTA-knapp text', - defaultValue: 'Läs mer', + defaultValue: 'Read more', }, { name: 'ctaLink', diff --git a/src/blocks/LMServiceCardsBlock/config.ts b/src/blocks/LMServiceCardsBlock/config.ts index 130355b..58b7c91 100644 --- a/src/blocks/LMServiceCardsBlock/config.ts +++ b/src/blocks/LMServiceCardsBlock/config.ts @@ -100,7 +100,7 @@ export const LMServiceCardsBlock: Block = { type: 'text', localized: true, label: 'Länktext', - defaultValue: 'Läs mer', + defaultValue: 'Read more', }, { name: 'readMoreLink',