-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
37 lines (32 loc) · 984 Bytes
/
App.tsx
File metadata and controls
37 lines (32 loc) · 984 Bytes
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
import React from 'react';
import { ApplicationProvider } from '@ui-kitten/components';
import * as eva from '@eva-design/eva';
import { TranslationsProvider } from 'context-multi-language';
import Login from './Login';
// You can use remoteTranslationsUrl or translations.
// remoteTranslations
const remoteTranslationsUrl = 'https://raw.githubusercontent.com/burhanyilmaz/translations/master/locales.json';
// localeTranslations
const translations = {
languages: ['tr', 'en'],
translations: {
en: {
password: 'Password',
phoneNumber: 'Phone Number',
signIn: 'Sign in!',
},
tr: {
password: 'Şifre',
phoneNumber: 'Telefon Numarası',
signIn: 'Giriş Yap!',
},
},
};
const App = () => (
<ApplicationProvider {...eva} theme={eva.dark}>
<TranslationsProvider defaultLocale="ja" remoteTranslationsUrl={remoteTranslationsUrl}>
<Login />
</TranslationsProvider>
</ApplicationProvider>
);
export default App;