diff options
Diffstat (limited to 'client/src/app/shared/i18n')
-rw-r--r-- | client/src/app/shared/i18n/i18n-utils.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/shared/i18n/i18n-utils.ts b/client/src/app/shared/i18n/i18n-utils.ts new file mode 100644 index 000000000..c1de51b7b --- /dev/null +++ b/client/src/app/shared/i18n/i18n-utils.ts | |||
@@ -0,0 +1,7 @@ | |||
1 | function peertubeTranslate (str: string, translations: { [ id: string ]: string }) { | ||
2 | return translations[str] ? translations[str] : str | ||
3 | } | ||
4 | |||
5 | export { | ||
6 | peertubeTranslate | ||
7 | } | ||