Skip to content

feat(resources): show list of available languages for videos #346

@chrismclarke

Description

@chrismclarke

Is your feature request related to a problem? Please describe.
When a user navigates the direct-to-farmer app any video resources automatically load with the language that the user has selected (with a fallback option if the video is not available in that language)

Describe the solution you'd like
It would be good to show below a video all the languages a video is available in, and allow users to select a different language manually if they wish. Probably it would be best to show as a select dropdown

Additional context
The list of all videos can be imported (and logged) from the shared data

import { RESOURCE_VIDEO_HASHMAP } from '@picsa/data/resources;
console.log('all videos',RESOURCE_VIDEO_HASHMAP )

The component that handles displaying a video resource is located in apps\picsa-tools\resources-tool\src\app\components\resource-item\video.ts

However this is only set to receive a single video, so it might also involve looking at how the video is selected and passed from apps\picsa-tools\resources-tool\src\app\components\resource-item\file\file.ts also

Example farmer video - loaded in English. it would be good to show list beneath of available languages

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions