aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/i18n/i18n-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/i18n/i18n-utils.ts')
-rw-r--r--client/src/app/shared/i18n/i18n-utils.ts7
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 @@
1function peertubeTranslate (str: string, translations: { [ id: string ]: string }) {
2 return translations[str] ? translations[str] : str
3}
4
5export {
6 peertubeTranslate
7}