From 3dfa84940273619ae00f11a5f419a5e4876b2f53 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 16 Aug 2018 10:48:35 +0200 Subject: Translate subtitle langs in player --- client/src/app/shared/i18n/i18n-utils.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'client/src/app/shared/i18n') diff --git a/client/src/app/shared/i18n/i18n-utils.ts b/client/src/app/shared/i18n/i18n-utils.ts index 37180b930..1838dc752 100644 --- a/client/src/app/shared/i18n/i18n-utils.ts +++ b/client/src/app/shared/i18n/i18n-utils.ts @@ -1,9 +1,5 @@ import { environment } from '../../../environments/environment' -function peertubeTranslate (str: string, translations: { [ id: string ]: string }) { - return translations[str] ? translations[str] : str -} - function isOnDevLocale () { return environment.production === false && window.location.search === '?lang=fr' } @@ -14,6 +10,5 @@ function getDevLocale () { export { getDevLocale, - isOnDevLocale, - peertubeTranslate + isOnDevLocale } -- cgit v1.2.3