Skip to content

AI-native design editor. Open-source Figma alternative.

20.0 KB
Raw Blame
import { count, params } from '@nanostores/i18n'

import { i18n } from '#vue/i18n/create'

/** Copy for the pages a Cloud server shows on its own address. */
export const cloudPortalMessageDefaults = {
  productName: 'OpenPencil Cloud',
  help: 'Help',
  loading: 'Loading…',
  unavailableTitle: 'This server isn’t answering',
  unavailableDescription: 'Check the address, or try again in a moment.',
  tryAgain: 'Try again',

  welcomeTitle: 'Design together in OpenPencil',
  welcomeDescription: 'Keep your files on this server, share them, and edit them with others live.',
  useWithoutAccount: 'Use without an account',
  withoutAccountNote: 'Without an account, files stay on this device.',
  openEditor: 'Open editor',

  signInTitle: 'Sign in to OpenPencil Cloud',
  signUpTitle: 'Create your account',
  returnsTo: params('Then you go back to {destination}.'),
  returnsToDesktop: 'the OpenPencil app',
  returnsToEditor: 'the editor',
  continueWithGoogle: 'Continue with Google',
  continueWithApple: 'Continue with Apple',
  or: 'or',
  name: 'Name',
  email: 'Email',
  emailPlaceholder: '[email protected]',
  password: 'Password',
  passwordHint: params('At least {count} characters.'),
  forgotPassword: 'Forgot password?',
  repeatPassword: 'Repeat password',
  errorNameRequired: 'Enter your name.',
  errorEmailRequired: 'Enter your email address.',
  errorEmailInvalid: 'Enter an email address such as [email protected].',
  errorPasswordRequired: 'Enter your password.',
  errorPasswordTooShort: params('Use at least {count} characters.'),
  errorPasswordsDiffer: 'The passwords don’t match.',
  verifiedTitle: 'Email verified',
  verifiedDescription: 'Go back to OpenPencil to finish signing in. You can close this tab.',
  signIn: 'Sign in',
  createAccount: 'Create account',
  haveAccount: 'Already have an account?',
  newHere: 'New to OpenPencil Cloud?',
  createAnAccount: 'Create an account',
  approvalTitle: 'An administrator reviews new accounts',
  approvalDescription: 'You can sign in once your request is approved. We email you when it is.',
  signInFailed: 'Couldn’t sign in',
  noSignInMethods: 'This server doesn’t offer a way to sign in yet. Ask its administrator.',

  failureInvalidCredentials: 'The email or password is wrong.',
  failureEmailNotVerified: 'Confirm your email first. We can send the link again.',
  failurePasswordTooShort: 'The password is too short.',
  failurePasswordTooLong: 'The password is too long.',
  failureInvalidLink: 'This link has expired or was already used. Ask for a new one.',
  failureInvalidCode: 'That code didn’t work. Check it and try again.',
  failurePasskeyCancelled: 'Passkey setup was cancelled.',
  failurePasskeyExists: 'This device already has a passkey for your account.',
  failurePasskeyUnavailable:
    'This browser couldn’t create a passkey for this address. Try another browser, or use an authenticator app.',
  failureRateLimited: 'Too many attempts. Wait a minute and try again.',
  failureUnavailable: 'Something went wrong on the server. Try again in a moment.',
  failureCancelled: 'Sign-in was cancelled.',
  failureEnrollmentClosed: 'This server isn’t taking new accounts.',

  checkEmailTitle: 'Check your email',
  checkEmailDescription: params(
    'We sent a link to {email}. Open it on this device to finish creating your account.'
  ),
  sendAgain: 'Send again',
  sent: 'Sent',
  useAnotherEmail: 'Use another email',

  pendingTitle: 'Your request is with an administrator',
  pendingDescription: params('We email {email} when you can sign in. Nothing else to do for now.'),
  closedTitle: 'You can’t use this server',
  closedDescription:
    'An administrator declined or removed your access. Ask them if you think this is a mistake.',
  signOut: 'Sign out',

  twoStepTitle: 'Confirm it’s you',
  twoStepAuthenticator: 'Enter the 6-digit code from your authenticator app.',
  twoStepRecovery: 'Enter one of the recovery codes you saved. Each works once.',
  authenticationCode: 'Authentication code',
  recoveryCode: 'Recovery code',
  continue: 'Continue',
  useRecoveryCode: 'Use a recovery code',
  useAuthenticator: 'Use your authenticator app',
  usePasskey: 'Use a passkey',

  resetTitle: 'Reset your password',
  resetDescription: 'We email you a link to choose a new one.',
  chooseTitle: 'Choose a new password',
  chooseDescription: 'Saving it signs you out everywhere else.',
  newPassword: 'New password',
  sendLink: 'Send link',
  savePassword: 'Save password',
  backToSignIn: 'Back to sign in',
  resetSentTitle: 'Check your email',
  resetSentDescription: params('If {email} has an account here, a reset link is on its way.'),

  deviceTitle: 'Sign in to the OpenPencil app?',
  deviceDescription: params('The OpenPencil app asks to use your account, {email}.'),
  deviceCheckCode: 'Check that the app shows this code',
  deviceWarningTitle: 'Only approve a sign-in you started',
  deviceWarningDescription:
    'If you didn’t just sign in to OpenPencil on a computer, deny this request.',
  approve: 'Approve',
  deny: 'Deny',
  deviceApprovedTitle: 'You’re signed in',
  deviceApprovedDescription:
    'Go back to the OpenPencil app; it has already picked this up. You can close this tab.',
  deviceDeniedTitle: 'Sign-in denied',
  deviceDeniedDescription:
    'The app wasn’t signed in. If you didn’t start this, someone may know your password; change it in your account settings.',
  deviceExpiredTitle: 'This code has expired',
  deviceExpiredDescription: 'Start signing in from the OpenPencil app again to get a new code.',
  accountSettings: 'Account settings',

  sectionAccount: 'Your account',
  sectionServer: 'Server',
  profile: 'Profile',
  profileDescription: params('How you appear to people on {host}.'),
  security: 'Sign-in and security',
  securityDescription: params('How you sign in to {host}.'),
  sessions: 'Sessions',
  sessionsDescription: 'Where your account is signed in, and when it was.',
  overview: 'Overview',
  accessRequests: 'Access requests',
  accessRequestsDescription:
    'People asking to join. Approving lets them sign in; each gets an email either way.',
  people: 'People',
  peopleDescription: count({
    one: '{count} account on this server.',
    many: '{count} accounts on this server.'
  }),
  emailDelivery: 'Email delivery',
  emailDeliveryDescription: 'Invitations, sign-in links, and access decisions the server sends.',
  activity: 'Activity',
  activityDescription: 'What administrators did on this server.',

  detailsSection: 'Details',
  detailsSectionDescription: 'People see your name and picture beside your edits and comments.',
  uploadPicture: 'Upload picture',
  changePicture: 'Change picture',
  removePicture: 'Remove',
  pictureTitle: 'Your picture',
  pictureDescription: 'Drag the picture and zoom to choose what shows in the circle.',
  pictureZoom: 'Zoom',
  savePicture: 'Save picture',
  pictureSaved: 'Picture saved',
  pictureRemoved: 'Picture removed',
  removePictureHeading: 'Remove your picture?',
  removePictureDescription: 'Your initials show in its place until you upload another picture.',
  removePictureConfirm: 'Remove picture',
  pictureUnreadable:
    'This file isn’t a picture the page can open. Choose a PNG, JPEG, WebP, or GIF image.',
  save: 'Save',
  nameSaved: 'Name saved',
  changeName: 'Change name',
  changeNameTitle: 'Change your name',
  changeEmail: 'Change email',
  changeEmailTitle: 'Change your email',
  changeEmailDescription: params(
    'We send a link to the new address. {email} stays your email until you follow it.'
  ),
  newEmail: 'New email',
  sendConfirmation: 'Send link',
  emailChangeSent: params('We sent a link to {email}. Your email changes once you follow it.'),
  emailChanged: params('Your email is now {email}.'),
  emailChangeUnavailable: 'This server doesn’t send email, so your email can’t be changed here.',
  accountId: 'Account ID',
  accountIdDescription: 'Give this to an administrator when you ask for help with your account.',
  memberSince: params('Member since {date}'),

  activeSessions: 'Signed-in sessions',
  activeSessionsDescription: 'Sign out any session you don’t recognize; it ends at once.',
  signOutOtherSessions: 'Sign out other sessions',
  signOutOtherSessionsHeading: 'Sign out of every other session?',
  signOutOtherSessionsDescription:
    'Every browser and app signed in to your account, except this one, has to sign in again.',
  thisSession: 'This session',
  desktopApp: 'OpenPencil app',
  unknownBrowser: 'Unknown browser',
  browserOn: params('{browser} on {system}'),
  lastActive: params('Active {when}'),
  signedInOn: params('Signed in {date}'),
  endSessionHeading: params('Sign out {device}?'),
  endSessionDescription: 'Whoever uses that session has to sign in again.',
  recentSignIns: 'Recent sign-ins',
  recentSignInsDescription:
    'Each time your account was signed in. If one wasn’t you, change your password and sign that session out.',
  noSignIns: 'No sign-ins recorded yet.',
  signedInWith: params('With {method}'),
  methodPassword: 'password',
  methodGoogle: 'Google',
  methodApple: 'Apple',
  methodPasskey: 'a passkey',
  methodTwoStep: 'two-step sign-in',
  methodEmailLink: 'an email link',
  methodDesktop: 'the OpenPencil app',
  methodOther: 'another provider',

  waysToSignIn: 'Ways to sign in',
  waysToSignInDescription: 'Keep at least one, so you can always get back in.',
  providerGoogle: 'Google',
  providerApple: 'Apple',
  linkedOn: params('Linked {date}'),
  notLinked: 'Not linked',
  link: 'Link',
  unlink: 'Unlink',
  unlinkHeading: params('Unlink {provider}?'),
  unlinkDescription: 'You can’t sign in with it again until you link it.',
  passwordSet: 'Sign in with your email and password',
  passwordNotSet: 'Add a password to sign in with your email too',
  change: 'Change',
  setPassword: 'Set password',
  twoStepSection: 'Two-step sign-in',
  twoStepSectionDescription: 'Ask for a second proof after your password or linked account.',
  authenticatorApp: 'Authenticator app',
  authenticatorOn: 'On',
  authenticatorOff: 'Codes from an app such as 1Password or Google Authenticator',
  newRecoveryCodes: 'New recovery codes',
  turnOff: 'Turn off',
  setUp: 'Set up',
  passkeys: 'Passkeys',
  passkeysDescription: 'Sign in with your device’s screen lock instead of a code.',
  addPasskey: 'Add passkey',
  passkeyAdded: params('Added {date}'),
  unnamedPasskey: 'Passkey',
  remove: 'Remove',
  removePasskeyHeading: params('Remove {name}?'),
  removePasskeyDescription: 'That device’s screen lock stops signing you in.',
  noPasskeys: 'No passkeys yet.',
  adminTwoStepTitle: 'Turn on a second sign-in step',
  adminTwoStepDescription:
    'This server requires administrators to use an authenticator app or a passkey before opening the console.',

  authenticatorSetupTitle: 'Set up an authenticator app',
  authenticatorSetupScan: 'Scan this with your authenticator app, then enter the code it shows.',
  authenticatorSetupKey: 'Can’t scan? Enter this key',
  recoveryCodesTitle: 'Save your recovery codes',
  recoveryCodesDescription:
    'Each code signs you in once if you lose your authenticator. Keep them somewhere safe; they won’t be shown again.',
  copy: 'Copy',
  copyCodes: 'Copy codes',
  downloadCodes: 'Download',
  recoveryCodesSaveFirst: 'Copy or download the codes before you continue.',
  copyKey: 'Copy key',
  copied: 'Copied',
  done: 'Done',
  cancel: 'Cancel',
  currentPassword: 'Current password',
  changePasswordTitle: 'Change your password',
  confirmPasswordTitle: 'Confirm with your password',

  filterWaiting: 'Waiting',
  filterApproved: 'Approved',
  filterDeclined: 'Declined',
  filterRemoved: 'Removed',
  statusWaiting: 'Waiting',
  statusApproved: 'Approved',
  statusDeclined: 'Declined',
  statusRemoved: 'Access removed',
  asked: params('Asked {date}'),
  reviewedBy: params('{decision} by {name}'),
  decline: 'Decline',
  removeAccess: 'Remove access',
  declineHeading: params('Decline {name}?'),
  declineDescription: 'They get an email saying so, and can ask again later.',
  removeAccessHeading: params('Remove access for {name}?'),
  removeAccessDescription: 'They can’t sign in any more, and get an email saying so.',
  reviewNote: 'Note for administrators (optional)',
  noteDetail: params('Note: {note}'),
  noOneWaiting: 'No one is waiting',
  nothingHere: 'Nothing here yet',
  requestsEmptyDescription: 'New requests appear here, and administrators get an email for each.',
  searchPeople: 'Search people…',
  filterEveryone: 'Everyone',
  filterAdministrators: 'Administrators',
  filterSuspended: 'Suspended',
  filterWithoutTwoStep: 'No two-step',
  twoStepOff: 'No two-step',
  notSignedIn: 'Not signed in',
  workspaceCount: count({ one: '{count} workspace', many: '{count} workspaces' }),
  pageRange: params('{from}–{to} of {total}'),
  previousPage: 'Previous page',
  nextPage: 'Next page',
  noPeopleFound: 'No one matches',
  noPeopleFoundDescription: 'Try another name or email, or another filter.',
  member: 'Member',
  searchRequests: 'Search requests…',
  searchEmail: 'Search by recipient…',
  searchActivity: 'Search by name or email…',
  filterAll: 'All',
  filterAccounts: 'Accounts',
  filterRequests: 'Requests',
  filterEmail: 'Email',
  noEmailFound: 'No email matches',
  noEmailFoundDescription: 'Email the server sends shows here. Try another recipient or filter.',
  noActivityFound: 'No activity matches',
  noActivityFoundDescription:
    'What administrators do shows here. Try another name or email, or another filter.',
  columnPerson: 'Person',
  columnRole: 'Role',
  columnWorkspaces: 'Workspaces',
  columnWorkspace: 'Workspace',
  columnMembers: 'Members',
  columnLastActive: 'Last active',
  columnJoined: 'Joined',
  columnActions: 'Actions',
  columnReason: 'Reason',
  columnRequested: 'Requested',
  columnDecision: 'Decision',
  columnMessage: 'Message',
  columnRecipient: 'Recipient',
  columnStatus: 'Status',
  columnWhen: 'When',
  columnAdministrator: 'Administrator',
  columnAction: 'Action',
  columnSubject: 'About',
  columnDevice: 'Device',
  columnAddress: 'IP address',
  columnSignedIn: 'Signed in',
  suspendedReason: params('Suspended: {reason}'),
  suspendHeading: params('Suspend {name}?'),
  suspendDescription:
    'They’re signed out everywhere and can’t sign in until you restore the account. Their files stay.',
  suspendReason: 'Reason (optional)',
  restoreHeading: params('Restore {name}?'),
  restoreDescription: 'They can sign in again.',
  makeAdministratorHeading: params('Make {name} an administrator?'),
  makeAdministratorDescription:
    'Administrators approve accounts, suspend people, and open this console.',
  removeAdministratorHeading: params('Remove administrator rights from {name}?'),
  removeAdministratorDescription: 'They keep their account and files, but can’t open this console.',
  signOutEverywhereHeading: params('Sign {name} out everywhere?'),
  signOutEverywhereDescription: 'Every session they have ends at once. They can sign in again.',
  resetTwoStep: 'Reset two-step sign-in',
  resetTwoStepHeading: params('Reset two-step sign-in for {name}?'),
  resetTwoStepDescription:
    'Their authenticator app, recovery codes, and passkeys are removed, so they can sign in with their password or a linked account and set them up again. They get an email saying so.',
  removePersonPicture: 'Remove picture',
  removePersonPictureHeading: params('Remove {name}’s picture?'),
  removePersonPictureDescription:
    'Their initials show in its place. They can upload another picture.',

  backToPeople: 'All people',
  personAccount: 'Account',
  emailVerified: 'Verified',
  emailNotVerified: 'Not verified',
  joinedRow: 'Joined',
  lastActiveRow: 'Last active',
  signInMethods: 'Ways to sign in',
  twoStepRow: 'Two-step sign-in',
  twoStepNone: 'Not set up',
  passkeyCount: count({ one: '{count} passkey', many: '{count} passkeys' }),
  personWorkspaces: 'Workspaces',
  personWorkspacesEmpty: 'Not in any workspace.',
  workspaceMembers: count({ one: '{count} member', many: '{count} members' }),
  workspaceRoleAdmin: 'Admin',
  workspaceRoleEditor: 'Editor',
  workspaceRoleViewer: 'Viewer',
  personSessions: 'Sessions',
  noSessions: 'Not signed in anywhere.',
  personNotFound: 'There’s no such account',
  personNotFoundDescription: 'It may have been removed. Go back to the list of people.',
  you: '(you)',
  administrator: 'Administrator',
  suspended: 'Suspended',
  joined: params('Joined {date}'),
  actionsFor: params('Actions for {name}'),
  makeAdministrator: 'Make administrator',
  removeAdministrator: 'Remove administrator',
  signOutEverywhere: 'Sign out everywhere',
  suspendAccount: 'Suspend account',
  restoreAccount: 'Restore account',
  emailTo: params('To {recipient}'),
  attempts: count({ one: '{count} attempt', many: '{count} attempts' }),
  emailSent: 'Sent',
  emailWaiting: 'Waiting',
  emailFailed: 'Failed',
  retry: 'Retry',
  needsAttention: 'Needs attention',
  waitingRequests: count({
    one: '{count} person is waiting for a decision',
    many: '{count} people are waiting for a decision'
  }),
  noOneIsWaiting: 'No one is waiting',
  emailStatus: params('Failed: {failed} · Waiting: {waiting}'),
  emailWaitingOnly: count({
    one: '{count} email waiting to send',
    many: '{count} emails waiting to send'
  }),
  emailAllSent: 'Everything has been sent',
  review: 'Review',
  open: 'Open',
  usageSection: 'Usage',
  accounts: 'Accounts',
  workspaces: 'Workspaces',
  documents: 'Documents',
  storedFiles: 'Stored files',
  serverSection: 'Server',
  serverSectionDescription: 'Set in the server’s configuration file.',
  deployment: 'Deployment',
  deploymentOfficial: 'OpenPencil Cloud',
  deploymentSelfHosted: 'Self-hosted',
  newAccounts: 'New accounts',
  enrollmentOpen: 'Anyone can join',
  enrollmentApproval: 'Reviewed by an administrator',
  enrollmentClosed: 'Closed',
  emailTransportNone: 'Off',
  emailTransportSMTP: 'SMTP',
  emailTransportCloudflare: 'Cloudflare Email',
  someoneElse: 'Someone',
  emailSuppressed: 'Not sent',
  emailKindInvitation: 'Invitation to a document',
  emailKindWorkspaceInvitation: 'Invitation to a workspace',
  emailKindEmailChangeRequested: 'Email change requested',
  emailKindNewSignIn: 'New sign-in',
  emailKindTwoStepChanged: 'Two-step sign-in changed',
  emailKindEnrollmentRequested: 'Access request received',
  emailKindAdminNotification: 'New access request (administrators)',
  emailKindEnrollmentApproved: 'Access approved',
  emailKindEnrollmentRejected: 'Access declined',
  emailKindEnrollmentRevoked: 'Access removed',
  emailKindVerification: 'Verify your email',
  emailKindPasswordReset: 'Reset your password',
  emailKindPasswordChanged: 'Password changed',
  emailKindOther: 'Email',
  activityApproved: 'approved access for',
  activityRejected: 'declined access for',
  activityRevoked: 'removed access for',
  activitySuspended: 'suspended',
  activityRestored: 'restored',
  activitySignedOut: 'signed out everywhere:',
  activityMadeAdmin: 'made an administrator:',
  activityRemovedAdmin: 'removed administrator rights from',
  activityEmailRetried: 'retried an email to',
  activityTwoStepReset: 'reset two-step sign-in for',
  activityPictureRemoved: 'removed the picture of',
  activityReason: params('Reason: {reason}'),
  activityChanged: 'changed',
  errorTitle: 'That didn’t work',
  errorLastMethod: 'Keep at least one way to sign in.',
  errorSessionNotFresh: 'For your security, sign in again before making this change.',
  errorLastAdmin: 'The server needs at least one administrator.',
  errorSelfAction: 'You can’t do that to your own account.',
  errorTwoStepRequired: 'Turn on two-step sign-in first.',
  errorNotAllowed: 'You don’t have permission to do that.',
  errorNetwork: 'Couldn’t reach the server. Check your connection.',
  errorAlreadyDecided: 'Someone already decided this request. Refresh to see it.',
  errorEmailUnchanged: 'That’s already your email.',
  errorCurrentSession: 'Sign out to end the session you’re using.',
  errorPictureInvalid: 'The server can’t use this picture. Choose another image.',
  passwordResetSent: 'We emailed you a link to set a password.'
} as const

export const cloudPortalMessages = i18n('cloudPortal', cloudPortalMessageDefaults)