feat: localize videos (#42869)

* refactor: separate out VideoPlayer component

* feat: support bilibili videos

* feat(client): allow localized videos to be shown

* fix: remove add subtitles CTA

* feat: add locale ids for Why Program?
This commit is contained in:
Oliver Eyton-Williams
2021-09-27 11:26:38 +02:00
committed by GitHub
parent 48f2c02c5d
commit 2b6bef08ae
5 changed files with 135 additions and 17 deletions

View File

@@ -183,6 +183,17 @@ type Required = {
src: string;
crossDomain?: boolean;
};
export interface BilibiliIds {
aid: string;
bvid: string;
cid: string;
}
export interface VideoLocaleIds {
espanol?: string;
italian?: string;
portuguese?: string;
}
export type ChallengeNodeType = {
block: string;
@@ -213,6 +224,8 @@ export type ChallengeNodeType = {
translationPending: boolean;
url: string;
videoId: string;
videoLocaleIds?: VideoLocaleIds;
bilibiliIds?: BilibiliIds;
videoUrl: string;
};