Skip to content

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

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

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

export const filesMessageDefaults = {
  importLabel: 'Import',
  importHTMLCSS: 'Import HTML/CSS',
  importHTMLCSSDescription: 'Paste HTML plus optional CSS or compiled Tailwind CSS.',
  importFailed: 'Import failed. Check the HTML and CSS, then try again.',
  importReplacesDocument: 'Import replaces the current document.',
  importing: 'Importing…',
  importToCanvas: 'Import to canvas',
  newTab: 'New tab',
  home: 'Home',
  closeTab: params('Close {name}'),
  unsavedChanges: 'Unsaved changes',
  saveBeforeClosing: params('Save changes to “{name}”?'),
  saveBeforeClosingDescription: 'Your changes will be discarded if you close without saving.',
  discard: 'Don’t Save',
  clipboardImageUnavailableWeb:
    'Pasted design includes 1 image that cannot be loaded in the web app. Use the desktop app to include it.',
  clipboardImagesUnavailableWeb: params(
    'Pasted design includes {count} images that cannot be loaded in the web app. Use the desktop app to include them.'
  ),
  clipboardImageFetchFailed:
    'Failed to fetch 1 image from Figma. Check that the source file is accessible and try again.',
  clipboardImagesFetchFailed: params(
    'Failed to fetch {count} images from Figma. Check that the source file is accessible and try again.'
  ),
  mermaidPasteFailed: params('Could not read the Mermaid diagram. {error}'),
  recentFiles: 'Recent files',
  recentFilesDescription: 'Continue working on a design or start a new one.',
  noRecentFiles: 'No recent files yet',
  noRecentFilesDescription: 'Files you open in the desktop app will appear here.',
  noRecentDesigns: 'No recent designs',
  noRecentBoards: 'No recent boards',
  searchFiles: 'Search files…',
  searchRecentAndStorageFiles: 'Search recent and storage files…',
  newDesign: 'New design',
  newFile: 'New file',
  createDesign: 'Design',
  createBoard: 'Board',
  allFiles: 'All files',
  fileKind: 'File type',
  createIn: params('Creates it in {place}'),
  noMatchingFiles: params('No files match “{query}”.'),
  documentActions: params('Actions for {name}'),
  deleteDocument: 'Delete',
  removeFromRecent: 'Remove from recent',
  deleteDocumentConfirmation: params('Delete “{name}”?'),
  deleteDocumentDescription:
    'The document is deleted for everyone who can open it. This can’t be undone.',
  deleteDocumentFailed: params('Couldn’t delete “{name}”. Try again.'),
  saveAsPrompt: 'Save as:',
  browserFileAPINotSupported:
    "Your browser doesn't support the local file API. Files will be downloaded instead of saved in place."
} as const

export const filesMessages = i18n('files', filesMessageDefaults)