Task: Add i18n support for public dashboards (#79659)

* feat(public-dashboards): add i18n support

* fix(public-dashboard): correct name convention for i18n

* fix(public-dashboard): correct i18n key convention + extraction

* feat(public-dashboard): mark up i18n for remaining cfg modal

* fix(public-dashboard): de-dynamicize ack comps for i18n + markup i18n for missing parts

* feat(public-dashboard): mark up i18n for DeletePubDashModal

* feat(public-dashboard): mark up i18n for ShareModal public dashboard

* chore(i18n): run yarn i18n:extract

* update naming cconvention

* add mark up phrases

* update json file

* fix import

* fix title

* fix url

* Copy button translation

* Update user admin page

* escape char

* interpolation

* fix escape

* prettier space

* update naming

* update setting keys

* standardize key naming convention

* fix radiobutton

* Fix naming convention as recommended by frontend team

* Prettier and fix naming

* fix variables that cannot be translated

* prettier check

---------

Co-authored-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
Lucy Chen
2024-01-08 13:30:01 -05:00
committed by GitHub
parent df8624c8cd
commit 49af992661
25 changed files with 1081 additions and 159 deletions

View File

@@ -1078,6 +1078,120 @@
"passwords-must-match": "Les mots de passe doivent être identiques"
}
},
"public-dashboard": {
"acknowledgment-checkboxes": {
"ack-title": "",
"data-src-ack-desc": "",
"data-src-ack-tooltip": "",
"public-ack-desc": "",
"public-ack-tooltip": "",
"usage-ack-desc": "",
"usage-ack-desc-tooltip": ""
},
"config": {
"can-view-dashboard-radio-button-label": "",
"copy-button": "",
"dashboard-url-field-label": "",
"email-share-type-option-label": "",
"pause-sharing-dashboard-label": "",
"public-share-type-option-label": "",
"revoke-public-URL-button": "",
"revoke-public-URL-button-title": "",
"settings-title": ""
},
"create-page": {
"generate-public-url-button": "",
"unsupported-features-desc": "",
"welcome-title": ""
},
"delete-modal": {
"revoke-nonorphaned-body-text": "",
"revoke-orphaned-body-text": "",
"revoke-title": ""
},
"email-sharing": {
"input-invalid-email-text": "",
"input-required-email-text": "",
"invite-button": "",
"invite-field-desc": "",
"invite-field-label": "",
"resend-button": "",
"resend-button-title": "",
"revoke-button": "",
"revoke-button-title": ""
},
"modal-alerts": {
"no-upsert-perm-alert-desc": "",
"no-upsert-perm-alert-title": "",
"save-dashboard-changes-alert-title": "",
"unsupport-data-source-alert-readmore-link": "",
"unsupported-data-source-alert-desc": "",
"unsupported-data-source-alert-title": "",
"unsupported-template-variable-alert-desc": "",
"unsupported-template-variable-alert-title": ""
},
"settings-bar-header": {
"collapse-settings-tooltip": "",
"expand-settings-tooltip": ""
},
"settings-configuration": {
"default-time-range-label": "",
"default-time-range-label-desc": "",
"show-annotations-label": "",
"show-annotations-label-desc": "",
"time-range-picker-label": "",
"time-range-picker-label-desc": ""
},
"settings-summary": {
"annotations-hide-text": "",
"annotations-show-text": "",
"time-range-picker-disabled-text": "",
"time-range-picker-enabled-text": "",
"time-range-text": ""
}
},
"public-dashboard-list": {
"button": {
"config-button-tooltip": "",
"revoke-button-text": "",
"revoke-button-tooltip": "",
"view-button-tooltip": ""
},
"dashboard-title": {
"orphaned-title": "",
"orphaned-tooltip": ""
},
"toggle": {
"pause-sharing-toggle-text": ""
}
},
"public-dashboard-users-access-list": {
"dashboard-modal": {
"loading-text": "",
"open-dashboard-list-text": "",
"public-dashboard-link": "",
"public-dashboard-setting": ""
},
"delete-user-modal": {
"delete-user-button-text": "",
"delete-user-cancel-button": "",
"delete-user-revoke-access-button": "",
"revoke-access-title": "",
"revoke-user-access-modal-desc-line1": "",
"revoke-user-access-modal-desc-line2": ""
},
"modal": {
"dashboard-modal-title": ""
},
"table-header": {
"activated-label": "",
"activated-tooltip": "",
"email-label": "",
"last-active-label": "",
"origin-label": "",
"role-label": ""
}
},
"query-operation": {
"header": {
"collapse-row": "Réduire la ligne de requête",
@@ -1207,6 +1321,7 @@
"link": "Lien",
"panel-embed": "Intégrer",
"public-dashboard": "Tableau de bord public",
"public-dashboard-title": "",
"snapshot": "Instantané"
},
"theme-picker": {
@@ -1355,6 +1470,11 @@
"user-sessions": {
"loading": "Chargement des sessions..."
},
"users-access-list": {
"tabs": {
"public-dashboard-users-tab-title": ""
}
},
"variable": {
"adhoc": {
"placeholder": "Sélectionner une valeur"