chore(frontend): i18n pass on mostly-translated frontend components (#6786)

* i18n pass on mostly-translated frontend components

* Run prepr

* Fix SRV-records text and unescape tooltip braces

* Fix changed wording

* Remove unneeded strings

* Use ICU-safe placeholder
This commit is contained in:
Arthur
2026-07-21 11:36:06 -07:00
committed by GitHub
parent b14fad4237
commit 84b4f8e474
40 changed files with 1338 additions and 307 deletions
@@ -137,7 +137,9 @@
</div>
<div class="flex w-full flex-row justify-stretch gap-2">
<ButtonStyled>
<button class="w-full text-contrast" @click="handleClose">{{ closeButtonText }}</button>
<button class="w-full text-contrast" @click="handleClose">
{{ props.closeButtonText ?? formatMessage(messages.closeButton) }}
</button>
</ButtonStyled>
<ButtonStyled color="green">
<button class="w-full text-contrast" @click="downloadTaxForm">
@@ -182,7 +184,7 @@ const props = withDefaults(
emitSuccessOnClose?: boolean
}>(),
{
closeButtonText: 'Close',
closeButtonText: undefined,
emitSuccessOnClose: true,
},
)
@@ -268,6 +270,18 @@ const messages = defineMessages({
id: 'dashboard.creator-tax-form-modal.confirmation.download-button',
defaultMessage: 'Download {formType}',
},
closeButton: {
id: 'dashboard.creator-tax-form-modal.close-button',
defaultMessage: 'Close',
},
incompleteTitle: {
id: 'dashboard.creator-tax-form-modal.incomplete.title',
defaultMessage: 'Tax form incomplete',
},
incompleteText: {
id: 'dashboard.creator-tax-form-modal.incomplete.text',
defaultMessage: 'You have not completed the tax form. Please try again.',
},
})
const isUSCitizen = ref<'yes' | 'no' | null>(null)
@@ -371,8 +385,8 @@ async function continueForm() {
}
addNotification({
title: 'Tax form incomplete',
text: 'You have not completed the tax form. Please try again.',
title: formatMessage(messages.incompleteTitle),
text: formatMessage(messages.incompleteText),
type: 'warning',
})
}