mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat(Bank): Added translation
This commit is contained in:
1 parent
f8025ab5ff
commit
f59b1021af
3 files changed
+16
-1
No files matched your search
@@ -12,6 +12,7 @@ import { HomeApp } from "./apps/home/components/Home";
|
|||||||
import { ContactsApp } from "./apps/contacts/components/ContactsApp";
|
import { ContactsApp } from "./apps/contacts/components/ContactsApp";
|
||||||
import { SettingsApp } from "./apps/settings/components/SettingsApp";
|
import { SettingsApp } from "./apps/settings/components/SettingsApp";
|
||||||
import { PhoneApp } from './apps/phone/components/PhoneApp';
|
import { PhoneApp } from './apps/phone/components/PhoneApp';
|
||||||
|
import { BankApp } from './apps/bank/component/BankApp';
|
||||||
import { ThemeProvider } from "@material-ui/core";
|
import { ThemeProvider } from "@material-ui/core";
|
||||||
|
|
||||||
function Phone() {
|
function Phone() {
|
||||||
@@ -42,6 +43,7 @@ function Phone() {
|
|||||||
<Route exact path="/contacts" component={ContactsApp} />
|
<Route exact path="/contacts" component={ContactsApp} />
|
||||||
<Route exact path="/settings" component={SettingsApp} />
|
<Route exact path="/settings" component={SettingsApp} />
|
||||||
<Route exact path="/phone" component={PhoneApp} />
|
<Route exact path="/phone" component={PhoneApp} />
|
||||||
|
<Route exact path="/bank" component={BankApp} />
|
||||||
</div>
|
</div>
|
||||||
<Navigation />
|
<Navigation />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
import { useConfig } from "../../../config/hooks/useConfig";
|
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 { useTranslation } from "react-i18next";
|
||||||
import ContactsIcon from "@material-ui/icons/Contacts";
|
import ContactsIcon from "@material-ui/icons/Contacts";
|
||||||
import SettingsIcon from '@material-ui/icons/Settings'
|
import SettingsIcon from '@material-ui/icons/Settings'
|
||||||
import PhoneIcon from '@material-ui/icons/Phone';
|
import PhoneIcon from '@material-ui/icons/Phone';
|
||||||
|
import AccountBalanceIcon from '@material-ui/icons/AccountBalance';
|
||||||
import { atom } from "recoil";
|
import { atom } from "recoil";
|
||||||
|
|
||||||
const appsState = atom({
|
const appsState = atom({
|
||||||
@@ -40,6 +41,14 @@ export const useApps = () => {
|
|||||||
backgroundColor: grey[700],
|
backgroundColor: grey[700],
|
||||||
color: grey[50],
|
color: grey[50],
|
||||||
path: '/settings'
|
path: '/settings'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'bank',
|
||||||
|
name: t('APPS_BANK'),
|
||||||
|
icon: <AccountBalanceIcon />,
|
||||||
|
backgroundColor: orange[600],
|
||||||
|
color: orange[50],
|
||||||
|
path: '/bank'
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
"APPS_CONTACTS": "Contacts",
|
"APPS_CONTACTS": "Contacts",
|
||||||
"APPS_MESSAGES": "Messages",
|
"APPS_MESSAGES": "Messages",
|
||||||
"APPS_SETTINGS": "Settings",
|
"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_WALLPAPER": "Wallpaper",
|
||||||
"APPS_SETTINGS_OPTIONS_FRAME": "Frame"
|
"APPS_SETTINGS_OPTIONS_FRAME": "Frame"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user