yt
yt copied to clipboard
[Question] How to set localizations when uploading videos?
I want to upload localizations for title and description of the video but I can't find how to do it. Am I missing something?
This CURL command uses update for simplicity of testing but we should be able to do the same thing when using insert.
curl --request PUT \
'https://youtube.googleapis.com/youtube/v3/videos?part=snippet%2Cstatus%2Clocalizations' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"id":"HH1HIvplt2Q","snippet":{"categoryId":22,"defaultLanguage":"en","description":"This description is in English.","title":"There is nothing to see here."},"localizations":{"es":{"title":"no hay nada a ver aqui","description":"Esta descripcion es en español."}}}' \
--compressed
@AdrienGiboire I don't think we support localizations as a "part" yet. I see YouTube doc for "upload" and "insert" like you mentioned. https://developers.google.com/youtube/v3/docs/videos/insert https://developers.google.com/youtube/v3/docs/videos/update
It would be nice if you add it and open a pr, thank you 😊
I have been trying but got unlucky so far with running tests locally. I'll keep trying.