]>
Commit | Line | Data |
---|---|---|
74b7c6d4 C |
1 | import { environment } from '../../../environments/environment' |
2 | ||
7ce44a74 C |
3 | function peertubeTranslate (str: string, translations: { [ id: string ]: string }) { |
4 | return translations[str] ? translations[str] : str | |
5 | } | |
6 | ||
74b7c6d4 C |
7 | function isOnDevLocale () { |
8 | return environment.production === false && window.location.search === '?lang=fr' | |
9 | } | |
10 | ||
11 | function getDevLocale () { | |
12 | return 'fr' | |
13 | } | |
14 | ||
7ce44a74 | 15 | export { |
74b7c6d4 C |
16 | getDevLocale, |
17 | isOnDevLocale, | |
7ce44a74 C |
18 | peertubeTranslate |
19 | } |