revert(core): unmerge i18n stack base (#1707)

Co-authored-by: Wesley Luyten <me@wesleyluyten.com>
This commit is contained in:
Sam Potts
2026-06-18 15:20:35 -07:00
committed by GitHub
co-authored by Wesley Luyten
parent f0f9eed544
commit edfec1c93e
245 changed files with 455 additions and 5647 deletions
-1
View File
@@ -1 +0,0 @@
export { registerI18n } from '@videojs/core/i18n';
-1
View File
@@ -1 +0,0 @@
*.ts
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { all, type LocaleTag, localeTags } from '@videojs/core/i18n/locales/all';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/ar';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/az';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/bg';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/bn';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/bs';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/ca';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/cs';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/cy';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/da';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/de';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/el';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/en';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/es';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/et';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/eu';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/fa';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/fi';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/fr';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/gd';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/gl';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/he';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/hi';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/hr';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/hu';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/it';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/ja';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/ko';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/lv';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/mr';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/nb';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/ne';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/nl';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/nn';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/oc';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/pl';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/pt-BR';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/pt-PT';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/pt';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/ro';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/ru';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/sk';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/sl';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/sr';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/sv';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/te';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/th';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/tr';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/uk';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/vi';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/zh-CN';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/zh-TW';
-2
View File
@@ -1,2 +0,0 @@
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
export { default } from '@videojs/core/i18n/locales/zh';
@@ -1,5 +1,5 @@
import { PlaybackRateRadioGroupCore, PlaybackRateRadioGroupDataAttrs } from '@videojs/core';
import { applyElementProps, applyStateDataAttrs, logMissingFeature, selectPlaybackRate } from '@videojs/core/dom';
import { applyStateDataAttrs, logMissingFeature, selectPlaybackRate } from '@videojs/core/dom';
import type { PropertyDeclarationMap, PropertyValues } from '@videojs/element';
import { playerContext } from '../../player/context';
@@ -54,11 +54,8 @@ export class PlaybackRateRadioGroupElement extends MenuRadioGroupElement {
this.value = this.#core.getRateValue(state.rate);
if (!this.hasAttribute('aria-label') && !this.hasAttribute('aria-labelledby')) {
this.setAttribute('aria-label', this.#core.getLabel(state));
this.setAttribute('aria-label', 'Playback rate');
}
applyElementProps(this, {
'aria-disabled': state.disabled ? 'true' : undefined,
});
this.#syncContent(state);
}
@@ -155,7 +155,7 @@ afterEach(() => {
describe('PlaybackRateRadioGroupElement', () => {
it('renders radio items from the available playback rates', async () => {
const { menu, options, trigger } = setup({ playbackRates: [1, 1.25, 1.5], playbackRate: 1.25 });
const { menu, trigger } = setup({ playbackRates: [1, 1.25, 1.5], playbackRate: 1.25 });
await waitForMenu(menu, trigger);
@@ -165,8 +165,6 @@ describe('PlaybackRateRadioGroupElement', () => {
await waitForAssertion(() => {
expect(items.map((item) => item.getAttribute('aria-checked'))).toEqual(['false', 'true', 'false']);
});
expect(options.getAttribute('aria-label')).toBe('playbackRateAria');
expect(options.getAttribute('data-rate')).toBe('1.25');
});
it('renders radio items from a template', async () => {
@@ -208,7 +206,7 @@ describe('PlaybackRateButtonElement', () => {
await trigger.updateComplete;
expect(trigger.getAttribute('role')).toBe('button');
expect(trigger.getAttribute('aria-label')).toBe('playbackRateAria');
expect(trigger.getAttribute('aria-label')).toBe('Playback rate 2');
expect(trigger.getAttribute('data-rate')).toBe('2');
});
@@ -27,7 +27,7 @@ describe('TimeSliderElement', () => {
it('initializes with default property values', () => {
const slider = createElement(TimeSliderElement);
expect(slider.label).toBe('');
expect(slider.label).toBe('Seek');
expect(slider.changeThrottle).toBe(100);
expect(slider.step).toBe(1);
expect(slider.largeStep).toBe(10);
@@ -30,7 +30,7 @@ export class TimeSliderElement extends MediaElement {
orientation: { type: String },
disabled: { type: Boolean },
thumbAlignment: { type: String, attribute: 'thumb-alignment' },
} satisfies PropertyDeclarationMap<Exclude<keyof TimeSliderCore.Props, 'value' | 'min' | 'max' | 'formatOptions'>>;
} satisfies PropertyDeclarationMap<Exclude<keyof TimeSliderCore.Props, 'value' | 'min' | 'max'>>;
label = TimeSliderCore.defaultProps.label;
changeThrottle = TimeSliderCore.defaultProps.changeThrottle;
+1 -1
View File
@@ -13,7 +13,7 @@ export class TimeElement extends MediaElement {
type: { type: String },
negativeSign: { type: String, attribute: 'negative-sign' },
label: { type: String },
} satisfies PropertyDeclarationMap<keyof Omit<TimeCore.Props, 'formatOptions'>>;
} satisfies PropertyDeclarationMap<keyof TimeCore.Props>;
type: TimeType = TimeCore.defaultProps.type;
negativeSign = TimeCore.defaultProps.negativeSign;
@@ -26,7 +26,7 @@ describe('VolumeSliderElement', () => {
it('initializes with default property values', () => {
const slider = createElement(VolumeSliderElement);
expect(slider.label).toBe('');
expect(slider.label).toBe('Volume');
expect(slider.step).toBe(1);
expect(slider.largeStep).toBe(10);
expect(slider.orientation).toBe('horizontal');