Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrismclarke opened this issue Dec 4, 2024 · 0 comments
Open

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

chrismclarke opened this issue Dec 4, 2024 · 0 comments
Assignees

Comments

@chrismclarke
Copy link
Collaborator

chrismclarke commented Dec 4, 2024

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
picsa app_resources_collection_picsa_videos_picsa_videos_farmer(Moto G4)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Next Priority
Development

No branches or pull requests

2 participants