- Cinny
+ {t('common.cinny')}
@@ -576,16 +584,16 @@ function Auth() {
@@ -624,21 +632,26 @@ Recaptcha.propTypes = {
};
function Terms({ url, onSubmit }) {
+ const { t } = useTranslation();
+
return (
@@ -650,18 +663,22 @@ Terms.propTypes = {
};
function EmailVerify({ email, onContinue }) {
+ const { t } = useTranslation();
return (
-
Verify email
+
{t('Templates.Auth.validate_email.title')}
- {'Please check your email '}
- {`(${email})`}
- {' and validate before continuing further.'}
+ }}
+ />
-
+
);
diff --git a/src/app/templates/client/Client.jsx b/src/app/templates/client/Client.jsx
index 8610b62c..499af8cf 100644
--- a/src/app/templates/client/Client.jsx
+++ b/src/app/templates/client/Client.jsx
@@ -1,6 +1,7 @@
import React, { useState, useEffect, useRef } from 'react';
import './Client.scss';
+import { useTranslation } from 'react-i18next';
import { initHotkeys } from '../../../client/event/hotkeys';
import { initRoomListListener } from '../../../client/event/roomList';
@@ -19,9 +20,11 @@ import navigation from '../../../client/state/navigation';
import cons from '../../../client/state/cons';
import DragDrop from '../../organisms/drag-drop/DragDrop';
+import '../../i18n';
+
function Client() {
const [isLoading, changeLoading] = useState(true);
- const [loadingMsg, setLoadingMsg] = useState('Heating up');
+ const [loadingMsg, setLoadingMsg] = useState('Templates.Client.loading_messages.default');
const [dragCounter, setDragCounter] = useState(0);
const classNameHidden = 'client__item-hidden';
@@ -37,6 +40,8 @@ function Client() {
roomWrapperRef.current?.classList.add(classNameHidden);
}
+ const { t } = useTranslation();
+
useEffect(() => {
navigation.on(cons.events.navigation.ROOM_SELECTED, onRoomSelected);
navigation.on(cons.events.navigation.NAVIGATION_OPENED, onNavigationSelected);
@@ -51,8 +56,8 @@ function Client() {
let counter = 0;
const iId = setInterval(() => {
const msgList = [
- 'Almost there...',
- 'Looks like you have a lot of stuff to heat up!',
+ 'Templates.Client.loading_messages.message_one',
+ 'Templates.Client.loading_messages.message_two',
];
if (counter === msgList.length - 1) {
setLoadingMsg(msgList[msgList.length - 1]);
@@ -75,13 +80,13 @@ function Client() {
return (
-
{loadingMsg}
+
{t(loadingMsg)}
- Cinny
+ {t('common.cinny')}
);