@@ -220,7 +220,9 @@ const cpt = defineComponent({
220220 : this . stats ;
221221 const newIndex = newSiblings . indexOf ( stat ) ;
222222 this . _announce (
223- `Moved to position ${ newIndex + 1 } of ${ newSiblings . length } `
223+ this . i18n ?. movedToPosition
224+ ? this . i18n . movedToPosition ( newIndex + 1 , newSiblings . length )
225+ : `Moved to position ${ newIndex + 1 } of ${ newSiblings . length } `
224226 ) ;
225227 this . _focusNode ( stat ) ;
226228 }
@@ -236,7 +238,9 @@ const cpt = defineComponent({
236238 : this . stats ;
237239 const newIndex = newSiblings . indexOf ( stat ) ;
238240 this . _announce (
239- `Moved to position ${ newIndex + 1 } of ${ newSiblings . length } `
241+ this . i18n ?. movedToPosition
242+ ? this . i18n . movedToPosition ( newIndex + 1 , newSiblings . length )
243+ : `Moved to position ${ newIndex + 1 } of ${ newSiblings . length } `
240244 ) ;
241245 this . _focusNode ( stat ) ;
242246 }
@@ -258,7 +262,9 @@ const cpt = defineComponent({
258262 : this . stats ;
259263 const newIndex = newSiblings . indexOf ( stat ) ;
260264 this . _announce (
261- `Outdented to level ${ stat . level } , position ${ newIndex + 1 } of ${ newSiblings . length } `
265+ this . i18n ?. outdentedToLevel
266+ ? this . i18n . outdentedToLevel ( stat . level , newIndex + 1 , newSiblings . length )
267+ : `Outdented to level ${ stat . level } , position ${ newIndex + 1 } of ${ newSiblings . length } `
262268 ) ;
263269 this . _focusNode ( stat ) ;
264270 }
@@ -277,7 +283,9 @@ const cpt = defineComponent({
277283 this . move ( stat , prevSibling , targetIndex ) ;
278284 this . $emit ( "change" ) ;
279285 this . _announce (
280- `Indented to level ${ stat . level } , position ${ prevSibling . children . indexOf ( stat ) + 1 } of ${ prevSibling . children . length } `
286+ this . i18n ?. indentedToLevel
287+ ? this . i18n . indentedToLevel ( stat . level , prevSibling . children . indexOf ( stat ) + 1 , prevSibling . children . length )
288+ : `Indented to level ${ stat . level } , position ${ prevSibling . children . indexOf ( stat ) + 1 } of ${ prevSibling . children . length } `
281289 ) ;
282290 this . _focusNode ( stat ) ;
283291 }
@@ -485,6 +493,7 @@ const cpt = defineComponent({
485493 } ;
486494 // Accessibility: keyboard instructions
487495 this . ariaInstructions =
496+ this . i18n ?. instructions ??
488497 "Use arrow keys to navigate. Alt plus arrow keys to reorder." ;
489498
490499 this . treeDraggableInstance = extendedDND ( rootEl , {
0 commit comments