Skip to content

@fabwcie/free-drawing / i18n/I18n

i18n/I18n ​

Classes ​

I18n ​

Defined in: packages/free-drawing/src/i18n/I18n.ts:77

Texts of interface in a language, updated when it changes

Constructors ​

Constructor ​

new I18n(language, custom?): I18n

Defined in: packages/free-drawing/src/i18n/I18n.ts:92

Texts in a language, with custom texts of the app

Parameters
language ​

"en" | "fr" | "es" | "de"

Language of texts

custom? ​

CustomTranslations = {}

Texts replacing default ones, per language

Returns

I18n

Properties ​

language ​

language: "en" | "fr" | "es" | "de"

Defined in: packages/free-drawing/src/i18n/I18n.ts:79

Current language, see setLanguage

t ​

t: Translate

Defined in: packages/free-drawing/src/i18n/I18n.ts:103

Text of interface in current language, placeholders replaced

Param

key

Key of the text: custom text, else of current language, else English, else the key itself

Param

params

Values of {name} placeholders, unknown placeholders kept

Returns

Translated text

Methods ​

extend() ​

extend(translations): void

Defined in: packages/free-drawing/src/i18n/I18n.ts:119

Texts of a plugin added (its own keys), in every language given, English for missing ones

Parameters
translations ​

PluginTranslations

Texts of the plugin by language

Returns

void

has() ​

has(key): boolean

Defined in: packages/free-drawing/src/i18n/I18n.ts:130

A key has a text: of the library, of a plugin or of the app

Parameters
key ​

string

Key of a text

Returns

boolean

true when t gives a text, not the key itself

setLanguage() ​

setLanguage(language): void

Defined in: packages/free-drawing/src/i18n/I18n.ts:151

Change language: texts given to translate are updated

Parameters
language ​

"en" | "fr" | "es" | "de"

New language of texts (English for another value)

Returns

void

translate() ​

translate(update): void

Defined in: packages/free-drawing/src/i18n/I18n.ts:142

Apply texts now and when language changes

Parameters
update ​

(t) => void

Sets texts of elements with given translate function

Returns

void

Variables ​

languages ​

const languages: object

Defined in: packages/free-drawing/src/i18n/I18n.ts:10

Languages of interface, with their name in their language (language choice)

Type Declaration

de

de: object

German

de.name

name: string = 'Deutsch'

Name of language in itself

de.translations

translations: Translations = de

Texts of interface

en

en: object

English, reference language: its texts replace missing ones of other languages

en.name

name: string = 'English'

Name of language in itself

en.translations

translations: object = en

Texts of interface

en.translations.action.alignBottom

action.alignBottom: string = 'Align bottom'

en.translations.action.alignCenter

action.alignCenter: string = 'Center horizontally'

en.translations.action.alignLeft

action.alignLeft: string = 'Align left'

en.translations.action.alignMiddle

action.alignMiddle: string = 'Center vertically'

en.translations.action.alignRight

action.alignRight: string = 'Align right'

en.translations.action.alignTop

action.alignTop: string = 'Align top'

en.translations.action.bringForward

action.bringForward: string = 'Bring forward'

en.translations.action.bringToFront

action.bringToFront: string = 'Bring to front'

en.translations.action.copyPng

action.copyPng: string = 'Copy as PNG'

en.translations.action.copyStyle

action.copyStyle: string = 'Copy style'

en.translations.action.copySvg

action.copySvg: string = 'Copy as SVG'

en.translations.action.delete

action.delete: string = 'Delete'

en.translations.action.distributeHorizontal

action.distributeHorizontal: string = 'Distribute horizontally'

en.translations.action.distributeVertical

action.distributeVertical: string = 'Distribute vertically'

en.translations.action.duplicate

action.duplicate: string = 'Duplicate'

en.translations.action.fitTextWidth

action.fitTextWidth: string = 'Fit width to text'

en.translations.action.flipHorizontal

action.flipHorizontal: string = 'Flip horizontal'

en.translations.action.flipVertical

action.flipVertical: string = 'Flip vertical'

en.translations.action.group

action.group: string = 'Group'

en.translations.action.insertImage

action.insertImage: string = 'Insert image'

en.translations.action.link

action.link: string = 'Link'

en.translations.action.pasteStyle

action.pasteStyle: string = 'Paste style'

en.translations.action.rotateLeft

action.rotateLeft: string = 'Rotate 90° left'

en.translations.action.rotateRight

action.rotateRight: string = 'Rotate 90° right'

en.translations.action.sendBackward

action.sendBackward: string = 'Send backward'

en.translations.action.sendToBack

action.sendToBack: string = 'Send to back'

en.translations.action.stackHorizontal

action.stackHorizontal: string = 'Stack horizontally'

en.translations.action.stackVertical

action.stackVertical: string = 'Stack vertically'

en.translations.action.ungroup

action.ungroup: string = 'Ungroup'

en.translations.arrow.curved

arrow.curved: string = 'Curved'

en.translations.arrow.elbow

arrow.elbow: string = 'Elbow'

en.translations.arrow.straight

arrow.straight: string = 'Straight'

en.translations.arrowhead.arrow

arrowhead.arrow: string = 'Arrow'

en.translations.arrowhead.bar

arrowhead.bar: string = 'Bar'

en.translations.arrowhead.dot

arrowhead.dot: string = 'Dot'

en.translations.arrowhead.none

arrowhead.none: string = 'None'

en.translations.arrowhead.triangle

arrowhead.triangle: string = 'Triangle'

en.translations.collab.accept

collab.accept: string = 'Accept'

en.translations.collab.acceptLabel

collab.acceptLabel: string = 'Let {name} draw'

en.translations.collab.anonymous

collab.anonymous: string = 'Anonymous'

en.translations.collab.canDraw

collab.canDraw: string = 'Can draw'

en.translations.collab.canDrawLabel

collab.canDrawLabel: string = '{name} can draw'

en.translations.collab.connected

collab.connected: string = 'Connected ({count})'

en.translations.collab.connecting

collab.connecting: string = 'Connecting...'

en.translations.collab.copy

collab.copy: string = 'Copy'

en.translations.collab.encrypted

collab.encrypted: string = 'End-to-end encrypted: only people with the link see the drawing, not the server.'

en.translations.collab.follow

collab.follow: string = 'Follow'

en.translations.collab.following

collab.following: string = 'You follow the view of {name}'

en.translations.collab.followPresentation

collab.followPresentation: string = 'Follow the view of {name}'

en.translations.collab.intro

collab.intro: string = 'Draw with other people in real time: everyone with the link joins this drawing.'

en.translations.collab.introInvited

collab.introInvited: string = 'You are invited to draw together: enter your name to join the session.'

en.translations.collab.introJoined

collab.introJoined: string = 'You joined the live collaboration session.'

en.translations.collab.introJoinedOf

collab.introJoinedOf: string = 'You joined the live collaboration session of {name}.'

en.translations.collab.invitedBy

collab.invitedBy: string = 'invited by {name}'

en.translations.collab.join

collab.join: string = 'Join session'

en.translations.collab.leave

collab.leave: string = 'Leave session'

en.translations.collab.link

collab.link: string = 'Link'

en.translations.collab.live

collab.live: string = 'Live'

en.translations.collab.liveState

collab.liveState: string = 'Live collaboration: {state}'

en.translations.collab.name

collab.name: string = 'Your name'

en.translations.collab.newUsersCanDraw

collab.newUsersCanDraw: string = 'New participants can draw'

en.translations.collab.notEncrypted

collab.notEncrypted: string = 'Not encrypted: the server of the session can read the drawing.'

en.translations.collab.owner

collab.owner: string = 'Owner'

en.translations.collab.present

collab.present: string = 'Present my view'

en.translations.collab.presenting

collab.presenting: string = 'Presenting'

en.translations.collab.qrCode

collab.qrCode: string = 'QR code of the link, to scan with a phone'

en.translations.collab.refuse

collab.refuse: string = 'Refuse'

en.translations.collab.refuseLabel

collab.refuseLabel: string = 'Refuse the request of {name}'

en.translations.collab.requestEdit

collab.requestEdit: string = 'Ask to draw'

en.translations.collab.requests

collab.requests: string = 'Asking to draw'

en.translations.collab.requestsCount

collab.requestsCount: string = '{count} asking to draw'

en.translations.collab.requestSent

collab.requestSent: string = 'Request sent'

en.translations.collab.settings

collab.settings: string = 'Link and settings...'

en.translations.collab.start

collab.start: string = 'Start session'

en.translations.collab.stop

collab.stop: string = 'Stop session'

en.translations.collab.title

collab.title: string = 'Live collaboration'

en.translations.collab.users

collab.users: string = 'Participants'

en.translations.collab.viewOnly

collab.viewOnly: string = 'View only'

en.translations.collab.you

collab.you: string = '{name} (you)'

en.translations.collab.youCanDraw

collab.youCanDraw: string = 'You can draw'

en.translations.collab.youViewOnly

collab.youViewOnly: string = 'You view only'

en.translations.color.black

color.black: string = 'Black'

en.translations.color.blue

color.blue: string = 'Blue'

en.translations.color.custom

color.custom: string = 'Custom color'

en.translations.color.green

color.green: string = 'Green'

en.translations.color.lightBeige

color.lightBeige: string = 'Light beige'

en.translations.color.lightBlue

color.lightBlue: string = 'Light blue'

en.translations.color.lightGray

color.lightGray: string = 'Light gray'

en.translations.color.lightGreen

color.lightGreen: string = 'Light green'

en.translations.color.lightRed

color.lightRed: string = 'Light red'

en.translations.color.lightYellow

color.lightYellow: string = 'Light yellow'

en.translations.color.orange

color.orange: string = 'Orange'

en.translations.color.pick

color.pick: string = 'Pick a color on the screen'

en.translations.color.pink

color.pink: string = 'Pink'

en.translations.color.red

color.red: string = 'Red'

en.translations.color.transparent

color.transparent: string = 'Transparent'

en.translations.color.white

color.white: string = 'White'

en.translations.color.yellow

color.yellow: string = 'Yellow'

en.translations.commands.empty

commands.empty: string = 'No command found'

en.translations.commands.file

commands.file: string = 'File'

en.translations.commands.language

commands.language: string = 'Language: {name}'

en.translations.commands.search

commands.search: string = 'Search a command'

en.translations.confirm.cancel

confirm.cancel: string = 'Cancel'

en.translations.confirm.clearCanvas

confirm.clearCanvas: string = 'Remove the whole drawing?'

en.translations.confirm.clearStorage

confirm.clearStorage: string = 'Remove the drawing, its images, the library and the preferences stored in this browser?'

en.translations.confirm.confirm

confirm.confirm: string = 'Confirm'

en.translations.confirm.leaveCollaboration

confirm.leaveCollaboration: string = 'Leave the live collaboration session?'

en.translations.confirm.message

confirm.message: string = 'Confirm this action?'

en.translations.confirm.stopCollaboration

confirm.stopCollaboration: string = 'Stop the live collaboration session?'

en.translations.context.lock

context.lock: string = 'Lock'

en.translations.context.paste

context.paste: string = 'Paste'

en.translations.context.snap

context.snap: string = 'Snap to object'

en.translations.context.unlock

context.unlock: string = 'Unlock'

en.translations.drawer.label

drawer.label: string = 'Drawing board'

en.translations.edges.auto

edges.auto: string = 'Auto'

en.translations.edges.radius

edges.radius: string = 'Corner radius'

en.translations.edges.round

edges.round: string = 'Round'

en.translations.edges.sharp

edges.sharp: string = 'Sharp'

en.translations.error.clipboardUnavailable

error.clipboardUnavailable: string = 'clipboard not available in this browser or page'

en.translations.error.damagedLink

error.damagedLink: string = 'incomplete or damaged link'

en.translations.error.drawingTooBig

error.drawingTooBig: string = 'drawing too big to open'

en.translations.error.encryptionUnsupported

error.encryptionUnsupported: string = 'the server does not support end-to-end encryption'

en.translations.error.imageNotCreated

error.imageNotCreated: string = 'image not created by the browser'

en.translations.error.insecurePage

error.insecurePage: string = 'end-to-end encryption needs a secure page (HTTPS)'

en.translations.error.noDrawingInImage

error.noDrawingInImage: string = 'image without a drawing (exported without it, or changed since)'

en.translations.error.notAllowed

error.notAllowed: string = 'permission denied by the browser'

en.translations.error.notDrawingFile

error.notDrawingFile: string = 'not a drawing file'

en.translations.error.nothingToExport

error.nothingToExport: string = 'nothing to export'

en.translations.error.notImage

error.notImage: string = 'not an image of a supported format (PNG, JPEG, WebP, GIF, SVG)'

en.translations.error.notLibraryFile

error.notLibraryFile: string = 'not a library file'

en.translations.error.roomKey

error.roomKey: string = 'key of the session missing or wrong in the link'

en.translations.error.serverUnreachable

error.serverUnreachable: string = 'server unreachable'

en.translations.error.storageFull

error.storageFull: string = 'browser storage full'

en.translations.export.background

export.background: string = 'Background'

en.translations.export.copy

export.copy: string = 'Copy to clipboard'

en.translations.export.dark

export.dark: string = 'Dark mode'

en.translations.export.empty

export.empty: string = 'Nothing to export'

en.translations.export.options

export.options: string = 'Export options'

en.translations.export.preview

export.preview: string = 'Preview of exported image'

en.translations.export.saveAs

export.saveAs: string = 'Save as {format}'

en.translations.export.saveFile

export.saveFile: string = 'Save as {extension} file'

en.translations.export.scale

export.scale: string = 'Scale (png, pdf)'

en.translations.export.selected

export.selected: string = 'Only selected shapes'

en.translations.export.title

export.title: string = 'Export image'

en.translations.export.withDrawing

export.withDrawing: string = 'Keep the drawing in PNG and SVG images (open them again to edit it)'

en.translations.grid.dots

grid.dots: string = 'Dots'

en.translations.grid.isometric

grid.isometric: string = 'Isometric'

en.translations.grid.lines

grid.lines: string = 'Lines'

en.translations.grid.squares

grid.squares: string = 'Squares'

en.translations.grid.style

grid.style: string = 'Grid style'

en.translations.grid.styleCommand

grid.styleCommand: string = 'Grid: {style}'

en.translations.help.arrowUnlinked

help.arrowUnlinked: string = 'Arrow not linked to shapes'

en.translations.help.cancelDrawing

help.cancelDrawing: string = 'Cancel the shape, stroke or selection in progress'

en.translations.help.constrainDrawing

help.constrainDrawing: string = 'Square, circle, 45° line, straight stroke'

en.translations.help.constrainSelection

help.constrainSelection: string = 'Keep proportions, rotate by 15°, move straight'

en.translations.help.deleteSelection

help.deleteSelection: string = 'Delete selection'

en.translations.help.documentation

help.documentation: string = 'Documentation'

en.translations.help.duplicate

help.duplicate: string = 'Duplicate selection'

en.translations.help.editor

help.editor: string = 'Editor'

en.translations.help.export

help.export: string = 'Export image'

en.translations.help.forwardBackward

help.forwardBackward: string = 'Bring forward / send backward'

en.translations.help.frontBack

help.frontBack: string = 'Bring to front / send to back'

en.translations.help.grid

help.grid: string = 'Grid'

en.translations.help.group

help.group: string = 'Group / ungroup selection'

en.translations.help.issue

help.issue: string = 'Found an issue? Please tell us!'

en.translations.help.layers

help.layers: string = 'Layers panel'

en.translations.help.layersSelect

help.layersSelect: string = 'Select several layers'

en.translations.help.lock

help.lock: string = 'Lock or unlock selection'

en.translations.help.move

help.move: string = 'Move selection'

en.translations.help.open

help.open: string = 'Open file'

en.translations.help.or

help.or: string = 'or'

en.translations.help.paste

help.paste: string = 'Paste text'

en.translations.help.save

help.save: string = 'Save as file'

en.translations.help.selectAll

help.selectAll: string = 'Select all'

en.translations.help.selectInGroup

help.selectInGroup: string = 'Select shape in a group'

en.translations.help.shortcuts

help.shortcuts: string = 'Keyboard shortcuts'

en.translations.help.snap

help.snap: string = 'Snap to objects'

en.translations.help.spaceDrag

help.spaceDrag: string = 'held, then drag'

en.translations.help.title

help.title: string = 'Help'

en.translations.help.tools

help.tools: string = 'Tools'

en.translations.help.toolsConstrain

help.toolsConstrain: string = 'Square, circle, 45° line (while drawing)'

en.translations.help.view

help.view: string = 'View'

en.translations.help.wheelDrag

help.wheelDrag: string = 'pressed, then drag'

en.translations.help.whileDrawing

help.whileDrawing: string = 'while drawing'

en.translations.help.whileTransforming

help.whileTransforming: string = 'while resizing, rotating, moving'

en.translations.help.zoom

help.zoom: string = 'Zoom'

en.translations.history.label

history.label: string = 'History'

en.translations.history.redo

history.redo: string = 'Redo'

en.translations.history.undo

history.undo: string = 'Undo'

en.translations.key.alt

key.alt: string = 'Alt'

en.translations.key.arrows

key.arrows: string = 'Arrows'

en.translations.key.backspace

key.backspace: string = 'Backspace'

en.translations.key.click

key.click: string = 'Click'

en.translations.key.ctrl

key.ctrl: string = 'Ctrl'

en.translations.key.delete

key.delete: string = 'Delete'

en.translations.key.end

key.end: string = 'End'

en.translations.key.enter

key.enter: string = 'Enter'

en.translations.key.escape

key.escape: string = 'Escape'

en.translations.key.home

key.home: string = 'Home'

en.translations.key.shift

key.shift: string = 'Shift'

en.translations.key.space

key.space: string = 'Space'

en.translations.key.tab

key.tab: string = 'Tab'

en.translations.key.wheel

key.wheel: string = 'Wheel'

en.translations.language.auto

language.auto: string = 'Automatic (browser)'

en.translations.layers.close

layers.close: string = 'Close layers'

en.translations.layers.delete

layers.delete: string = 'Delete {name}'

en.translations.layers.drag

layers.drag: string = 'Drag to reorder'

en.translations.layers.empty

layers.empty: string = 'No shapes yet'

en.translations.layers.group

layers.group: string = 'Group selection'

en.translations.layers.hide

layers.hide: string = 'Hide {name}'

en.translations.layers.lock

layers.lock: string = 'Lock {name}'

en.translations.layers.name

layers.name: string = 'Name'

en.translations.layers.range

layers.range: string = 'Select a range'

en.translations.layers.shapesOf

layers.shapesOf: string = 'Shapes of {name}'

en.translations.layers.title

layers.title: string = 'Layers'

en.translations.layers.toggle

layers.toggle: string = 'Add or remove'

en.translations.library.add

library.add: string = 'Add selection to library'

en.translations.library.close

library.close: string = 'Close library'

en.translations.library.empty

library.empty: string = 'Select shapes and add them here to insert them again in any drawing.'

en.translations.library.export

library.export: string = 'Export the library'

en.translations.library.hint

library.hint: string = 'Click an item to insert it in the middle of the view, or drag it onto the drawing.'

en.translations.library.import

library.import: string = 'Import a library'

en.translations.library.insert

library.insert: string = 'Insert {name}'

en.translations.library.remove

library.remove: string = 'Remove {name} from library'

en.translations.library.shapes

library.shapes: string = '{count} shapes'

en.translations.library.title

library.title: string = 'Library'

en.translations.link.address

link.address: string = 'Link address'

en.translations.link.open

link.open: string = 'Open link'

en.translations.link.placeholder

link.placeholder: string = 'https://…'

en.translations.link.remove

link.remove: string = 'Remove link'

en.translations.menu.background

menu.background: string = 'Background color'

en.translations.menu.clearCanvas

menu.clearCanvas: string = 'Clear canvas'

en.translations.menu.clearStorage

menu.clearStorage: string = 'Clear stored data'

en.translations.menu.collaboration

menu.collaboration: string = 'Live collaboration...'

en.translations.menu.collaborationOn

menu.collaborationOn: string = 'On'

en.translations.menu.collaborationUsers

menu.collaborationUsers: string = 'On ({count})'

en.translations.menu.commands

menu.commands: string = 'Command palette'

en.translations.menu.copyLink

menu.copyLink: string = 'Copy link'

en.translations.menu.darkMode

menu.darkMode: string = 'Dark mode'

en.translations.menu.export

menu.export: string = 'Export image...'

en.translations.menu.github

menu.github: string = 'Github'

en.translations.menu.githubLabel

menu.githubLabel: string = 'Github (opens in a new tab)'

en.translations.menu.label

menu.label: string = 'Menu'

en.translations.menu.language

menu.language: string = 'Language'

en.translations.menu.open

menu.open: string = 'Open'

en.translations.menu.preferences

menu.preferences: string = 'Preferences...'

en.translations.menu.save

menu.save: string = 'Save now'

en.translations.menu.saveAs

menu.saveAs: string = 'Save as...'

en.translations.menu.showGrid

menu.showGrid: string = 'Show grid'

en.translations.menu.unsaved

menu.unsaved: string = 'Not saved'

en.translations.menu.zenMode

menu.zenMode: string = 'Zen mode'

en.translations.modal.close

modal.close: string = 'Close'

en.translations.navigation.description

navigation.description: string = 'Enter: first shape. Tab, Shift + Tab: next, previous shape. Enter: shapes of a group or frame, edit a text (read only: open its link). Shift + Enter: its group or frame. Escape: leave the shapes.'

en.translations.navigation.enter

navigation.enter: string = 'Select the first shape, the shapes of a group or frame, edit a text'

en.translations.navigation.from

navigation.from: string = 'from {name}'

en.translations.navigation.in

navigation.in: string = 'in {name}'

en.translations.navigation.index

navigation.index: string = '{index} of {count}'

en.translations.navigation.leave

navigation.leave: string = 'Leave the shapes'

en.translations.navigation.left

navigation.left: string = 'No shape selected'

en.translations.navigation.link

navigation.link: string = 'link: {link}'

en.translations.navigation.locked

navigation.locked: string = 'locked'

en.translations.navigation.nextPrevious

navigation.nextPrevious: string = 'Select the next / previous shape'

en.translations.navigation.onDrawing

navigation.onDrawing: string = 'focus on the drawing'

en.translations.navigation.parent

navigation.parent: string = 'Select the group or frame of the shape'

en.translations.navigation.shapes

navigation.shapes: string = 'shapes inside: {count}'

en.translations.navigation.text

navigation.text: string = 'text: {text}'

en.translations.navigation.to

navigation.to: string = 'to {name}'

en.translations.overlay.actions

overlay.actions: string = 'Actions'

en.translations.overlay.align

overlay.align: string = 'Align'

en.translations.overlay.arrowType

overlay.arrowType: string = 'Arrow'

en.translations.overlay.background

overlay.background: string = 'Background'

en.translations.overlay.brush

overlay.brush: string = 'Brush options'

en.translations.overlay.color

overlay.color: string = 'Color'

en.translations.overlay.distribute

overlay.distribute: string = 'Distribute'

en.translations.overlay.edges

overlay.edges: string = 'Edges'

en.translations.overlay.endHead

overlay.endHead: string = 'End'

en.translations.overlay.layers

overlay.layers: string = 'Layers'

en.translations.overlay.note

overlay.note: string = 'Note options'

en.translations.overlay.opacity

overlay.opacity: string = 'Opacity'

en.translations.overlay.recognizeShapes

overlay.recognizeShapes: string = 'Recognize shapes'

en.translations.overlay.recognizeShapesHint

overlay.recognizeShapesHint: string = 'A rectangle, ellipse, triangle, diamond, line or arrow drawn in one stroke becomes this shape (undo gives back the stroke)'

en.translations.overlay.selection

overlay.selection: string = 'Selection options'

en.translations.overlay.shape

overlay.shape: string = 'Shape options'

en.translations.overlay.startHead

overlay.startHead: string = 'Start'

en.translations.overlay.stroke

overlay.stroke: string = 'Stroke'

en.translations.overlay.strokeStyle

overlay.strokeStyle: string = 'Stroke style'

en.translations.overlay.strokeWidth

overlay.strokeWidth: string = 'Stroke width'

en.translations.overlay.text

overlay.text: string = 'Text options'

en.translations.overlay.tool

overlay.tool: string = 'Tool options'

en.translations.position.label

position.label: string = 'Position'

en.translations.position.recenter

position.recenter: string = 'Back to origin'

en.translations.preferences.appearance

preferences.appearance: string = 'Appearance'

en.translations.preferences.autoSave

preferences.autoSave: string = 'Auto save'

en.translations.preferences.dark

preferences.dark: string = 'Dark'

en.translations.preferences.drawing

preferences.drawing: string = 'Drawing'

en.translations.preferences.light

preferences.light: string = 'Light'

en.translations.preferences.save

preferences.save: string = 'Save'

en.translations.preferences.shapeRecognition

preferences.shapeRecognition: string = 'Recognize shapes drawn with the brush'

en.translations.preferences.system

preferences.system: string = 'System'

en.translations.preferences.theme

preferences.theme: string = 'Theme'

en.translations.preferences.title

preferences.title: string = 'Preferences'

en.translations.preferences.wheel

preferences.wheel: string = 'Mouse wheel'

en.translations.replay.count

replay.count: string = '{current} / {total}'

en.translations.replay.empty

replay.empty: string = 'Nothing to replay: the drawing is empty'

en.translations.replay.finished

replay.finished: string = 'Replay finished'

en.translations.replay.firstLast

replay.firstLast: string = 'Start / whole drawing'

en.translations.replay.label

replay.label: string = 'Replay of the drawing'

en.translations.replay.pause

replay.pause: string = 'Pause'

en.translations.replay.play

replay.play: string = 'Play'

en.translations.replay.playPause

replay.playPause: string = 'Play / pause'

en.translations.replay.restart

replay.restart: string = 'Start again'

en.translations.replay.speed

replay.speed: string = 'Speed: {speed}×'

en.translations.replay.start

replay.start: string = 'Replay the drawing'

en.translations.replay.step

replay.step: string = 'Previous / next shape'

en.translations.replay.stop

replay.stop: string = 'Stop the replay'

en.translations.replay.whileReplaying

replay.whileReplaying: string = 'while replaying'

en.translations.search.close

search.close: string = 'Close search'

en.translations.search.count

search.count: string = '{current} of {total}'

en.translations.search.label

search.label: string = 'Search texts'

en.translations.search.next

search.next: string = 'Next result'

en.translations.search.none

search.none: string = 'No results'

en.translations.search.previous

search.previous: string = 'Previous result'

en.translations.selectionMenu.label

selectionMenu.label: string = 'Selection actions'

en.translations.shapes.arrow

shapes.arrow: string = 'Arrow'

en.translations.shapes.blockArrow

shapes.blockArrow: string = 'Block arrow'

en.translations.shapes.bubble

shapes.bubble: string = 'Speech bubble'

en.translations.shapes.checkbox

shapes.checkbox: string = 'Check box'

en.translations.shapes.cloud

shapes.cloud: string = 'Cloud'

en.translations.shapes.diamond

shapes.diamond: string = 'Diamond'

en.translations.shapes.ellipse

shapes.ellipse: string = 'Ellipse'

en.translations.shapes.frame

shapes.frame: string = 'Frame'

en.translations.shapes.frameName

shapes.frameName: string = 'Frame {number}'

en.translations.shapes.freehand

shapes.freehand: string = 'Freehand'

en.translations.shapes.group

shapes.group: string = 'Group'

en.translations.shapes.heart

shapes.heart: string = 'Heart'

en.translations.shapes.hexagon

shapes.hexagon: string = 'Hexagon'

en.translations.shapes.highlighter

shapes.highlighter: string = 'Highlight'

en.translations.shapes.image

shapes.image: string = 'Image'

en.translations.shapes.line

shapes.line: string = 'Line'

en.translations.shapes.note

shapes.note: string = 'Note'

en.translations.shapes.rect

shapes.rect: string = 'Rectangle'

en.translations.shapes.shape

shapes.shape: string = 'Shape'

en.translations.shapes.star

shapes.star: string = 'Star'

en.translations.shapes.text

shapes.text: string = 'Text'

en.translations.shapes.triangle

shapes.triangle: string = 'Triangle'

en.translations.slideshow.count

slideshow.count: string = '{current} / {total}'

en.translations.slideshow.firstLast

slideshow.firstLast: string = 'First / last slide'

en.translations.slideshow.label

slideshow.label: string = 'Slideshow'

en.translations.slideshow.next

slideshow.next: string = 'Next slide'

en.translations.slideshow.nextPrevious

slideshow.nextPrevious: string = 'Next / previous slide'

en.translations.slideshow.noFrames

slideshow.noFrames: string = 'No slide to present: draw frames, each one is a slide'

en.translations.slideshow.presentFrom

slideshow.presentFrom: string = 'Present from this frame'

en.translations.slideshow.previous

slideshow.previous: string = 'Previous slide'

en.translations.slideshow.slide

slideshow.slide: string = 'Slide {current} of {total}'

en.translations.slideshow.slideTitled

slideshow.slideTitled: string = 'Slide {current} of {total}: {title}'

en.translations.slideshow.start

slideshow.start: string = 'Present frames'

en.translations.slideshow.stop

slideshow.stop: string = 'Stop presenting'

en.translations.slideshow.whilePresenting

slideshow.whilePresenting: string = 'while presenting'

en.translations.style.dashed

style.dashed: string = 'Dashed'

en.translations.style.dotted

style.dotted: string = 'Dotted'

en.translations.style.solid

style.solid: string = 'Solid'

en.translations.text.align

text.align: string = 'Align'

en.translations.text.alignCenter

text.alignCenter: string = 'Align center'

en.translations.text.alignLeft

text.alignLeft: string = 'Align left'

en.translations.text.alignRight

text.alignRight: string = 'Align right'

en.translations.text.bold

text.bold: string = 'Bold'

en.translations.text.extraLarge

text.extraLarge: string = 'Extra large'

en.translations.text.fontFamily

text.fontFamily: string = 'Font family'

en.translations.text.fontSize

text.fontSize: string = 'Font size'

en.translations.text.italic

text.italic: string = 'Italic'

en.translations.text.large

text.large: string = 'Large'

en.translations.text.medium

text.medium: string = 'Medium'

en.translations.text.small

text.small: string = 'Small'

en.translations.text.strikethrough

text.strikethrough: string = 'Strikethrough'

en.translations.text.style

text.style: string = 'Style'

en.translations.text.underline

text.underline: string = 'Underline'

en.translations.toast.canDraw

toast.canDraw: string = 'You can draw: the owner of the session allowed you'

en.translations.toast.clipboardUnavailable

toast.clipboardUnavailable: string = 'Clipboard unavailable: {error}'

en.translations.toast.collaborationFull

toast.collaborationFull: string = 'This collaboration session is full'

en.translations.toast.collaborationTooBig

toast.collaborationTooBig: string = 'Drawing too big for the collaboration session: your changes are not shared'

en.translations.toast.collaborationUnavailable

toast.collaborationUnavailable: string = 'Collaboration unavailable: {error}'

en.translations.toast.exportFailed

toast.exportFailed: string = 'Export failed: {error}'

en.translations.toast.imageCopied

toast.imageCopied: string = 'Image copied'

en.translations.toast.imageFailed

toast.imageFailed: string = 'Image not added: {error}'

en.translations.toast.imageNotCopied

toast.imageNotCopied: string = "Image can't be copied: {error}"

en.translations.toast.invalidFile

toast.invalidFile: string = 'Invalid drawing file: {error}'

en.translations.toast.invalidLink

toast.invalidLink: string = 'Invalid drawing link: {error}'

en.translations.toast.invalidShapeLink

toast.invalidShapeLink: string = 'Invalid link: web page (https://…) or email address'

en.translations.toast.joinedViewOnly

toast.joinedViewOnly: string = 'You view only: ask the owner of the session to draw (Live button)'

en.translations.toast.libraryImported

toast.libraryImported: string = '{count} items added to the library'

en.translations.toast.libraryNotSaved

toast.libraryNotSaved: string = 'Library not saved: {error}'

en.translations.toast.linkCopied

toast.linkCopied: string = 'Link copied'

en.translations.toast.linkNotCopied

toast.linkNotCopied: string = "Link can't be copied: {error}"

en.translations.toast.loadFailed

toast.loadFailed: string = "Drawing can't be loaded: {error}"

en.translations.toast.presentationEnded

toast.presentationEnded: string = 'Presentation ended'

en.translations.toast.presentationStarted

toast.presentationStarted: string = '{name} presents: you follow their view'

en.translations.toast.requestReceived

toast.requestReceived: string = '{name} asks to draw'

en.translations.toast.requestRefused

toast.requestRefused: string = 'The owner of the session refused your request to draw'

en.translations.toast.requestSent

toast.requestSent: string = 'Request sent to the owner of the session'

en.translations.toast.saved

toast.saved: string = 'Drawing saved'

en.translations.toast.saveFailed

toast.saveFailed: string = "Drawing can't be saved: {error}"

en.translations.toast.selectionTool

toast.selectionTool: string = 'Use the selection tool to move or transform shapes.'

en.translations.toast.storageCleared

toast.storageCleared: string = 'Stored data removed'

en.translations.toast.styleCopied

toast.styleCopied: string = 'Style copied'

en.translations.toast.viewOnly

toast.viewOnly: string = 'View only: the owner of the session removed your right to draw'

en.translations.toolbar.keepTool

toolbar.keepTool: string = 'Keep tool active'

en.translations.toolbar.label

toolbar.label: string = 'Tools'

en.translations.toolbar.moreTools

toolbar.moreTools: string = 'More tools'

en.translations.tools.arrow

tools.arrow: string = 'Arrow'

en.translations.tools.brush

tools.brush: string = 'Brush'

en.translations.tools.circle

tools.circle: string = 'Ellipse'

en.translations.tools.diamond

tools.diamond: string = 'Diamond'

en.translations.tools.eraser

tools.eraser: string = 'Eraser'

en.translations.tools.frame

tools.frame: string = 'Frame'

en.translations.tools.image

tools.image: string = 'Insert image'

en.translations.tools.laser

tools.laser: string = 'Laser pointer'

en.translations.tools.line

tools.line: string = 'Line'

en.translations.tools.note

tools.note: string = 'Note'

en.translations.tools.pan

tools.pan: string = 'Pan'

en.translations.tools.selection

tools.selection: string = 'Select'

en.translations.tools.square

tools.square: string = 'Rectangle'

en.translations.tools.text

tools.text: string = 'Text'

en.translations.tools.triangle

tools.triangle: string = 'Triangle'

en.translations.wheel.command

wheel.command: string = 'Mouse wheel: {action}'

en.translations.wheel.pan

wheel.pan: string = 'Move the view'

en.translations.wheel.zoom

wheel.zoom: string = 'Zoom'

en.translations.width.extraThick

width.extraThick: string = 'Extra thick'

en.translations.width.medium

width.medium: string = 'Medium'

en.translations.width.thick

width.thick: string = 'Thick'

en.translations.width.thin

width.thin: string = 'Thin'

en.translations.zoom.fit

zoom.fit: string = 'Zoom to fit'

en.translations.zoom.in

zoom.in: string = 'Zoom in'

en.translations.zoom.label

zoom.label: string = 'Zoom'

en.translations.zoom.out

zoom.out: string = 'Zoom out'

en.translations.zoom.reset

zoom.reset: string = 'Reset zoom ({percentage})'

en.translations.zoom.selection

zoom.selection: string = 'Zoom to selection'

en.translations.zoom.to100

zoom.to100: string = 'Zoom to 100%'

es

es: object

Spanish

es.name

name: string = 'Español'

Name of language in itself

es.translations

translations: Translations = es

Texts of interface

fr

fr: object

French

fr.name

name: string = 'Français'

Name of language in itself

fr.translations

translations: Translations = fr

Texts of interface

Functions ​

getLanguage() ​

getLanguage(locale?): "en" | "fr" | "es" | "de"

Defined in: packages/free-drawing/src/i18n/I18n.ts:55

Language of a locale (fr-FR gives fr), English when not supported

Parameters

locale?

string | undefined = globalThis.navigator.language

Browser language by default

Returns

"en" | "fr" | "es" | "de"

Supported language of the locale, else en


isLanguage() ​

isLanguage(value): value is "en" | "fr" | "es" | "de"

Defined in: packages/free-drawing/src/i18n/I18n.ts:46

Language of the interface (own key of languages: not constructor, toString...)

Parameters

value

unknown

Value of an option, a preference or a choice (not trusted)

Returns

value is "en" | "fr" | "es" | "de"

true for en, fr, es or de


toLanguageChoice() ​

toLanguageChoice(value): "en" | "fr" | "es" | "de" | "auto"

Defined in: packages/free-drawing/src/i18n/I18n.ts:66

Language chosen by an option or an app: a locale gives its language (fr-FR gives fr)

Parameters

value

unknown

auto, a language or a locale (not trusted)

Returns

"en" | "fr" | "es" | "de" | "auto"

The language, auto (browser one) when not supported