Skip to content

Commit

Permalink
fix: add locale for ebay-video controls/buttons (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
UDAY556 authored Nov 13, 2024
1 parent a41ae29 commit 60ebb19
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-ants-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/ebayui-core": patch
---

Added localization for ebay-video component
7 changes: 7 additions & 0 deletions src/components/ebay-video/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,13 @@ class Video extends Marko.Component<Input, State> {
this.input.reportText || "",
);

if (document?.documentElement?.lang) {
this.ui
.getControls()
.getLocalization()
.changeLocale([document.documentElement.lang]);
}

// eslint-disable-next-line no-undef,new-cap
shaka.ui.Controls.registerElement(
"report",
Expand Down

0 comments on commit 60ebb19

Please sign in to comment.