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:
committed by
GitHub
parent
48f2c02c5d
commit
2b6bef08ae
@@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user