File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ export default class DOMLocalization extends Localization {
294294 return undefined ;
295295 }
296296
297- const keys = elements . map ( this . getKeysForElement ) ;
297+ const keys = elements . map ( this . getAttributes ) ;
298298 const translations = await this . formatMessages ( keys ) ;
299299 return this . applyTranslations ( elements , translations ) ;
300300 }
@@ -337,19 +337,4 @@ export default class DOMLocalization extends Localization {
337337
338338 return nodes ;
339339 }
340-
341- /**
342- * Get the `data-l10n-*` attributes from DOM elements as a two-element
343- * array.
344- *
345- * @param {Element } element
346- * @returns {Object }
347- * @private
348- */
349- getKeysForElement ( element ) {
350- return {
351- id : element . getAttribute ( L10NID_ATTR_NAME ) ,
352- args : JSON . parse ( element . getAttribute ( L10NARGS_ATTR_NAME ) || null ) ,
353- } ;
354- }
355340}
You can’t perform that action at this time.
0 commit comments