@webwriter/block-based-code
Version:
Write block-based code (e.g. Scratch) and run it.
74 lines (72 loc) • 1.93 kB
text/typescript
import { Dictionary } from "../types";
// eslint-disable-next-line import/no-default-export
export const dictionary: Dictionary = {
START: "Start Execution",
RESTART: "Restart Execution",
STOP: "Stop Execution",
FULLSCREEN: "Enter Fullscreen",
FULLSCREEN_EXIT: "Leave Fullscreen",
HELP: "Help",
ERROR: "An error occurred!",
EXECUTION_OPTIONS: "Execution Options",
SHORTCUTS: "Shortcuts",
ZOOM: {
IN: "Zoom In",
OUT: "Zoom Out",
RESET: "Reset Zoom",
},
OPTIONS: {
READONLY: "Readonly",
READONLY_TOOLTIP: "Choose whether the blocks can be edited",
STAGE: "Stage",
STAGE_TOOLTIP: "Choose the type of stage",
STAGE_TYPES: {
CODE: "Code",
CANVAS: "Canvas",
},
AVAILABLE_BLOCKS: "Available Blocks",
AVAILABLE_BLOCKS_TOOLTIP: "Choose the blocks that are available in the toolbox",
},
CONTROLS: {
DUPLICATE_BLOCK: "Duplicate",
CROSS_TAB_COPY: "Copy",
CROSS_TAB_PASTE: "Paste",
DELETE: "Delete",
},
BLOCKS: {
// Events
WHEN_START_CLICKED: "when %1 clicked",
// Controls
WAIT: "wait %1 seconds",
REPEAT: "repeat %1",
FOREVER: "forever",
IF: "if %1, then",
ELSE: "else",
STOP: "stop",
// Operators
RANDOM: "random between %1 and %2",
AND: "%1 and %2",
OR: "%1 or %2",
NOT: "not %1",
ABSOLUTE: "absolute of %1",
// Looks
SET_COLOR: "set color effect to %1",
// Motions
MOVE: "move %1 steps",
ROTATE: "rotate by %1 degrees",
SET_ROTATION: "set rotation to %1 degrees",
SET_X: "set x to %1",
SET_Y: "set y to %1",
SET_XY: "set x to %1 and y to %2",
GET_X: "x-position",
GET_Y: "y-position",
},
CATEGORY: {
CONTROLS: "Controls",
EVENTS: "Events",
OPERATORS: "Operators",
LOOKS: "Looks",
MOTIONS: "Motions",
VARIABLES: "Variables",
},
};