diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-04 11:42:06 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-07 08:58:29 +0200 |
commit | 5abc96fca2496f33075796db208fccc3543e0f65 (patch) | |
tree | 72da3df83df172a7a66b9ecff9b136e171c830bf /client/src/assets/player/translations-manager.ts | |
parent | a4ff3100d36f2fe9a4dfc00e8487c28a94433c4f (diff) | |
download | PeerTube-5abc96fca2496f33075796db208fccc3543e0f65.tar.gz PeerTube-5abc96fca2496f33075796db208fccc3543e0f65.tar.zst PeerTube-5abc96fca2496f33075796db208fccc3543e0f65.zip |
Add logic to handle playlist in embed
Diffstat (limited to 'client/src/assets/player/translations-manager.ts')
-rw-r--r-- | client/src/assets/player/translations-manager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/assets/player/translations-manager.ts b/client/src/assets/player/translations-manager.ts index 631e3feba..d5a09a31a 100644 --- a/client/src/assets/player/translations-manager.ts +++ b/client/src/assets/player/translations-manager.ts | |||
@@ -3,7 +3,7 @@ import { getCompleteLocale, getShortLocale, is18nLocale, isDefaultLocale } from | |||
3 | export class TranslationsManager { | 3 | export class TranslationsManager { |
4 | private static videojsLocaleCache: { [ path: string ]: any } = {} | 4 | private static videojsLocaleCache: { [ path: string ]: any } = {} |
5 | 5 | ||
6 | static getServerTranslations (serverUrl: string, locale: string) { | 6 | static getServerTranslations (serverUrl: string, locale: string): Promise<{ [id: string]: string }> { |
7 | const path = TranslationsManager.getLocalePath(serverUrl, locale) | 7 | const path = TranslationsManager.getLocalePath(serverUrl, locale) |
8 | // It is the default locale, nothing to translate | 8 | // It is the default locale, nothing to translate |
9 | if (!path) return Promise.resolve(undefined) | 9 | if (!path) return Promise.resolve(undefined) |