fix: replace remaining Swedish strings

This commit is contained in:
jeffrey 2026-03-10 16:01:51 +00:00
parent f6778a625e
commit 6224675536
7 changed files with 21 additions and 21 deletions

View File

@ -29,7 +29,7 @@ export const LMContactFormBlockComponent: React.FC<LMContactFormBlockProps> = ({
heading, heading,
description, description,
form: formRelation, form: formRelation,
submitText = 'Skicka förfrågan', submitText = 'Send message',
privacyText, privacyText,
privacyLinkText, privacyLinkText,
privacyLinkUrl, privacyLinkUrl,
@ -287,9 +287,9 @@ export const LMContactFormBlockComponent: React.FC<LMContactFormBlockProps> = ({
</svg> </svg>
</div> </div>
{/* Priority #6: Use fluid token instead of hardcoded sizes */} {/* Priority #6: Use fluid token instead of hardcoded sizes */}
<h2 className={`font-joey-heavy text-fd-h1 mb-4 ${headingColor}`}>Tack!</h2> <h2 className={`font-joey-heavy text-fd-h1 mb-4 ${headingColor}`}>Thank you!</h2>
<p className={`font-joey text-lg ${bodyColor}`}> <p className={`font-joey text-lg ${bodyColor}`}>
Vi har tagit emot din förfrågan och återkommer snart vi kan. We've received your inquiry and will get back to you soon.
</p> </p>
</div> </div>
</section> </section>
@ -333,13 +333,13 @@ export const LMContactFormBlockComponent: React.FC<LMContactFormBlockProps> = ({
onDark={dark} onDark={dark}
disabled={status === 'sending'} disabled={status === 'sending'}
> >
{status === 'sending' ? 'Skickar...' : submitText} {status === 'sending' ? 'Sending...' : submitText}
</LMButton> </LMButton>
</div> </div>
{status === 'error' && ( {status === 'error' && (
<p className={`font-joey text-sm ${errorColor}`}> <p className={`font-joey text-sm ${errorColor}`}>
Något gick fel. Försök igen eller kontakta oss direkt. Something went wrong. Please try again or contact us directly.
</p> </p>
)} )}
@ -348,7 +348,7 @@ export const LMContactFormBlockComponent: React.FC<LMContactFormBlockProps> = ({
{privacyText}{' '} {privacyText}{' '}
{privacyLinkText && privacyLinkUrl && ( {privacyLinkText && privacyLinkUrl && (
<> <>
Läs mer i r{' '} Read more in our{' '}
<a href={privacyLinkUrl} className={linkColor}> <a href={privacyLinkUrl} className={linkColor}>
{privacyLinkText} {privacyLinkText}
</a> </a>

View File

@ -42,8 +42,8 @@ export const LMContactFormBlock: Block = {
name: 'submitText', name: 'submitText',
type: 'text', type: 'text',
localized: true, localized: true,
label: 'Skicka-knapp text', label: 'Submit button text',
defaultValue: 'Skicka förfrågan', defaultValue: 'Send message',
}, },
// --- Layout --- // --- Layout ---
@ -95,7 +95,7 @@ export const LMContactFormBlock: Block = {
localized: true, localized: true,
label: 'Integritetstext', label: 'Integritetstext',
defaultValue: 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', type: 'row',
@ -125,7 +125,7 @@ export const LMContactFormBlock: Block = {
type: 'group', type: 'group',
label: 'Extern API-integration (valfri)', label: 'Extern API-integration (valfri)',
admin: { 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: [ fields: [
{ {
@ -148,7 +148,7 @@ export const LMContactFormBlock: Block = {
type: 'text', type: 'text',
label: 'Auth-token (Bearer)', label: 'Auth-token (Bearer)',
admin: { admin: {
description: 'Skickas som Authorization: Bearer {token}', description: 'Sent as Authorization: Bearer {token}',
condition: (_, siblingData) => Boolean(siblingData?.enabled), condition: (_, siblingData) => Boolean(siblingData?.enabled),
}, },
}, },

View File

@ -30,7 +30,7 @@ export const LMCtaSideImageBlock: Block = {
type: 'text', type: 'text',
localized: true, localized: true,
label: 'CTA-knapp text', label: 'CTA-knapp text',
defaultValue: 'Läs mer', defaultValue: 'Read more',
}, },
{ {
name: 'ctaLink', name: 'ctaLink',

View File

@ -19,7 +19,7 @@ export const LMNewsletterBlockComponent: React.FC<LMNewsletterBlockProps> = ({
description, description,
submitEndpoint, submitEndpoint,
buttonText = 'Prenumerera', buttonText = 'Prenumerera',
successMessage = 'Tack! Du är nu prenumerant.', successMessage = 'Thank you! You are now subscribed.',
consentText, consentText,
privacyPolicyLink = '/integritetspolicy', privacyPolicyLink = '/integritetspolicy',
collectName = false, collectName = false,
@ -79,7 +79,7 @@ export const LMNewsletterBlockComponent: React.FC<LMNewsletterBlockProps> = ({
setConsented(false) setConsented(false)
} catch (err) { } catch (err) {
setStatus('error') 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], [email, name, company, consented, submitEndpoint, collectName, collectCompany],
@ -145,7 +145,7 @@ export const LMNewsletterBlockComponent: React.FC<LMNewsletterBlockProps> = ({
aria-describedby={isDisabled ? 'newsletter-disabled-reason' : undefined} aria-describedby={isDisabled ? 'newsletter-disabled-reason' : undefined}
className="fd-btn-primary w-full mt-4 disabled:opacity-50 disabled:cursor-not-allowed" className="fd-btn-primary w-full mt-4 disabled:opacity-50 disabled:cursor-not-allowed"
> >
{status === 'loading' ? 'Skickar...' : buttonText} {status === 'loading' ? 'Sending...' : buttonText}
</button> </button>
{isDisabled && disabledReason && ( {isDisabled && disabledReason && (
<p id="newsletter-disabled-reason" className="sr-only">{disabledReason}</p> <p id="newsletter-disabled-reason" className="sr-only">{disabledReason}</p>
@ -188,7 +188,7 @@ export const LMNewsletterBlockComponent: React.FC<LMNewsletterBlockProps> = ({
aria-describedby={isDisabled ? 'newsletter-inline-disabled-reason' : undefined} aria-describedby={isDisabled ? 'newsletter-inline-disabled-reason' : undefined}
className="fd-btn-primary whitespace-nowrap disabled:opacity-50 disabled:cursor-not-allowed" className="fd-btn-primary whitespace-nowrap disabled:opacity-50 disabled:cursor-not-allowed"
> >
{status === 'loading' ? 'Skickar...' : buttonText} {status === 'loading' ? 'Sending...' : buttonText}
</button> </button>
</div> </div>
) : ( ) : (
@ -201,7 +201,7 @@ export const LMNewsletterBlockComponent: React.FC<LMNewsletterBlockProps> = ({
aria-describedby={isDisabled ? 'newsletter-stacked-disabled-reason' : undefined} aria-describedby={isDisabled ? 'newsletter-stacked-disabled-reason' : undefined}
className="fd-btn-primary w-full disabled:opacity-50 disabled:cursor-not-allowed" className="fd-btn-primary w-full disabled:opacity-50 disabled:cursor-not-allowed"
> >
{status === 'loading' ? 'Skickar...' : buttonText} {status === 'loading' ? 'Sending...' : buttonText}
</button> </button>
</> </>
)} )}
@ -258,7 +258,7 @@ const ConsentCheckbox: React.FC<ConsentCheckboxProps> = ({
rel="noopener noreferrer" 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'}`} 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
</a> </a>
)} )}
</span> </span>

View File

@ -48,7 +48,7 @@ export const LMNewsletterBlock: Block = {
type: 'text', type: 'text',
localized: true, localized: true,
label: 'Bekräftelsemeddelande', label: 'Bekräftelsemeddelande',
defaultValue: 'Tack! Du är nu prenumerant.', defaultValue: 'Thank you! You are now subscribed.',
}, },
{ {
name: 'consentText', name: 'consentText',

View File

@ -74,7 +74,7 @@ export const LMQuizBlock: Block = {
type: 'text', type: 'text',
localized: true, localized: true,
label: 'CTA-knapp text', label: 'CTA-knapp text',
defaultValue: 'Läs mer', defaultValue: 'Read more',
}, },
{ {
name: 'ctaLink', name: 'ctaLink',

View File

@ -100,7 +100,7 @@ export const LMServiceCardsBlock: Block = {
type: 'text', type: 'text',
localized: true, localized: true,
label: 'Länktext', label: 'Länktext',
defaultValue: 'Läs mer', defaultValue: 'Read more',
}, },
{ {
name: 'readMoreLink', name: 'readMoreLink',