Prepare IDE beta 6 with Turkish native dialogs and map errors
This commit is contained in:
1 parent
7724d65e92
commit
75afd01b4b
15 files changed
+265
-57
No files matched your search
@@ -12,7 +12,7 @@ import { RING_OUTER, TILT, ZOOM_MAX, ZOOM_MIN } from './constants'
|
||||
import { clamp, distToSegmentSq, fitScale, fitViewport, nodeRadius } from './geometry'
|
||||
import { NodeContextMenu, type NodeMenuTarget } from './node-context-menu'
|
||||
import { drawScene, drawScramble } from './render'
|
||||
import { decodeShareCode, encodeShareCode, ShareCodeError } from './share-code'
|
||||
import { decodeShareCode, encodeShareCode, shareCodeErrorText } from './share-code'
|
||||
import { ShareControls } from './share-controls'
|
||||
import { buildSimulation } from './simulation'
|
||||
import { formatDate } from './text'
|
||||
@@ -198,10 +198,10 @@ export function StarMap({
|
||||
|
||||
return null
|
||||
} catch (err) {
|
||||
return err instanceof ShareCodeError ? err.message : 'Could not read that map code.'
|
||||
return shareCodeErrorText(err, t.surfaces.mapErrors)
|
||||
}
|
||||
},
|
||||
[onImport]
|
||||
[onImport, t.surfaces.mapErrors]
|
||||
)
|
||||
|
||||
// Mark the canvas dirty and wake the (otherwise-idle) render loop.
|
||||
|
||||
Reference in new issue
Block a user