Skip to content

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

1.3 KB
Raw Blame
import { params } from '@nanostores/i18n'

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

export const updatesMessageDefaults = {
  upToDate: 'OpenPencil is up to date',
  windowTitle: 'Software Update',
  checking: 'Checking for updates…',
  available: params('OpenPencil {version} is available'),
  currentVersion: params('You have version {version}.'),
  whatsNew: 'What’s new',
  noNotes: 'This release has no release notes.',
  fullReleaseNotes: 'Full release notes',
  later: 'Later',
  install: 'Install Update',
  installAndRestart: 'Install and Restart',
  retry: 'Try Again',
  downloadProgress: params('{percent}% · {downloaded} of {total}'),
  downloadProgressUnknown: params('{downloaded} downloaded'),
  installing: 'Installing…',
  installed: params('OpenPencil {version} is installed'),
  restartToFinish: 'Restart OpenPencil to start using the new version.',
  restartNow: 'Restart Now',
  downloadFailed: params('Could not download the update: {error}'),
  installFailed: params('Could not install the update: {error}'),
  restartFailed: params('Could not restart OpenPencil: {error}'),
  unavailable: 'Updates are not available yet. Publish a signed release with latest.json first.',
  checkFailed: params('Could not check for updates: {error}')
} as const

export const updatesMessages = i18n('updates', updatesMessageDefaults)