forked from gisellemartel/CONPASS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
localization-context.js
106 lines (102 loc) · 4.77 KB
/
localization-context.js
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import * as Localization from 'expo-localization';
import i18n from 'i18n-js';
const SetLocaleContext = () => {
// Set the key-value pairs for the different languages to support.
i18n.translations = {
en: {
welcome: 'Hello',
search: 'Search...',
shuttleBusSchedule: 'Shuttle Bus Schedule',
calendar: 'Calendar',
accessibility_on: 'Enable Accessibility',
accessibility_off: 'Disable Accessibility',
help: 'Help',
back: 'Back',
destinationSearch: 'Choose your destination',
LOCATION_ALERT_TITLE: 'Location Services Required',
LOCATION_ALERT_MESSAGE: 'Location services has not been enabled. Please allow this app to use your location.',
LOCATION_ALERT_BUTTON: 'Open Settings',
LogOut: 'Logout',
adjustTime: 'Adjust Time',
signIn: 'Sign In With Google',
calendarList: 'Available Calendars For Synchronization',
synchronizeCalendars: 'Synchronize Calendars',
permissionNotGranted: 'Permision Not Granted',
allowNotifications: 'Please allow CONPASS to send you Notifications',
numbersOnly: 'Please enter numbers only',
logInAgain: 'Session Expired You need to log-in again',
noAddress: 'There is no address or description for this event',
getDirections: 'Get Directions ',
cancel: 'Cancel',
setReminderTime: 'Set Reminder Time',
reminderMessage: 'Set the time to be reminded before class/minutes',
submit: 'Submit',
calendarListAlert: 'The following calendars will be synchronized',
noListAlert: 'Choose at least one calendar to sync',
},
fr: {
welcome: 'Bonjour',
search: 'Chercher...',
calendar: 'Calendrier',
shuttleBusSchedule: 'Horaire des Navettes',
accessibility_on: 'Permettre L\'accessibilité',
accessibility_off: 'Désactiver L\'accessibilité',
help: 'Aide',
back: 'Retour',
LOCATION_ALERT_TITLE: 'Services de localisation requis',
LOCATION_ALERT_MESSAGE: 'Les services de localisation n\'ont pas été activés. Veuillez autoriser cette application à utiliser vos informations de localisation.',
LOCATION_ALERT_BUTTON: 'Ouvrir les paramètres',
logOut: 'Se déconnecter',
adjustTime: 'Ajuster l\'heure',
signIn: 'Connectez-vous avec Google',
calendarList: 'Calendriers disponibles pour la synchronisation',
synchronizeCalendars: 'Synchroniser les calendriers',
permisionNotGrandted: 'Permission non accordée',
allowNotifications: 'Veuillez autoriser CONPASS à vous envoyer des notifications',
numbersOnly: 'S\'il vous plait entrez uniquement des nombres',
logInAgain: 'Session expirée Vous devez vous reconnecter',
noAddress: 'Il n\'y a pas d\'adresse ni de description pour cet événement',
getDirections: 'Obtenir des directions',
cancel: 'Annuler',
setRemindarTime: 'Définir l\'heure de rappel',
remindarMessage: 'Réglez l\'heure à rappeler avant le cours / les minutes',
submit: 'soumettre',
calendarListAlert: 'Les calendriers suivants seront synchronisés',
noListAlert: 'Choisissez au moins un calendrier à synchroniser',
},
sp: {
welcome: 'Hola',
search: 'Buscar...',
calendar: 'Calendario',
shuttleBusSchedule: 'Horario de Autobuses',
accessibility_on: 'Permitir Accesibilidad',
accessibility_off: 'Deshabilitar Accesibilidad',
help: 'Ayuda',
back: 'Atrás',
LOCATION_ALERT_TITLE: 'Servicios de ubicación requeridos',
LOCATION_ALERT_MESSAGE: 'Los servicios de ubicación no se han habilitado. Permita que esta aplicación use su información de ubicación.',
LOCATION_ALERT_BUTTON: 'Configuración abierta',
logOut: 'Cerrar sesión',
adjustTime: 'Ajustar tiempo',
signIn: 'Inicia sesión con Google',
calendarList: 'Calendarios disponibles para sincronización',
synchronizeCalendars: 'Sincronizar calendarios',
permisionNotGrandted: 'Permiso no otorgado',
allowNotifications: 'Permita que CONPASS le envíe notificaciones',
numbersOnly: 'Por favor solo inserte numeros',
logInAgain: 'Sesión expirada Necesita iniciar sesión nuevamente',
noAddress: 'No hay una dirección o descripción para este evento',
getDirections: 'Obtener las direcciones',
cancel: 'Cancelar',
setRemindarTime: 'Establecer tiempo de recordatorio',
remindarMessage: 'Establezca el tiempo para ser recordado antes de la clase / minutos',
submit: 'enviar',
calendarListAlert: 'Los siguientes calendarios se sincronizarán.',
noListAlert: 'Elija al menos un calendario para sincronizar',
}
};
// Set the locale once at the beginning of app.
i18n.locale = Localization.locale;
i18n.fallbacks = true;
};
export default SetLocaleContext;