blob: 37180b9300c7ea0a2cbafe4de658bb2682dfa109 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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'
}
function getDevLocale () {
return 'fr'
}
export {
getDevLocale,
isOnDevLocale,
peertubeTranslate
}
|