]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/i18n/i18n-utils.ts
Add server localization
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / i18n / i18n-utils.ts
1 function peertubeTranslate (str: string, translations: { [ id: string ]: string }) {
2 return translations[str] ? translations[str] : str
3 }
4
5 export {
6 peertubeTranslate
7 }