mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
revert(core): unmerge i18n stack base (#1707)
Co-authored-by: Wesley Luyten <me@wesleyluyten.com>
This commit is contained in:
co-authored by
Wesley Luyten
parent
f0f9eed544
commit
edfec1c93e
@@ -1 +0,0 @@
|
||||
export { registerI18n } from '@videojs/core/i18n';
|
||||
@@ -1 +0,0 @@
|
||||
*.ts
|
||||
@@ -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';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/ar';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/az';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/bg';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/bn';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/bs';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/ca';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/cs';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/cy';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/da';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/de';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/el';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/en';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/es';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/et';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/eu';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/fa';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/fi';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/fr';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/gd';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/gl';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/he';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/hi';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/hr';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/hu';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/it';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/ja';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/ko';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/lv';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/mr';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/nb';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/ne';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/nl';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/nn';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/oc';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/pl';
|
||||
@@ -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';
|
||||
@@ -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';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/pt';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/ro';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/ru';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/sk';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/sl';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/sr';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/sv';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/te';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/th';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/tr';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/uk';
|
||||
@@ -1,2 +0,0 @@
|
||||
/** Generated by packages/core/scripts/generate-i18n-locales.ts — do not edit. */
|
||||
export { default } from '@videojs/core/i18n/locales/vi';
|
||||
@@ -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';
|
||||
@@ -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';
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
+2
-4
@@ -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;
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user