diff --git a/phone/src/apps/contacts/components/ContactModal.tsx b/phone/src/apps/contacts/components/ContactModal.tsx index 0bed87d..4b26d0a 100644 --- a/phone/src/apps/contacts/components/ContactModal.tsx +++ b/phone/src/apps/contacts/components/ContactModal.tsx @@ -10,6 +10,7 @@ import PersonIcon from '@material-ui/icons/Person'; import PhoneIcon from '@material-ui/icons/Phone'; import AccountCircleIcon from '@material-ui/icons/AccountCircle'; import useStyles from './styles.contactmodal'; +import { useTranslation } from 'react-i18next'; export const AddContactModal = () => { const [name, setName] = useState(''); @@ -17,6 +18,8 @@ export const AddContactModal = () => { const [avatar, setAvatar] = useState(''); const classes = useStyles(); + const { t } = useTranslation(); + const { showModal, setShowModal } = useModal(); const addContact = () => { @@ -50,7 +53,7 @@ export const AddContactModal = () => { onChange={(e) => setName(e.target.value)} fullWidth variant='standard' - placeholder='Name' + placeholder={t('APPS_CONTACT_MODAL_PLACEHOLDER_NAME')} /> @@ -60,7 +63,7 @@ export const AddContactModal = () => { inputProps={{ className: classes.textInputField }} onChange={(e) => setNumber(e.target.value)} fullWidth - placeholder='Number' + placeholder={t('APPS_CONTACT_MODAL_PLACEHOLDER_NUMBER')} variant='standard' type='text' /> @@ -72,14 +75,14 @@ export const AddContactModal = () => { inputProps={{ className: classes.textInputField }} onChange={(e) => setAvatar(e.target.value)} fullWidth - placeholder='Avatar URL' + placeholder={t('APPS_CONTACT_MODAL_PLACEHOLDER_AVATAR')} variant='standard' type='text' /> ); diff --git a/phone/src/apps/contacts/components/List/SearchContacts.tsx b/phone/src/apps/contacts/components/List/SearchContacts.tsx index c530568..49ffe3a 100644 --- a/phone/src/apps/contacts/components/List/SearchContacts.tsx +++ b/phone/src/apps/contacts/components/List/SearchContacts.tsx @@ -8,6 +8,8 @@ import { makeStyles, } from '@material-ui/core/styles'; +import { useTranslation } from 'react-i18next'; + import { useFilteredContacts } from '../../hooks/useFilteredContacts'; const useStyles = makeStyles((theme: Theme) => @@ -69,6 +71,8 @@ export const SearchContacts = () => { const classes = useStyles(); + const { t } = useTranslation(); + const handleChange = (e) => { setFilteredContacts(e.target.value); }; @@ -81,7 +85,7 @@ export const SearchContacts = () => { {
diff --git a/phone/src/apps/settings/components/SettingsApp.tsx b/phone/src/apps/settings/components/SettingsApp.tsx index f8071ca..9c653bb 100644 --- a/phone/src/apps/settings/components/SettingsApp.tsx +++ b/phone/src/apps/settings/components/SettingsApp.tsx @@ -12,6 +12,7 @@ import { List } from '../../../ui/components/List'; import { useSimcard } from '../../../os/simcard/hooks/useSimcard'; import { useApp } from '../../../os/apps/hooks/useApps'; import { SettingItem } from './SettingItem'; +import { useTranslation } from 'react-i18next'; import { Brush, @@ -37,6 +38,8 @@ export const SettingsApp = () => { const { setSettings, settings } = useSettings(); const simcard = useSimcard(); + const { t } = useTranslation(); + const wallpapers = config.wallpapers.map( MapStringOptions(settings.wallpaper, (val: string) => setSettings('wallpaper', val) @@ -71,12 +74,12 @@ export const SettingsApp = () => { }> } /> { // * Probably want to make it a slider in the future. Ignore hardcoded for the meantime } { }> } /> } /> } />