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,
description,
form: formRelation,
submitText = 'Skicka förfrågan',
submitText = 'Send message',
privacyText,
privacyLinkText,
privacyLinkUrl,
@ -287,9 +287,9 @@ export const LMContactFormBlockComponent: React.FC<LMContactFormBlockProps> = ({
</svg>
</div>
{/* 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}`}>
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>
</div>
</section>
@ -333,13 +333,13 @@ export const LMContactFormBlockComponent: React.FC<LMContactFormBlockProps> = ({
onDark={dark}
disabled={status === 'sending'}
>
{status === 'sending' ? 'Skickar...' : submitText}
{status === 'sending' ? 'Sending...' : submitText}
</LMButton>
</div>
{status === 'error' && (
<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>
)}
@ -348,7 +348,7 @@ export const LMContactFormBlockComponent: React.FC<LMContactFormBlockProps> = ({
{privacyText}{' '}
{privacyLinkText && privacyLinkUrl && (
<>
Läs mer i r{' '}
Read more in our{' '}
<a href={privacyLinkUrl} className={linkColor}>
{privacyLinkText}
</a>

View File

@ -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),
},
},

View File

@ -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',

View File

@ -19,7 +19,7 @@ export const LMNewsletterBlockComponent: React.FC<LMNewsletterBlockProps> = ({
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<LMNewsletterBlockProps> = ({
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<LMNewsletterBlockProps> = ({
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}
</button>
{isDisabled && disabledReason && (
<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}
className="fd-btn-primary whitespace-nowrap disabled:opacity-50 disabled:cursor-not-allowed"
>
{status === 'loading' ? 'Skickar...' : buttonText}
{status === 'loading' ? 'Sending...' : buttonText}
</button>
</div>
) : (
@ -201,7 +201,7 @@ export const LMNewsletterBlockComponent: React.FC<LMNewsletterBlockProps> = ({
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}
</button>
</>
)}
@ -258,7 +258,7 @@ const ConsentCheckbox: React.FC<ConsentCheckboxProps> = ({
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
</a>
)}
</span>

View File

@ -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',

View File

@ -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',

View File

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