AI-native design editor. Open-source Figma alternative.
import { params } from '@nanostores/i18n'
import { i18n } from '#vue/i18n/create'
export const designCheckMessageDefaults = {
tab: 'Lint',
tabCount: params('errors and warnings: {count}'),
scope: 'Scope',
scopePage: 'Page',
scopeSelection: 'Selection',
scopeDocument: 'Document',
errors: 'Errors',
warnings: 'Warnings',
suggestions: 'Suggestions',
filterBySeverity: params('Show {severity}'),
filterSeverities: 'Filter by severity',
showOnCanvas: 'Show issues on canvas',
rules: 'Rules',
presetRecommended: 'Recommended',
presetStrict: 'Strict',
presetAccessibility: 'Accessibility',
ruleActions: 'Rule actions',
turnOffRule: 'Turn off rule',
turnOnRules: params('Turn on {count} turned-off rules'),
checking: 'Checking…',
emptyPage: 'No issues on this page',
emptySelection: 'No issues in the selection',
emptyDocument: 'No issues in this document',
documentUnchecked: params('Pages not checked yet: {count}'),
onPage: params('On {page}'),
emptyDescription: params('Checked with {preset} rules.'),
noSelection: 'Select layers to check them',
noSelectionDescription: 'Issues inside the selected layers appear here.',
noFilteredIssues: 'No issues match the filters',
clearFilters: 'Show all issues',
showMore: params('Show {count} more'),
hiddenLayer: 'Hidden',
missingLayer: 'Deleted layer',
markerMore: params('+{count} more'),
markerLayers: params('{count} layers'),
markerHint: 'Click to review',
edgeLeft: 'Off screen to the left',
edgeRight: 'Off screen to the right',
edgeAbove: 'Off screen above',
edgeBelow: 'Off screen below',
edgeHint: 'Click to go to the nearest',
layerIssues: params('Errors and warnings: {count}'),
layerContainsIssues: 'Contains errors or warnings',
ruleColorContrast: 'Low text contrast',
ruleColorContrastHelp:
'Text needs a contrast ratio of at least 4.5:1 with its background to meet WCAG AA.',
ruleTouchTargetSize: 'Small touch target',
ruleTouchTargetSizeHelp:
'Buttons, links and other controls need room to tap: at least 24 × 24 for WCAG AA, 44 × 44 for AAA.',
ruleMinTextSize: 'Small text',
ruleMinTextSizeHelp: 'Text smaller than 12 px is hard to read on most screens.',
ruleConsistentSpacing: 'Off-scale spacing',
ruleConsistentSpacingHelp:
'Auto layout gaps and padding should come from the spacing scale or a multiple of 4.',
detailSpacingGap: params('Gap {value}'),
detailSpacingTop: params('Top padding {value}'),
detailSpacingRight: params('Right padding {value}'),
detailSpacingBottom: params('Bottom padding {value}'),
detailSpacingLeft: params('Left padding {value}'),
ruleConsistentRadius: 'Off-scale corner radius',
ruleConsistentRadiusHelp: 'Corner radius should come from the radius scale or a variable.',
ruleNoHardcodedColors: 'Unbound color',
ruleNoHardcodedColorsHelp:
'This color matches a color variable. Bind it so theme and palette changes reach this layer.',
detailStrokeColor: params('Stroke: {variable}'),
bindVariable: params('Bind to {variable}'),
bindAll: params('Bind all {count}'),
fixRoundPixels: 'Round to whole pixels',
fixUseValue: params('Change to {value}'),
fixFullRadius: 'Use full radius',
fixConvertToFrame: 'Convert to frame',
fixDeleteLayer: 'Delete layer',
fixAll: params('Fix all {count}'),
ruleNoDefaultNames: 'Default layer name',
ruleNoDefaultNamesHelp: 'Descriptive names make layers easier to find, hand off and reuse.',
rulePreferAutoLayout: 'No auto layout',
rulePreferAutoLayoutHelp: 'Frames that stack several layers resize better with auto layout.',
detailChildren: params('{children} layers'),
ruleTextStyleRequired: 'Unbound text style',
ruleTextStyleRequiredHelp:
'Bind font size or family to a variable to keep typography consistent.',
ruleNoHiddenLayers: 'Hidden layer',
ruleNoHiddenLayersHelp:
'Hidden layers are often leftovers. Delete them unless a state needs them.',
ruleNoDeeplyNested: 'Deep nesting',
ruleNoDeeplyNestedHelp:
'Deeply nested layers are hard to edit. Flatten them or extract a component.',
detailDepth: params('{depth} levels'),
ruleNoEmptyFrames: 'Empty frame',
ruleNoEmptyFramesHelp: 'Frames without content or fill are usually leftovers.',
rulePixelPerfect: 'Subpixel geometry',
rulePixelPerfectHelp: 'Whole-pixel positions and sizes render crisply.',
ruleNoGroups: 'Group',
ruleNoGroupsHelp: 'Frames support auto layout and constraints; groups do not.',
ruleEffectStyleRequired: 'Unshared effect',
ruleEffectStyleRequiredHelp: 'Reuse shadows and blurs through shared presets or variables.',
ruleNoMixedStyles: 'Mixed text styles',
ruleNoMixedStylesHelp: 'Several styles in one text layer are easy to break when editing.',
ruleNoDetachedInstances: 'Looks like a component',
ruleNoDetachedInstancesHelp: 'This frame looks like a reusable element. Use a component instance.'
} as const
export const designCheckMessages = i18n('designCheck', designCheckMessageDefaults)