forked from Shrey023/Mechanic-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathi18n.js
More file actions
66 lines (63 loc) · 1.97 KB
/
i18n.js
File metadata and controls
66 lines (63 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
const resources = {
en: {
translation: {
home: 'Home',
bookings: 'Bookings',
earnings: 'Earnings',
profile: 'Profile',
settings: 'Settings',
status: 'Status',
available: 'Available',
busy: 'Busy',
offline: 'Offline',
startLiveLocation: 'Start Live Location',
stopLiveLocation: 'Stop Live Location',
logout: 'Logout',
pending: 'Pending',
accepted: 'Accepted',
completed: 'Completed',
noBookings: 'No bookings found.',
language: 'Language',
darkMode: 'Dark Mode',
changePassword: 'Change Password',
contactSupport: 'Contact Support',
helpFaq: 'Help & FAQs',
},
},
hi: {
translation: {
home: 'होम',
bookings: 'बुकिंग्स',
earnings: 'कमाई',
profile: 'प्रोफ़ाइल',
settings: 'सेटिंग्स',
status: 'स्थिति',
available: 'उपलब्ध',
busy: 'व्यस्त',
offline: 'ऑफलाइन',
startLiveLocation: 'स्थान साझाकरण शुरू करें',
stopLiveLocation: 'स्थान साझाकरण बंद करें',
logout: 'लॉगआउट',
pending: 'लंबित',
accepted: 'स्वीकृत',
completed: 'पूर्ण',
noBookings: 'कोई बुकिंग नहीं मिली।',
language: 'भाषा',
darkMode: 'डार्क मोड',
changePassword: 'पासवर्ड बदलें',
contactSupport: 'सहायता से संपर्क करें',
helpFaq: 'सहायता और प्रश्नोत्तर',
},
},
};
i18n.use(initReactI18next).init({
resources,
lng: 'en',
fallbackLng: 'en',
interpolation: {
escapeValue: false,
},
});
export default i18n;