Sharing Redesign: Add missing i18n translation (#90775)

add i18n translations
This commit is contained in:
Lucy Chen
2024-07-30 15:39:32 -04:00
committed by GitHub
parent 783ff71560
commit f96eed5abf
4 changed files with 22 additions and 5 deletions

View File

@@ -82,7 +82,12 @@ export default function ShareConfiguration() {
control={control}
name="isTimeSelectionEnabled"
/>
<Label description="Allow people to change time range">
<Label
description={t(
'public-dashboard.configuration.enable-time-range-description',
'Allow people to change time range'
)}
>
<Trans i18nKey="public-dashboard.configuration.enable-time-range-label">Enable time range</Trans>
</Label>
</Stack>
@@ -104,7 +109,13 @@ export default function ShareConfiguration() {
control={control}
name="isAnnotationsEnabled"
/>
<Label style={{ flex: 1 }} description="Present annotations on this Dashboard">
<Label
style={{ flex: 1 }}
description={t(
'public-dashboard.configuration.display-annotations-description',
'Present annotations on this Dashboard'
)}
>
<Trans i18nKey="public-dashboard.configuration.display-annotations-label">Display annotations</Trans>
</Label>
</Stack>

View File

@@ -42,7 +42,7 @@ export function ShareDrawerConfirmAction({
description={description}
confirmButtonLabel={confirmButtonLabel}
confirmButtonVariant="destructive"
dismissButtonLabel="Cancel"
dismissButtonLabel={t('share-drawer.confirm-action.cancel-button', 'Cancel')}
dismissButtonVariant="secondary"
justifyButtons="flex-start"
onConfirm={onConfirm}

View File

@@ -1627,7 +1627,9 @@
"settings-title": "Settings"
},
"configuration": {
"display-annotations-description": "Present annotations on this Dashboard",
"display-annotations-label": "Display annotations",
"enable-time-range-description": "Allow people to change time range",
"enable-time-range-label": "Enable time range",
"settings-label": "Settings",
"success-pause": "Your dashboard access has been paused",
@@ -1943,7 +1945,8 @@
},
"share-drawer": {
"confirm-action": {
"back-arrow-button": "Back button"
"back-arrow-button": "Back button",
"cancel-button": "Cancel"
}
},
"share-modal": {

View File

@@ -1627,7 +1627,9 @@
"settings-title": "Ŝęŧŧįʼnģş"
},
"configuration": {
"display-annotations-description": "Přęşęʼnŧ äʼnʼnőŧäŧįőʼnş őʼn ŧĥįş Đäşĥþőäřđ",
"display-annotations-label": "Đįşpľäy äʼnʼnőŧäŧįőʼnş",
"enable-time-range-description": "Åľľőŵ pęőpľę ŧő čĥäʼnģę ŧįmę řäʼnģę",
"enable-time-range-label": "Ēʼnäþľę ŧįmę řäʼnģę",
"settings-label": "Ŝęŧŧįʼnģş",
"success-pause": "Ÿőūř đäşĥþőäřđ äččęşş ĥäş þęęʼn päūşęđ",
@@ -1943,7 +1945,8 @@
},
"share-drawer": {
"confirm-action": {
"back-arrow-button": "ßäčĸ þūŧŧőʼn"
"back-arrow-button": "ßäčĸ þūŧŧőʼn",
"cancel-button": "Cäʼnčęľ"
}
},
"share-modal": {