diff options
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) |