160 lines
5.7 KiB
JavaScript
160 lines
5.7 KiB
JavaScript
import { getLocales } from 'expo-localization';
|
|
import { I18n } from 'i18n-js';
|
|
import moment from 'moment'
|
|
import 'moment/min/locales'
|
|
|
|
const messages = {
|
|
en: {
|
|
message: {
|
|
feed: 'Feed',
|
|
events: "Events",
|
|
livestream: "Livestrem",
|
|
search: 'Search',
|
|
invite: 'Invite',
|
|
groups: 'Groups',
|
|
courses: "Courses",
|
|
giving: "Giving",
|
|
profile: "Profile",
|
|
settings: 'Settings',
|
|
logout: "Logout",
|
|
about: 'about',
|
|
statusUpdate: "New Post",
|
|
newsPost: "News Post",
|
|
post: "Post",
|
|
add: 'Add',
|
|
whatIsNew: "What is new?",
|
|
saySomethingTo: "Say something to ",
|
|
follow: "Follow",
|
|
unfollow: "Unfollow",
|
|
subscribe: "Subscribe",
|
|
unsubscribe: 'Unsubscribe',
|
|
pending: "Pending",
|
|
subscribers: "Subscribers",
|
|
loading: "Loading",
|
|
login: 'Login',
|
|
email: "Email",
|
|
cancel: "Cancel",
|
|
password: "Password",
|
|
rpassword: "Repeat Password",
|
|
resetPassword: "Reset password",
|
|
register: "Register",
|
|
name: "Nombre",
|
|
lastName: "Last Name",
|
|
describeYourself: 'Describe Yourself',
|
|
continueWatching: "Continues Watching",
|
|
createCourse: "Create a your own new course!",
|
|
createGroup: "Create a your own new group!",
|
|
title: "Title",
|
|
subtitle: "Subtitle",
|
|
recentlyAdded: "Recently added",
|
|
popularCourses: "Popular Courses",
|
|
privateGroup: "Private Group",
|
|
tithesAndOfferings: "Tithes and Offerings",
|
|
type: "Type",
|
|
description: "Description",
|
|
amount: "Amount",
|
|
tithes: "Tithes",
|
|
offerings: "Offerings",
|
|
event: "Event",
|
|
proceedToPayment: "Proceed to Payment",
|
|
minimumAmount: "The minimum amount is ",
|
|
notifications: "Notifications",
|
|
searchUsers: "Search Users",
|
|
searchCourses: "Search Courses",
|
|
news: "News",
|
|
wrongInformation: "Please review the information.",
|
|
submit: "Submit",
|
|
IKnowThisPerson: "I know this person",
|
|
update: "Update",
|
|
invalidEmail: "Email address is invalid!",
|
|
reviewPassword: "Please review your password.",
|
|
updatePhoto: "Update Photo",
|
|
optional: "Optional",
|
|
birthday: "Birthday",
|
|
localMinistry: "Local Ministry",
|
|
ocupation: "Ocupation",
|
|
country: 'Country',
|
|
},
|
|
},
|
|
es: {
|
|
message: {
|
|
feed: 'Mural',
|
|
events: "Eventos",
|
|
livestream: "En Vivo",
|
|
search: 'Busqueda',
|
|
invite: "Invitaciones",
|
|
groups: 'Grupos',
|
|
courses: 'Cursos',
|
|
giving: "Ofrendas",
|
|
profile: "Perfil",
|
|
settings: 'Configuraciones',
|
|
logout: "Cerrar Sesión",
|
|
about: 'Acerca',
|
|
statusUpdate: "Publicación Nueva",
|
|
newsPost: "Noticias?",
|
|
post: "Publica",
|
|
add: 'Añade',
|
|
whatIsNew: "Que hay de nuevo?",
|
|
saySomethingTo: "Publica algo para ",
|
|
follow: "Seguir",
|
|
unfollow: "Dejar",
|
|
subscribe: "Subscribirse",
|
|
unsubscribe: 'Abandonar',
|
|
pending: "Pendiente",
|
|
subscribers: "Subscriptores",
|
|
loading: "Cargando",
|
|
login: 'Inicia Sesión',
|
|
email: "Correo Electronico",
|
|
cancel: "Cancelar",
|
|
password: "Contraseña",
|
|
rpassword: "Confirma tu Contraseña",
|
|
resetPassword: "Recuperar Contraseña",
|
|
register: "Registrate",
|
|
name: 'Nombre',
|
|
lastName: "Apeido",
|
|
describeYourself: 'Describete en unas cuantas palabras',
|
|
continueWatching: "Continua viendo",
|
|
createCourse: "Crea tu propio curso!",
|
|
createGroup: "Crea un grupo nuevo!",
|
|
title: "Titulo",
|
|
subtitle: "Subtitulo",
|
|
recentlyAdded: "Recientemente añadido",
|
|
popularCourses: "Cursos populares",
|
|
privateGroup: "Grupo privado",
|
|
tithesAndOfferings: "Diezmos y Ofrendas",
|
|
type: "Tipo",
|
|
description: "Descripción",
|
|
amount: "Cantidad",
|
|
tithes: "Diezmos",
|
|
offerings: "Ofrendas",
|
|
event: "Evento",
|
|
proceedToPayment: "Continuar con el pago",
|
|
minimumAmount: "La cantidad mínima es de ",
|
|
notifications: "Notificaciones",
|
|
searchUsers: "Busca Usuarios",
|
|
searchCourses: "Busca Cursos",
|
|
news: "Noticias",
|
|
wrongInformation: "Por favor revisa la información introducida.",
|
|
submit: "Ingresar",
|
|
IKnowThisPerson: "Conozco a esta persona",
|
|
update: "Actualizar",
|
|
invalidEmail: "El correo electronico es invalido!",
|
|
reviewPassword: "Revisa la constraseña introducida.",
|
|
updatePhoto: "Nueva foto",
|
|
optional: "Opcional",
|
|
birthday: "Cumpleaños",
|
|
localMinistry: "Ministerio Local",
|
|
ocupation: "Ocupación",
|
|
country: 'Pais',
|
|
},
|
|
}
|
|
}
|
|
|
|
// Set the key-value pairs for the different languages you want to support.
|
|
const i18n = new I18n(messages);
|
|
|
|
// Set the locale once at the beginning of your app.
|
|
i18n.locale = getLocales()[0].languageCode;
|
|
moment.locale(i18n.locale);
|
|
|
|
export default i18n; |