|
| 1 | +/* eslint sort-keys: "error" */ |
| 2 | +import {defineLocalesResources} from 'sanity' |
| 3 | + |
| 4 | +/** |
| 5 | + * Defined locale strings for the task tool, in US English. |
| 6 | + * |
| 7 | + * @internal |
| 8 | + */ |
| 9 | +const tasksLocaleStrings = defineLocalesResources('tasks', { |
| 10 | + /** The label for the create task action */ |
| 11 | + 'actions.create.text': 'Create new task', |
| 12 | + /** The label for the open tasks panel action */ |
| 13 | + 'actions.open.text': 'Tasks', |
| 14 | + /** The label for the button to create a new task */ |
| 15 | + 'buttons.create.text': 'Create Task', |
| 16 | + /** The label for the button to discard changes */ |
| 17 | + 'buttons.discard.text': 'Discard', |
| 18 | + /** The label for the button to open the draft */ |
| 19 | + 'buttons.draft.text': 'Draft', |
| 20 | + /** The label for the button to create a new task */ |
| 21 | + 'buttons.new.text': 'New task', |
| 22 | + /** The label for the button that will navigate to the next task */ |
| 23 | + 'buttons.next.tooltip': 'Go to next task', |
| 24 | + /** The label for the button that will previous to the next task */ |
| 25 | + 'buttons.previous.tooltip': 'Go to previous task', |
| 26 | + /** Text for the remove task dialog asking for confirmation of deletion */ |
| 27 | + 'dialog.remove-task.body': 'Are you sure you want to delete this task?', |
| 28 | + /** Text for the remove task dialog clarifying that deletion is permanent */ |
| 29 | + 'dialog.remove-task.body2': 'Once deleted, it cannot be restored.', |
| 30 | + /** The label for the cancel button on the remove task dialog */ |
| 31 | + 'dialog.remove-task.buttons.cancel.text': 'Cancel', |
| 32 | + /** The label for the confirmation button on the remove task dialog */ |
| 33 | + 'dialog.remove-task.buttons.confirm.text': 'Remove', |
| 34 | + /** The title for the remove task dialog */ |
| 35 | + 'dialog.remove-task.title': 'Remove task', |
| 36 | + /** The text used as a placeholder for the footer action in a document with a single task */ |
| 37 | + 'document.footer.open-tasks.placeholder_one': 'Open task', |
| 38 | + /** The text used as a placeholder for the footer action in a document with multiple tasks */ |
| 39 | + 'document.footer.open-tasks.placeholder_other': 'Open tasks', |
| 40 | + /** The label used in the button in the footer action in a document with a single task */ |
| 41 | + 'document.footer.open-tasks.text_one': '{{count}} open task', |
| 42 | + /** The label used in the button in the footer action in a document with multiple tasks */ |
| 43 | + 'document.footer.open-tasks.text_other': '{{count}} open tasks', |
| 44 | + /** Text used in the assignee input when there is no user assigned */ |
| 45 | + 'form.input.assignee.no-user-assigned.text': 'Not assigned', |
| 46 | + /** Text used in the assignee input when searching and no users are found */ |
| 47 | + 'form.input.assignee.search.no-users.text': 'No users found', |
| 48 | + /** Placeholder text used in the search box in the assignee input */ |
| 49 | + 'form.input.assignee.search.placeholder': 'Search username', |
| 50 | + /** Text used in the assignee input when user is not authorized */ |
| 51 | + 'form.input.assignee.unauthorized.text': 'Unauthorized', |
| 52 | + /** Text used in the assignee input when user is not found */ |
| 53 | + 'form.input.assignee.user-not-found.text': 'User not found', |
| 54 | + /** The label used in the create more toggle */ |
| 55 | + 'form.input.create-more.text': 'Create more', |
| 56 | + /** The label used in the date input to remove the current value */ |
| 57 | + 'form.input.date.buttons.remove.text': 'Remove', |
| 58 | + /** Placeholder text used in the description input */ |
| 59 | + 'form.input.description.placeholder': 'Optional additional description', |
| 60 | + /** The label used in the target input to remove the current value */ |
| 61 | + 'form.input.target.buttons.remove.text': 'Remove target content', |
| 62 | + /** The text used in the target input when encountering a schema error */ |
| 63 | + 'form.input.target.error.schema-not-found': 'Schema not found', |
| 64 | + /** The placeholder text used in the target input for the search component */ |
| 65 | + 'form.input.target.search.placeholder': 'Search document', |
| 66 | + /** The placeholder text for the title input */ |
| 67 | + 'form.input.title.placeholder': 'Task title', |
| 68 | + /** The status error message presented when the user does not supply a title */ |
| 69 | + 'form.status.error.title-required': 'Title is required', |
| 70 | + /** The status message upon successful creation of a task */ |
| 71 | + 'form.status.success': 'Task created', |
| 72 | + /** The text displayed when no tasks are found */ |
| 73 | + 'list.empty.text': 'No tasks', |
| 74 | + /** The label for the copy link menu item */ |
| 75 | + 'menuitem.copylink.text': 'Copy link to task', |
| 76 | + /** The label for the delete task menu item */ |
| 77 | + 'menuitem.delete.text': 'Delete task', |
| 78 | + /** The label for the duplicate task menu item */ |
| 79 | + 'menuitem.duplicate.text': 'Duplicate task', |
| 80 | + /** Fragment used to construct the first entry in the activity log */ |
| 81 | + 'panel.activity.created-fragment': 'created this task', |
| 82 | + /** The title of the activity section of the task */ |
| 83 | + 'panel.activity.title': 'Activity', |
| 84 | + /** The text used in the activity log when unable to find the user */ |
| 85 | + 'panel.activity.unknown-user': 'Unknown user', |
| 86 | + /** The tooltip for the close button for the task panel */ |
| 87 | + 'panel.close.tooltip': 'Close sidebar', |
| 88 | + /** The placeholder text for the comment text box */ |
| 89 | + 'panel.comment.placeholder': 'Add a comment...', |
| 90 | + /** The title used in the task panel when showing the create task form */ |
| 91 | + 'panel.create.title': 'Create', |
| 92 | + /** The title used in the drafts pulldown */ |
| 93 | + 'panel.drafts.title': 'Drafts', |
| 94 | + /** The tooltip for the task navigation component */ |
| 95 | + 'panel.navigation.tooltip': 'Open tasks', |
| 96 | + /** Title of the Tasks panel */ |
| 97 | + 'panel.title': 'Tasks', |
| 98 | +}) |
| 99 | + |
| 100 | +/** |
| 101 | + * @alpha |
| 102 | + */ |
| 103 | +export type TasksLocaleResourceKeys = keyof typeof tasksLocaleStrings |
| 104 | + |
| 105 | +export default tasksLocaleStrings |
0 commit comments