Feat(Bank): Added translation

This commit is contained in:
chip committed 2020-08-23 17:03:48 +02:00
1 parent f8025ab5ff
commit f59b1021af
3 files changed
+16 -1

No files matched your search

+2
View File
@@ -12,6 +12,7 @@ import { HomeApp } from "./apps/home/components/Home";
import { ContactsApp } from "./apps/contacts/components/ContactsApp";
import { SettingsApp } from "./apps/settings/components/SettingsApp";
import { PhoneApp } from './apps/phone/components/PhoneApp';
import { BankApp } from './apps/bank/component/BankApp';
import { ThemeProvider } from "@material-ui/core";
function Phone() {
@@ -42,6 +43,7 @@ function Phone() {
<Route exact path="/contacts" component={ContactsApp} />
<Route exact path="/settings" component={SettingsApp} />
<Route exact path="/phone" component={PhoneApp} />
<Route exact path="/bank" component={BankApp} />
</div>
<Navigation />
</div>
+10 -1
View File
@@ -1,10 +1,11 @@
import React, { useEffect } from "react";
import { useConfig } from "../../../config/hooks/useConfig";
import { blue, grey, green } from "@material-ui/core/colors";
import { blue, grey, green, orange } from "@material-ui/core/colors";
import { useTranslation } from "react-i18next";
import ContactsIcon from "@material-ui/icons/Contacts";
import SettingsIcon from '@material-ui/icons/Settings'
import PhoneIcon from '@material-ui/icons/Phone';
import AccountBalanceIcon from '@material-ui/icons/AccountBalance';
import { atom } from "recoil";
const appsState = atom({
@@ -40,6 +41,14 @@ export const useApps = () => {
backgroundColor: grey[700],
color: grey[50],
path: '/settings'
},
{
id: 'bank',
name: t('APPS_BANK'),
icon: <AccountBalanceIcon />,
backgroundColor: orange[600],
color: orange[50],
path: '/bank'
}
]);
// eslint-disable-next-line
+4
View File
@@ -5,6 +5,10 @@
"APPS_CONTACTS": "Contacts",
"APPS_MESSAGES": "Messages",
"APPS_SETTINGS": "Settings",
"APPS_BANK": "WhoDis Banking",
"APPS_BANK_DEPOSIT": "Deposit",
"APPS_BANK_WITHDRAW": "Withdraw",
"APPS_BANK_TRANSFER": "Transfer",
"APPS_SETTINGS_OPTIONS_WALLPAPER": "Wallpaper",
"APPS_SETTINGS_OPTIONS_FRAME": "Frame"
}