1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Server: add video language attribute

This commit is contained in:
Chocobozzz 2017-04-07 12:13:37 +02:00
parent 023553a2bd
commit 3092476e64
14 changed files with 197 additions and 3 deletions

View file

@ -5,7 +5,7 @@ const path = require('path')
// ---------------------------------------------------------------------------
const LAST_MIGRATION_VERSION = 45
const LAST_MIGRATION_VERSION = 50
// ---------------------------------------------------------------------------
@ -135,6 +135,24 @@ const VIDEO_LICENCES = {
7: 'Public Domain Dedication'
}
// See https://en.wikipedia.org/wiki/List_of_languages_by_number_of_native_speakers#Nationalencyklopedin
const VIDEO_LANGUAGES = {
1: 'English',
2: 'Spanish',
3: 'Mandarin',
4: 'Hindi',
5: 'Arabic',
6: 'Portuguese',
7: 'Bengali',
8: 'Russian',
9: 'Japanese',
10: 'Punjabi',
11: 'German',
12: 'Korean',
13: 'French',
14: 'Italien'
}
// ---------------------------------------------------------------------------
// Score a pod has when we create it as a friend
@ -291,6 +309,7 @@ module.exports = {
THUMBNAILS_SIZE,
USER_ROLES,
VIDEO_CATEGORIES,
VIDEO_LANGUAGES,
VIDEO_LICENCES,
VIDEO_RATE_TYPES
}