Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(i18n): more translated surfaces #5000

Merged
merged 5 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 54 additions & 5 deletions dev/test-studio/plugins/locale-no-nb/bundles/desk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ const deskResources: Record<DeskLocaleResourceKeys, string> = {
'Kan ikke publisere fordi "Live Edit" er skrudd på for denne dokumenttypen.',

/** Tooltip when the "Publish" document action is disabled due to validation issues */
'action.publish.validation-issues.tooltip':
'Valideringsfeil som må rettes før dokumentet kan publiseres',
'action.publish.validation-issues.tooltip': 'Valideringsfeil må rettes før det kan publiseres',

/** Tooltip when publish button is disabled because the document is already published.*/
'action.publish.already-published.tooltip': 'Publisert for {{timeSincePublished}} siden',
Expand All @@ -36,7 +35,7 @@ const deskResources: Record<DeskLocaleResourceKeys, string> = {
'action.publish.already-published.no-time-ago.tooltip': 'Allerede publisert',

/** Tooltip when publish button is disabled because there are no changes.*/
'action.publish.tooltip.no-changes': 'Ingen upubliserte endringer',
'action.publish.no-changes.tooltip': 'Ingen upubliserte endringer',

/** Tooltip when publish button is waiting for validation and async tasks to complete.*/
'action.publish.waiting': 'Venter på at andre oppgaver skal fullføre',
Expand Down Expand Up @@ -81,10 +80,10 @@ const deskResources: Record<DeskLocaleResourceKeys, string> = {
'Dette dokumentet er tomt og kan ikke dupliseres',

/** Label for the "Duplicate" document action */
'action.duplicate.label': 'Duplisèr',
'action.duplicate.label': 'Dupliser',

/** Label for the "Duplicate" document action while the document is being duplicated */
'action.duplicate.running.label': 'Duplisèrer…',
'action.duplicate.running.label': 'Dupliserer…',

/** --- UNPUBLISH ACTION --- */
/** Tooltip when action is disabled because the operation is not ready */
Expand Down Expand Up @@ -113,6 +112,56 @@ const deskResources: Record<DeskLocaleResourceKeys, string> = {
/** Message prompting the user to confirm that they want to restore to an earlier version*/
'action.restore.confirm-dialog.confirm-discard-changes':
'Er du sikker på at du vil gjenopprette til valgte versjon?',

/** --- PUBLISH STATUS BUTTON --- */
/** Accessibility label indicating when the document was last updated, in relative time, eg "2 hours ago" */
'status-bar.publish-status-button.last-updated-time.aria-label':
'Sist oppdatert {{relativeTime}}',

/** Accessibility label indicating when the document was last published, in relative time, eg "3 weeks ago" */
'status-bar.publish-status-button.last-published-time.aria-label':
'Sist publisert {{relativeTime}}',

/** Text for tooltip showing explanation of timestamp/relative time, eg "Last updated <RelativeTime/>" */
'status-bar.publish-status-button.last-updated-time.tooltip': 'Sist oppdatert <RelativeTime/>',

/** Text for tooltip showing explanation of timestamp/relative time, eg "Last published <RelativeTime/>" */
'status-bar.publish-status-button.last-published-time.tooltip': 'Sist publisert <RelativeTime/>',

/** --- REVIEW CHANGES BUTTON --- */
/** Label for button when status is syncing */
'status-bar.review-changes-button.status.syncing.text': 'Lagrer...',

/** Label for button when status is saved */
'status-bar.review-changes-button.status.saved.text': 'Lagret!',

/** Primary text for tooltip for the button */
'status-bar.review-changes-button.tooltip.text': 'Se endringer',

/** Text for the secondary text for tooltip for the button */
'status-bar.review-changes-button.tooltip.changes-saved': 'Endringer lagret',

/** Aria label for the button */
'status-bar.review-changes-button.aria-label': 'Se endringer',

/** --- DOCUMENT JSON INSPECTOR --- */
/** Title shown for menu item that opens the "Inspect" dialog */
'document-inspector.menu-item.title': 'Inspiser',

/** The title shown in the dialog header, when inspecting a valid document */
'document-inspector.dialog.title': 'Inspiserer <DocumentTitle/>',

/** The title shown in the dialog header, when the document being inspected is not created yet/has no value */
'document-inspector.dialog.title-no-value': 'Ingen verdi',

/** The "parsed" view mode, meaning the JSON is searchable, collapsible etc */
'document-inspector.view-mode.parsed': 'Behandlet',

/** The "raw" view mode, meaning the JSON is presented syntax-highlighted, but with no other features - optimal for copying */
'document-inspector.view-mode.raw-json': 'Rå JSON',

/** --- "PRODUCTION PREVIEW", eg link to content --- */
'production-preview.menu-item.title': 'Åpne forhåndsvisning',
}

export default deskResources
Loading
Loading