1 import { environment } from '../../../environments/environment'
3 function peertubeTranslate (str: string, translations: { [ id: string ]: string }) {
4 return translations[str] ? translations[str] : str
7 function isOnDevLocale () {
8 return environment.production === false && window.location.search === '?lang=fr'
11 function getDevLocale () {