Skip to content

Commit

Permalink
core(i18n): delete i18n.createMessageInstanceIdFn (#14251)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnj committed Aug 8, 2022
1 parent cf55661 commit d14c7e6
Show file tree
Hide file tree
Showing 155 changed files with 162 additions and 164 deletions.
2 changes: 1 addition & 1 deletion build/build-cdt-strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import * as i18n from '../lib/i18n/i18n.js';
${uiStringsDeclare}
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);
/**
* @param {LH.Crdp.Audits.DeprecationIssueDetails} issueDetails
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/accesskeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'[Learn more about access keys](https://dequeuniversity.com/rules/axe/4.4/accesskeys).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class Accesskeys extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-allowed-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'how to match ARIA attributes to their roles](https://dequeuniversity.com/rules/axe/4.4/aria-allowed-attr).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class ARIAAllowedAttr extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-command-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'When an element doesn\'t have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn how to make command elements more accessible](https://dequeuniversity.com/rules/axe/4.4/aria-command-name).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaCommandName extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-hidden-body.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'Assistive technologies, like screen readers, work inconsistently when `aria-hidden="true"` is set on the document `<body>`. [Learn how `aria-hidden` affects the document body](https://dequeuniversity.com/rules/axe/4.4/aria-hidden-body).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaHiddenBody extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-hidden-focus.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'Focusable descendents within an `[aria-hidden="true"]` element prevent those interactive elements from being available to users of assistive technologies like screen readers. [Learn how `aria-hidden` affects focusable elements](https://dequeuniversity.com/rules/axe/4.4/aria-hidden-focus).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaHiddenFocus extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-input-field-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'When an input field doesn\'t have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn more about input field labels](https://dequeuniversity.com/rules/axe/4.4/aria-input-field-name).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaInputFieldName extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-meter-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'When an element doesn\'t have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn how to name `meter` elements](https://dequeuniversity.com/rules/axe/4.4/aria-meter-name).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaMeterName extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-progressbar-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'When a `progressbar` element doesn\'t have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn how to label `progressbar` elements](https://dequeuniversity.com/rules/axe/4.4/aria-progressbar-name).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaProgressbarName extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-required-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const UIStrings = {
'of the element to screen readers. [Learn more about roles and required attributes](https://dequeuniversity.com/rules/axe/4.4/aria-required-attr).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class ARIARequiredAttr extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-required-children.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const UIStrings = {
'[Learn more about roles and required children elements](https://dequeuniversity.com/rules/axe/4.4/aria-required-children).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaRequiredChildren extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-required-parent.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UIStrings = {
'[Learn more about ARIA roles and required parent element](https://dequeuniversity.com/rules/axe/4.4/aria-required-parent).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaRequiredParent extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'[Learn more about valid ARIA roles](https://dequeuniversity.com/rules/axe/4.4/aria-roles).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaRoles extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-toggle-field-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'When a toggle field doesn\'t have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn more about toggle fields](https://dequeuniversity.com/rules/axe/4.4/aria-toggle-field-name).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaToggleFieldName extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-tooltip-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'When an element doesn\'t have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn how to name `tooltip` elements](https://dequeuniversity.com/rules/axe/4.4/aria-tooltip-name).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaTooltipName extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-treeitem-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'When a `treeitem` element doesn\'t have an accessible name, screen readers announce it with a generic name, making it unusable for users who rely on screen readers. [Learn more about labeling `treeitem` elements](https://dequeuniversity.com/rules/axe/4.4/aria-treeitem-name).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AriaTreeitemName extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-valid-attr-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'more about valid values for ARIA attributes](https://dequeuniversity.com/rules/axe/4.4/aria-valid-attr-value).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class ARIAValidAttr extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/aria-valid-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'more about valid ARIA attributes](https://dequeuniversity.com/rules/axe/4.4/aria-valid-attr).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class ARIAValidAttr extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/axe-audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const UIStrings = {
failingElementsHeader: 'Failing Elements',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class AxeAudit extends Audit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/button-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'[Learn how to make buttons more accessible](https://dequeuniversity.com/rules/axe/4.4/button-name).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class ButtonName extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/bypass.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UIStrings = {
'[Learn more about bypass blocks](https://dequeuniversity.com/rules/axe/4.4/bypass).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class Bypass extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/color-contrast.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UIStrings = {
'[Learn how to provide sufficient color contrast](https://dequeuniversity.com/rules/axe/4.4/color-contrast).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class ColorContrast extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/definition-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const UIStrings = {
'[Learn how to structure definition lists correctly](https://dequeuniversity.com/rules/axe/4.4/definition-list).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class DefinitionList extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/dlitem.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'[Learn how to structure definition lists correctly](https://dequeuniversity.com/rules/axe/4.4/dlitem).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class DLItem extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/document-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'[Learn more about document titles](https://dequeuniversity.com/rules/axe/4.4/document-title).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class DocumentTitle extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/duplicate-id-active.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'All focusable elements must have a unique `id` to ensure that they\'re visible to assistive technologies. [Learn how to fix duplicate `id`s](https://dequeuniversity.com/rules/axe/4.4/duplicate-id-active).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class DuplicateIdActive extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/duplicate-id-aria.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'The value of an ARIA ID must be unique to prevent other instances from being overlooked by assistive technologies. [Learn how to fix duplicate ARIA IDs](https://dequeuniversity.com/rules/axe/4.4/duplicate-id-aria).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class DuplicateIdAria extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/form-field-multiple-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'Form fields with multiple labels can be confusingly announced by assistive technologies like screen readers which use either the first, the last, or all of the labels. [Learn how to use form labels](https://dequeuniversity.com/rules/axe/4.4/form-field-multiple-labels).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class FormFieldMultipleLabels extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/frame-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const UIStrings = {
'[Learn more about frame titles](https://dequeuniversity.com/rules/axe/4.4/frame-title).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class FrameTitle extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/heading-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const UIStrings = {
description: 'Properly ordered headings that do not skip levels convey the semantic structure of the page, making it easier to navigate and understand when using assistive technologies. [Learn more about heading order](https://dequeuniversity.com/rules/axe/4.4/heading-order).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class HeadingOrder extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/html-has-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const UIStrings = {
'[Learn more about the `lang` attribute](https://dequeuniversity.com/rules/axe/4.4/html-has-lang).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class HTMLHasLang extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/html-lang-valid.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UIStrings = {
'[Learn how to use the `lang` attribute](https://dequeuniversity.com/rules/axe/4.4/html-lang-valid).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class HTMLLangValid extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/image-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'[Learn more about the `alt` attribute](https://dequeuniversity.com/rules/axe/4.4/image-alt).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class ImageAlt extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/input-image-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'[Learn about input image alt text](https://dequeuniversity.com/rules/axe/4.4/input-image-alt).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class InputImageAlt extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/label.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'more about form element labels](https://dequeuniversity.com/rules/axe/4.4/label).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class Label extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/link-name.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UIStrings = {
'[Learn how to make links accessible](https://dequeuniversity.com/rules/axe/4.4/link-name).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class LinkName extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const UIStrings = {
'[Learn more about proper list structure](https://dequeuniversity.com/rules/axe/4.4/list).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class List extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/listitem.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UIStrings = {
'[Learn more about proper list structure](https://dequeuniversity.com/rules/axe/4.4/listitem).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class ListItem extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/meta-refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const UIStrings = {
'[Learn more about the refresh meta tag](https://dequeuniversity.com/rules/axe/4.4/meta-refresh).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class MetaRefresh extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/meta-viewport.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const UIStrings = {
'[Learn more about the viewport meta tag](https://dequeuniversity.com/rules/axe/4.4/meta-viewport).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class MetaViewport extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/object-alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'[Learn more about alt text for `object` elements](https://dequeuniversity.com/rules/axe/4.4/object-alt).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class ObjectAlt extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/tabindex.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const UIStrings = {
'for users who rely on assistive technologies. [Learn more about the `tabindex` attribute](https://dequeuniversity.com/rules/axe/4.4/tabindex).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class TabIndex extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/td-headers-attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const UIStrings = {
'[Learn more about the `headers` attribute](https://dequeuniversity.com/rules/axe/4.4/td-headers-attr).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class TDHeadersAttr extends AxeAudit {
/**
Expand Down
2 changes: 1 addition & 1 deletion core/audits/accessibility/th-has-data-cells.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const UIStrings = {
'[Learn more about table headers](https://dequeuniversity.com/rules/axe/4.4/th-has-data-cells).',
};

const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);

class THHasDataCells extends AxeAudit {
/**
Expand Down
Loading

0 comments on commit d14c7e6

Please sign in to comment.